VRBL-INV-AU-1p0-52
Basic Info
| Rule | In case the Legal Monetary Total Payable Amount is positive, either the Payment Terms Note or the Due Date must be present. |
| Context |
/ubl:Invoice/cac:LegalMonetaryTotal
|
| Pattern | vrbl-invoice-au-1p0 |
| Severity | fatal |
Implementation
(
cbc:PayableAmount >= 0
and
boolean(/ubl:Invoice/cac:PaymentTerms/cbc:Note)
or
boolean(/ubl:Invoice/cbc:DueDate)
)
or
cbc:PayableAmount <= 0
or
/ubl:Invoice/cbc:InvoiceTypeCode = '381'
or
/ubl:Invoice/cbc:InvoiceTypeCode = '261'