Rule reference

BR-27 A line (id "1") has a negative item net price (BT-146: -5)

Line 1 (id "1") has a negative item net price (BT-146: -5). The net price must never be negative — EN 16931 models reductions as allowances, not as negative prices.

This rule is implemented and its error payload below is real, but the long-form write-up — normative text, worked example, divergence note — is not written yet. Everything the library knows about this rule is on this page. Ask and we will prioritise it.

Business term
BT-146
Severity
fatal

What the library returns

The exact object in result.errors when this rule fires. Generated by running @attestwire/en16931, not transcribed:

TeachingError
{
  "rule": "BR-27",
  "field": "BT-146",
  "severity": "fatal",
  "message": "Line 1 (id \"1\") has a negative item net price (BT-146: -5). The net price must never be negative — EN 16931 models reductions as allowances, not as negative prices.",
  "fix": "Make unitPrice positive. To bill less, reduce the price or (once supported) add a line allowance; to reverse a supply entirely, issue a credit note with invoiceTypeCode \"381\".",
  "example": "\"unitPrice\": 150",
  "xpath": "/ubl:Invoice/cac:InvoiceLine[1]/cac:Price/cbc:PriceAmount",
  "docsUrl": "https://attestwire.com/rules/BR-27"
}

xpath locates the element in the generated UBL document, which is where a KoSIT or Peppol validator will report the same problem.

A passing value

the shape this field expects
"unitPrice": 150

The fix

Make unitPrice positive. To bill less, reduce the price or (once supported) add a line allowance; to reverse a supply entirely, issue a credit note with invoiceTypeCode "381".

Arrived from a stack trace? The docsUrl on every error links straight here. Something wrong on this page — tell us.