FAQ: How does Zudello calculate invoice totals (subtotal, tax, freight)?
Zudello automatically calculates the main header totals on transaction documents based on the values from the individual lines:
-
Line Calculations First: Zudello calculates the exclusive total (
total_exclusive
) and tax amount (tax_amount
) for each individual item line and landed cost line, considering the Are the line totals inclusive of tax? toggle. See Understand Line Totals & Taxes. -
Header Subtotal (
subtotal
): Sum oftotal_exclusive
from all item lines (excludes landed costs). -
Header Freight (
freight
): Sum oftotal_exclusive
from all landed cost lines. -
Header Tax (
tax
): Sum oftax_amount
from all item lines AND all landed cost lines. -
Header Total (
total
): Sum of headersubtotal
+ headertax
+ headerfreight
.
Essentially, totals roll up from the calculated line values, respecting the distinction between standard items and landed costs.
For a detailed breakdown and troubleshooting, see: Understanding How Document Totals are Calculated.