For each line item, the total = quantity × unit_price.
Invoice total = sum of line totals − discount + (subtotal − discount) × tax_rate / 100.
For each line item, the total = quantity × unit_price.
Invoice total = sum of line totals − discount + (subtotal − discount) × tax_rate / 100.
Was this helpful?