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.
A normal invoice line is missing ram:LineTotalAmount in ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation. The net amount of the invoice line is therefore not stated.
The net amount states the amount of the invoice line excluding VAT. It is required for a normal invoice line.
The net amount is missing from this normal invoice line. Add the line amount excluding VAT.
- Determine the net amount of this invoice line.
- Set
TradeLineItem.LineTotalAmount. - Generate the invoice again and validate it.
<ram:SpecifiedLineTradeSettlement> <ram:SpecifiedTradeSettlementLineMonetarySummation/> </ram:SpecifiedLineTradeSettlement>
<ram:SpecifiedLineTradeSettlement> <ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:LineTotalAmount>100.00</ram:LineTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation> </ram:SpecifiedLineTradeSettlement>
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.
The rule applies to ram:AssociatedDocumentLineDocument when ram:LineStatusReasonCode is absent or has the value DETAIL.
rule/@context)assert/@test)