Skip to content

Commit

Permalink
added pet room formula
Browse files Browse the repository at this point in the history
  • Loading branch information
rifkegribenes committed Jun 4, 2018
1 parent aef38a6 commit 6c32da7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gc2018reg_formstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,9 @@ function itemize(lodgedays, adultMeals, childMeals) {

//////
const stripePaymentFormula =
["X2018_General_Council__c.Adult_guest_meals__c"].val*24.5+["X2018_General_Council__c.Child_guest_meals__c"].val*12.5+IF(["X2018_General_Council__c.Room_type__c"].amount=1 && ["X2018_General_Council__c.Lodging_exception__c"].amount=0,(64*["X2018_General_Council__c.Lodging_number_of_days__c"].val),0)+IF(["X2018_General_Council__c.Room_type__c""].amount=2 && ["X2018_General_Council__c.Lodging_exception__c"].amount=0 && ["X2018_General_Council__c.My_roommate_is__c"].amount=2,(64*["X2018_General_Council__c.Lodging_number_of_days__c"].val),0)
["X2018_General_Council__c.Adult_guest_meals__c"].val*24.5
+["X2018_General_Council__c.Child_guest_meals__c"].val*12.5
+IF(["X2018_General_Council__c.Room_type__c"].amount=1 && ["X2018_General_Council__c.Lodging_exception__c"].amount=0,(64*["X2018_General_Council__c.Lodging_number_of_days__c"].val),0)+IF(["X2018_General_Council__c.Room_type__c""].amount=2 && ["X2018_General_Council__c.Lodging_exception__c"].amount=0 && ["X2018_General_Council__c.My_roommate_is__c"].amount=2,(64*["X2018_General_Council__c.Lodging_number_of_days__c"].val),0)
+IF(["X2018_General_Council__c.Pet_friendly_room__c"].amount=1 &&
["X2018_General_Council__c.Registered_service_animal__c"].amount=0,
50,0)

0 comments on commit 6c32da7

Please sign in to comment.