Each Specified Trade Allowance Charge (BG-20)(BG-21) shall contain a Charge Indicator.
The ram:ChargeIndicator element is missing from ram:SpecifiedTradeAllowanceCharge. As a result, the type of amount in this XML section is not provided through the indicator checked by this rule.
The indicator distinguishes an allowance from a charge in this group.
An allowance or charge is missing the indicator that identifies its type. Add the information so that the group is clearly identified.
- Check the affected allowance or charge.
- Use
AddTradeAllowance(...)for an allowance orAddTradeCharge(...)for a charge. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge/>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
AbstractTradeAllowanceCharge(Document level allowance: BG-20; Document level charge: BG-21)AbstractTradeAllowanceCharge.ChargeIndicator(Document level allowance: BG-20; Document level charge: BG-21)FacturXInvoice.AddTradeAllowance(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-20)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)
Technical details
The test checks whether ram:ChargeIndicator is present as an element within ram:SpecifiedTradeAllowanceCharge.
The rule applies to each document-level ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)