Participating Frequently
July 5, 2024
Answered
Script for calculating sales tax on only certain fields
- July 5, 2024
- 3 replies
- 2659 views
Hello, I am looking to calculate 5% tax on only certain field I have listed below. The script below calculates 10% and but shows as $14750.00 on a subtotal of $1475.00. Please help, what am I doing wrong.
var a = this.getField("fill_76").value;
var b = this.getField("Full Clean").value;
var c = this.getField("Floors only").value;
if (a !=="" || b !=="" || c !=="") {
event.value = a+b+c*(.05/100);
} else {
event.value ="";
}
