Each Document level allowance (BG-20) shall have a Document level allowance amount (BT-92).
The SpecifiedTradeAllowanceCharge identified as an allowance has no ActualAmount. Each document-level allowance must have an amount.
A ChargeIndicator value of false identifies an allowance. The amount is required to state the value of that document-level allowance.
A document-level allowance is present, but its amount is missing. Add the allowance amount.
- Provide the amount through
ActualAmountor review the call toAddTradeAllowance(...). - Generate the invoice again and validate it.
<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</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 ChargeIndicator with udt:Indicator set to false, the test checks whether the parent SpecifiedTradeAllowanceCharge contains an ActualAmount.
The rule applies to a document-level SpecifiedTradeAllowanceCharge whose ChargeIndicator has the value false, identifying an allowance.
rule/@context)assert/@test)