Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason.

Error BR-CO-07 EN 16931

Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
Affected fields BT-140 BT-139
Please note: this rule can never be triggered

The test condition of this rule is always satisfied. It is stated as a requirement in the specification, but the validator does not check it automatically, so it never produces a message.

What to do
  1. There is nothing to fix.
  2. If you still want to follow the requirement, read the message text under “Technical details”.
Check in FactoorSharp
  • AllowanceReasonCodes (Line level allowance: BT-140)
  • TradeAllowance.ReasonCode (Line level allowance: BT-140)
  • AbstractTradeAllowanceCharge.Reason (Line level allowance: BT-139)
Technical details
Context (rule/@context)
//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']
Test expression (assert/@test)
true()