IBR-147-AE
Invoice line net amount (IBT-131) MUST equal (Invoiced quantity (IBT-129) * (Item net price (IBT-146)/item price base quantity (IBT-149)) + Sum of invoice line charge amount (IBT-141) - sum of invoice line allowance amount (IBT-136).
About
- ID
ibr-147-ae- Flag
- fatal
- Context
cac:InvoiceLine | cac:CreditNoteLine- Test
if (exists(cbc:InvoicedQuantity | cbc:CreditedQuantity) and exists(cac:Price/cbc:PriceAmount) and exists(cac:Price/cbc:BaseQuantity)) then (if (xs:decimal(cac:Price/cbc:BaseQuantity) = 0) then false() else u:slack(xs:decimal(cbc:LineExtensionAmount), (xs:decimal(cbc:InvoicedQuantity | cbc:CreditedQuantity) * xs:decimal(cac:Price/cbc:PriceAmount) div xs:decimal(cac:Price/cbc:BaseQuantity)) + sum(cac:AllowanceCharge[cbc:ChargeIndicator="true"]/xs:decimal(cbc:Amount)) - sum(cac:AllowanceCharge[cbc:ChargeIndicator="false"]/xs:decimal(cbc:Amount)), 0.02)) else false()