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.
LineTotalAmount is missing from SpecifiedLineTradeSettlement/SpecifiedTradeSettlementLineMonetarySummation. This applies when LineStatusReasonCode is not specified or is DETAIL.
The net amount states the amount for the invoice line. Without it, the net value of the line is not provided.
The net amount is not provided for this invoice line. You can complete the line by adding LineTotalAmount.
- Check the status in
AssociatedDocumentLineDocument. - For a line with no status code or with
DETAIL, add the amount usingTradeLineItem.LineTotalAmount. - Regenerate the invoice and validate it again.
<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 SpecifiedLineTradeSettlement/SpecifiedTradeSettlementLineMonetarySummation/LineTotalAmount for lines without a status code and for lines with DETAIL.
The rule applies to an IncludedSupplyChainTradeLineItem invoice line whose AssociatedDocumentLineDocument has no LineStatusReasonCode or has the value DETAIL.
rule/@context)assert/@test)