Each Document level charge (BG-21) shall have a Document level charge amount (BT-99).
The charge is missing ram:ActualAmount, which specifies the document-level charge amount (BT-99).
The amount quantifies the charge added to the invoice amount. Without it, the document-level charge is not fully specified.
No amount is provided for a document-level charge. Add the amount so the charge is fully described.
- Add the charge amount in
ram:ActualAmount. - Check the value of
AbstractTradeAllowanceCharge.ActualAmount. - Check the call to
AddTradeCharge(...)orAddTradeeCharge(...). - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:ActualAmount>10.00</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
AbstractTradeAllowanceCharge.ActualAmount(Document level charge: BT-99)FacturXInvoice.AddTradeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-21)FacturXInvoice.AddTradeeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-21)FacturXInvoice.GetTradeCharges()(BG-21)AbstractTradeAllowanceCharge(Document level charge: BG-21)
Technical details
For each ram:SpecifiedTradeAllowanceCharge identified as a charge by ram:ChargeIndicator, the test checks for a sibling ram:ActualAmount.
The rule applies to a charge in ram:SpecifiedTradeAllowanceCharge at document level, identified as a charge by ram:ChargeIndicator.
rule/@context)assert/@test)