Calculating Sales Tax Script?
i created invoice in livecycle designer. have 2 checkboxes "yes" or "no" when comes whether or not sales tax applies. have idea if expression it's not working @ all. once typed if expression, sales tax field blank. before added checkboxes or if expression, field working (subtotal*taxrate). named each field individually checkboxes.
i need have allow situation when sales tax doesn't apply , of customers not charge sales tax. need figuring out script best use or how make work. also, write script? under calculate?
the script wrote was:
if yes_1 = "yes" (subtotal*taxrate)
else salestax = 0 endif
if yes_2 = "yes" (subtotal*tax rate)
else salestax = 0 endif
can me please?!
thanks
rachel
step on graphics, llc
it not working because syntax incorrect. put calculate event of salestax field (in formcalc):
if (yes_1 == 1 or yes_2 == 1) then
$ = subtotal * taxrate
else $ = 0
endif
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment