Invoiced quantity

Error BR-22 EN 16931

Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129).

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

The invoice line is missing the ram:BilledQuantity element. The invoiced quantity is therefore not provided.

What the rule means

BT-129 states the quantity invoiced for the invoice line. It describes the extent of the invoiced supply or service.

Affected fields BG-25 BT-129
Please provide the invoiced quantity

An invoice line does not have an invoiced quantity. You can add the quantity in the line’s delivery details.

What to do
  1. Provide the quantity in the invoice line’s ram:BilledQuantity element.
  2. Check the value of TradeLineItem.BilledQuantity.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:IncludedSupplyChainTradeLineItem>
  <ram:SpecifiedLineTradeDelivery/>
</ram:IncludedSupplyChainTradeLineItem>
✓ Correct
<ram:IncludedSupplyChainTradeLineItem>
  <ram:SpecifiedLineTradeDelivery>
    <ram:BilledQuantity>1</ram:BilledQuantity>
  </ram:SpecifiedLineTradeDelivery>
</ram:IncludedSupplyChainTradeLineItem>
Check in FactoorSharp
  • TradeLineItem.BilledQuantity (BT-129)
Technical details

The test checks whether ram:SpecifiedLineTradeDelivery/ram:BilledQuantity is present.

Where the rule applies

Applies to each invoice line ram:IncludedSupplyChainTradeLineItem and its ram:SpecifiedLineTradeDelivery.

Context (rule/@context)
//ram:IncludedSupplyChainTradeLineItem
Test expression (assert/@test)
(ram:SpecifiedLineTradeDelivery/ram:BilledQuantity)