Net price must not be negative

Error BR-27 EN 16931

The Item net price (BT-146) shall NOT be negative.

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

The value of ram:ChargeAmount in the invoice line’s net price is less than zero. A negative net price is not allowed by this rule.

What the rule means

BT-146 is the item net price. The rule requires this price to be zero or positive.

Affected fields BT-146
Please check the item net price

The net price on an invoice line is negative. This rule does not allow a value below zero for this price.

What to do
  1. Check the value of ram:ChargeAmount in the invoice line’s net price.
  2. Check the value of TradeLineItem.NetUnitPrice.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:IncludedSupplyChainTradeLineItem>
  <ram:SpecifiedLineTradeAgreement>
    <ram:NetPriceProductTradePrice>
      <ram:ChargeAmount>-1.00</ram:ChargeAmount>
    </ram:NetPriceProductTradePrice>
  </ram:SpecifiedLineTradeAgreement>
</ram:IncludedSupplyChainTradeLineItem>
✓ Correct
<ram:IncludedSupplyChainTradeLineItem>
  <ram:SpecifiedLineTradeAgreement>
    <ram:NetPriceProductTradePrice>
      <ram:ChargeAmount>0.00</ram:ChargeAmount>
    </ram:NetPriceProductTradePrice>
  </ram:SpecifiedLineTradeAgreement>
</ram:IncludedSupplyChainTradeLineItem>
Check in FactoorSharp
  • TradeLineItem.NetUnitPrice (BT-146)
Technical details

The test compares ram:ChargeAmount in the net price with zero and passes when the value is greater than or equal to zero.

Where the rule applies

Applies to ram:ChargeAmount in the net price ram:NetPriceProductTradePrice of each invoice line ram:IncludedSupplyChainTradeLineItem.

Context (rule/@context)
//ram:IncludedSupplyChainTradeLineItem
Test expression (assert/@test)
(ram:SpecifiedLineTradeAgreement/ram:NetPriceProductTradePrice/ram:ChargeAmount) >= 0