Rules / TC-002
TC-002 error
Line VAT = line net × rate
PintLint check on JSON source data: each line's VAT amount must equal the line net amount × the VAT rate, rounded to 2 decimals.
Many ASPs recalculate VAT themselves, so a wrong VAT figure in your source system passes their checks and stays wrong in your books.
Fails
{ "quantity": 10, "unit_price": 350, "tax_percent": 5, "tax_amount": 180 }
Fix
Recalculate: 3500.00 × 5% = 175.00. PintLint's fix does this and recalculates the totals.
Passes
{ "quantity": 10, "unit_price": 350, "tax_percent": 5, "tax_amount": 175 }