IBR-168-OM

[IBR-168-OM] - The Line Item VAT amount (BTOM-016) must be Invoiced item VAT rate (IBT-152) multiplied by Invoice Line Net Amount (IBT-131).

About

ID
IBR-168-OM
Flag
fatal
Context
cac:InvoiceLine | cac:CreditNoteLine
Test
not($vatRate) or ( $lineTaxAmount castable as xs:decimal and cbc:LineExtensionAmount castable as xs:decimal and $vatRate castable as xs:decimal and u:slack( xs:decimal($lineTaxAmount), round( ( xs:decimal(cbc:LineExtensionAmount) * xs:decimal($vatRate) div 100 ) * 100 ) div 100, 0.02 ) )