Each Document level allowance (BG-20) shall have a Document level allowance amount (BT-92).
The allowance is missing ram:ActualAmount, which specifies the document-level allowance amount (BT-92).
The amount quantifies the allowance deducted from the invoice amounts. Without it, the document-level allowance is not fully specified.
No amount is provided for a document-level allowance. Add the amount so the allowance is fully described.
- Add the allowance amount in
ram:ActualAmount. - Check the value of
AbstractTradeAllowanceCharge.ActualAmount. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:ActualAmount>10.00</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
AbstractTradeAllowanceCharge.ActualAmount(Document level allowance: BT-92)FacturXInvoice.AddTradeAllowance(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-20)FacturXInvoice.GetTradeAllowances()(BG-20)FacturXInvoice.TradeAllowanceCharges(BG-20)AbstractTradeAllowanceCharge(Document level allowance: BG-20)
Technical details
For each ram:SpecifiedTradeAllowanceCharge identified as an allowance by ram:ChargeIndicator, the test checks for a sibling ram:ActualAmount.
The rule applies to an allowance in ram:SpecifiedTradeAllowanceCharge at document level, identified as an allowance by ram:ChargeIndicator.
rule/@context)assert/@test)