Each Document level charge or tax (BG-21) shall contain a Document level charge or tax reason (BT-104) or a Document level charge reason code (BT-105) or Document level non-VAT tax code (BT-177), or both reason and code.
The charge contains neither ram:Reason nor ram:ReasonCode. At least one of these elements must be present.
A reason or reason code explains why the document-level charge is applied.
A reason is missing for a document-level charge. Add a written reason or a reason code to make the charge understandable.
- For the charge, provide either a reason in
Reasonor a code inReasonCode. - Check the entry supplied through
AddTradeCharge(...)or the values inTradeCharge.ReasonCodeandAbstractTradeAllowanceCharge.Reason. - 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:Reason>Frais de traitement</ram:Reason> </ram:SpecifiedTradeAllowanceCharge>
ChargeReasonCodes(Document level charge: BT-105)TradeCharge.ReasonCode(Document level charge: BT-105)AbstractTradeAllowanceCharge.Reason(Document level charge: BT-104)FacturXInvoice.AddTradeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-21)FacturXInvoice.GetTradeCharges()(BG-21)
Technical details
For each charge with ram:ChargeIndicator equal to true, the test checks whether the directly associated ram:Reason or ram:ReasonCode exists.
This rule applies to a document-level charge in ram:SpecifiedTradeAllowanceCharge where ram:ChargeIndicator is true.
rule/@context)assert/@test)