fatalPeppol BIS Billing 3.0profileCIIUBL
Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount
The invoice line net amount (BT-131) does not equal quantity x (net price / base quantity), plus line charges, minus line allowances.
Recompute BT-131 = round(BT-129 x BT-146 / BT-149, 2) + line charges - line allowances, with BT-149 (base quantity) treated as 1 when absent. Peppol enforces this arithmetic per line; plain EN 16931 does not, which is why an invoice can pass one and fail the other.
CII — context —
u:slack($lineExtensionAmount, ($quantity * ($priceAmount div $baseQuantity)) + $chargesTotal - $allowancesTotal, $slackValue)
UBL — context —
u:slack($lineExtensionAmount, ($quantity * ($priceAmount div $baseQuantity)) + $chargesTotal - $allowancesTotal, $slackValue)