BR-KSA-EN16931-12: Item price base quantity must be greater than zero

Explained by Matheel from ZATCA's rule text and the condition SDK 3.4.8 executes · Updated

Error: the invoice is rejectedConditional, see belowFields: BT-149

Applies when cac:InvoiceLine/cac:Price/cbc:BaseQuantity (BT-149) is present with a value. The value must be a number greater than 0.

How to fix it

Use a positive base quantity, e.g. <cbc:BaseQuantity unitCode="PCE">1</cbc:BaseQuantity>, or omit cbc:BaseQuantity if the price is per one unit.

ZATCA's official text

[BR-KSA-EN16931-12]-Base quantity (BT-149) must be a positive number above zero.
Source: ZATCA SDK 3.4.8 · ZATCA KSA rules

Fails when (the condition ZATCA's SDK runs)

string-length(.) > 0 and not(number((.)) > 0)

Related rules

Validate your invoice against ZATCA's rules

Paste the XML and see every error and warning. It runs in your browser; the invoice goes nowhere.

Validate an invoice or try Matheel