Invoice line needs a net amount

Error BR-FXEXT-BR-24 Factur-X

Each Invoice line (BG-25) shall have an Invoice line net amount (BT-131), if the "Subtype of invoice line item" (BT-X-8) has the value "DETAIL" or is not specified.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

A normal invoice line is missing ram:LineTotalAmount in ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation. The net amount of the invoice line is therefore not stated.

What the rule means

The net amount states the amount of the invoice line excluding VAT. It is required for a normal invoice line.

Affected fields BG-25 BT-131 BT-X-8
Please add the net amount to the invoice line

The net amount is missing from this normal invoice line. Add the line amount excluding VAT.

What to do
  1. Determine the net amount of this invoice line.
  2. Set TradeLineItem.LineTotalAmount.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedLineTradeSettlement>
  <ram:SpecifiedTradeSettlementLineMonetarySummation/>
</ram:SpecifiedLineTradeSettlement>
✓ Correct
<ram:SpecifiedLineTradeSettlement>
  <ram:SpecifiedTradeSettlementLineMonetarySummation>
    <ram:LineTotalAmount>100.00</ram:LineTotalAmount>
  </ram:SpecifiedTradeSettlementLineMonetarySummation>
</ram:SpecifiedLineTradeSettlement>
Check in FactoorSharp
  • AssociatedDocument.LineStatusReasonCode (BT-X-8)
  • LineStatusReasonCodes (BT-X-8)
  • TradeLineItem.LineTotalAmount (BT-131)
Technical details

The test requires ram:LineTotalAmount under ram:SpecifiedTradeSettlementLineMonetarySummation to exist. It applies only to ram:AssociatedDocumentLineDocument without ram:LineStatusReasonCode or with the value DETAIL.

Where the rule applies

The rule applies to ram:AssociatedDocumentLineDocument when ram:LineStatusReasonCode is absent or has the value DETAIL.

Context (rule/@context)
//ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument[ not(ram:LineStatusReasonCode) or ram:LineStatusReasonCode = 'DETAIL' ]
Test expression (assert/@test)
(../ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ ram:LineTotalAmount)