View Single Post
  #3 (permalink)  
Old 09-27-2008, 08:22 PM
Mark_Walsh@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

Shouldn't need any javascript, this is doable with calculation fields.

If you name the line item price fields as "ItemPrice.1", "ItemPrice.2"...etc. then you can create a field to calculate the sum of "ItemPrice"

Create a field for the gratuity and the sales tax (set the Default values to ".2" and ".065" and make them uneditable) and you can then use them in the calculations (sums and products) for the other 'Totals" fields you need.
Reply With Quote