Rules
VRBL-INV-SA-1p2-97
Basic Info
| Rule | All Amounts in the Document Totals must be positive. |
| Context |
/ubl:Invoice/cac:LegalMonetaryTotal
|
| Pattern | vrbl-invoice-sa-1p2 |
| Severity | fatal |
Implementation
(not(cbc:LineExtensionAmount) or cbc:LineExtensionAmount >=0 ) and (not(cbc:TaxExclusiveAmount) or cbc:TaxExclusiveAmount >=0 ) and (not(cbc:TaxInclusiveAmount) or cbc:TaxInclusiveAmount >=0) and (not(cbc:AllowanceTotalAmount) or cbc:AllowanceTotalAmount >=0) and (not(cbc:ChargeTotalAmount) or cbc:ChargeTotalAmount >=0) and (not(cbc:PrepaidAmount) or cbc:PrepaidAmount >=0) and (not(cbc:PayableAmount) or cbc:PayableAmount >=0)