Skip to content

Commit

Permalink
added stripePaymentFormula for custom GC reg object
Browse files Browse the repository at this point in the history
  • Loading branch information
rifkegribenes committed Jun 4, 2018
1 parent ea726f1 commit aef38a6
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 @@ -125,4 +125,9 @@ function itemize(lodgedays, adultMeals, childMeals) {
$('#genlodgingdays').text(lodgedays);
$('#genadultmeals').text(adultMeals);
$('#genchildmeals').text(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)

0 comments on commit aef38a6

Please sign in to comment.