search for: calculate_fees

Displaying 2 results from an estimated 2 matches for "calculate_fees".

2007 Nov 01
5
monster method (too hard for my skill level)
I need to write a method for calculating the fee for medical procedures with respect to area. I have all the tables and data but its hard to give that here. Can someone take a look at this ''stub'' method and help me out? def calculate_fee # strip out the first 3 numbers of the user entered zip code # use those 3 numbers to identify row in [zipcodes table] (between upper and
2008 Aug 31
6
why's my course_duration being reset
...ion_fee render :layout => "welcome" end def create @enquiry = Enquiry.new(params[:enquiry]) @courses = Course.active_courses @accomodations = Accomodation.active_accomodation if @enquiry.save @enquiry.set_fixed_fees # set the fixed fees @enquiry.calculate_fees # calculate @enquiry.save flash[:notice] = ''Your enquiry has been sent to Europa School of English. You have received a summary by email. We will contact you shortly with further information.'' # redirect_to :action => ''list'' rmoved rf, we ne...