Commit
cc0ff592b5ae3cc181da2058102242fd926336b5
by infoAmazon invoices: book the exact VAT from the PDF when a line-level purchase tax exists
Amazon rounds the VAT down (74,66 × 19 % → 14,18), iDempiere half-up (14,19); with
the document-level "19% Mwst." the VAT is recomputed at completion, so 3 of 15
documents ended up one cent above the Amazon total.
iDempiere keeps a manually entered line TaxAmt on purchase documents whose tax
rate is NOT document level. The importer now prefers such a rate (purchase,
IsDocumentLevel = N) and writes the VAT from the PDF on each line (per-line VAT
for fee invoices, proportional for Ads campaigns, remainder on the largest line).
Without such a rate nothing changes — except that a difference between the booked
total and the Amazon document is now reported as a warning instead of going unnoticed.