VRBL-INV-PEPPOL-PINT-AUNZ-1p0-52
Basic Info
| Rule | In case the Amount Due For Payment is positive, either the Payment Terms Note or the Payment Due Date must be present. |
| Context |
/ubl:Invoice/cac:LegalMonetaryTotal
|
| Pattern | vrbl-invoice-peppol-pint-au-nz |
| 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'