Copy link to clipboard
Copied
Copy link to clipboard
Copied
How is tax calculated, do you just enter amount manually?
Copy link to clipboard
Copied
Yes, I'll add tax manually.
Copy link to clipboard
Copied
Try this as custom calculation script of "TOTALTOTAL" field:
var total = 0;
var tax = Number(this.getField("TOTALTAX").valueAsString);
var ship = Number(this.getField("TOTALSHIPPING").valueAsString);
for(var i=1; i<=7; i++){
var qty = Number(this.getField("QTY"+i).valueAsString);
var price = Number(this.getField("PRICE"+i).valueAsString);
var dsc = Number(this.getField("DISCOUNT"+i).valueAsString);
if (qty !== 0 && price !== 0) {
var itemTotal = qty * price * (1 - dsc);
this.getField("TOTAL" + i).value = itemTotal;
total += itemTotal;}
else {
this.getField("TOTAL" + i).value = "";}}
event.value = (total*(1+tax))+ship;
Copy link to clipboard
Copied
We need to know the amount of the tax and the cost of the shipping…
Copy link to clipboard
Copied
This is an empty form. I am doing practice. There is no data for tax and shipping cost.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now