Line Total without Tax Rate and Tax Amount
The CalcLineTotalWithOutTax calculation is performed on-demand whenever a line item field is modified and then a user navigates to another field. The actual calculation depends on the Discount value and whether or not the Discount As Percentage setting is selected.
The following syntax describes the calculation.
if (Discount == 0) {
“Line Total” = Quantity * “Unit Price” / “U Of Q”
else {
“Line Total” = (Quantity * (“Unit Price” - Discount)) / “U Of Q”;
}
else if (isDiscountAsPercentage) {
“Line Total” = (Quantity * (“Unit Price” - (“Unit Price” * Discount / 100))) / “U Of Q”;
}
The result of this CalcLineTotalWithOutTax calculation is then used as input by other calculations.