search for: accommodation_booking_fee

Displaying 1 result from an estimated 1 matches for "accommodation_booking_fee".

2008 Aug 31
6
why's my course_duration being reset
...quiry = Enquiry.find(params[:id]) end end model ------ class Enquiry < ActiveRecord::Base belongs_to :course belongs_to :accomodation attr_accessor :accomodation_duration, :course_duration # before_validation :set_fixed_fees, :calculate_fees def set_fixed_fees # set accommodation_booking_fee from the Selected Accomodation # set course_booking_fee from the Selected Course self.course_booking_fee = course.registration_fee self.accommodation_booking_fee = accomodation.booking_fee end def calculate_fees # DO STUFF ! # self.blah_fee = blah_duration * whatever...