Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) + Rounding amount (BT-114) + Sum of Charge amount collected on behalf of a third party (BT-179).
ram:DuePayableAmount does not equal the invoice total with VAT minus amounts already prepaid, plus the rounding amount and charges collected on behalf of third parties.
The amount due shows what remains payable after accounting for prepayments, rounding, and amounts collected on behalf of third parties.
The amount still due does not match the invoice total after accounting for prepayments, rounding, and amounts collected on behalf of third parties. You can compare the individual components.
- Compare
FacturXInvoice.DuePayableAmountwithFacturXInvoice.GrandTotalAmountminusFacturXInvoice.TotalPrepaidAmount. - Also account for
FacturXInvoice.RoundingAmountand theFinancialAdjustment.ActualAmountvalues forSpecifiedFinancialAdjustment. - Generate the invoice again and validate it once more.
FacturXInvoice.DuePayableAmount(BT-115)FacturXInvoice.GrandTotalAmount(BT-112)FacturXInvoice.RoundingAmount(BT-114)FacturXInvoice.TotalPrepaidAmount(BT-113)FinancialAdjustment.ActualAmount(SpecifiedFinancialAdjustment: BT-179)
Technical details
The test compares ram:DuePayableAmount with ram:GrandTotalAmount minus ram:TotalPrepaidAmount, plus ram:RoundingAmount and the sum of ram:ActualAmount values in ram:SpecifiedFinancialAdjustment.
The rule applies to ram:SpecifiedTradeSettlementHeaderMonetarySummation and checks ram:DuePayableAmount against the invoice, prepaid, rounding, and third-party amounts.
rule/@context)assert/@test)