VRBL-INV-SA-1p2-8

Basic Info

Rule If the Legal Monetary Total Prepaid Amount is provided, then the following data is mandatory to provide as additional invoice line(s) - Invoice Line Document Reference ID - Invoice Line Document Reference Issue Date - Invoice Line Document Reference Issue Time - Invoice Line Document Reference Document Type Code.
Context /ubl:Invoice
Pattern vrbl-invoice-sa-1p2
Severity fatal

Implementation

count(cac:LegalMonetaryTotal/cbc:PrepaidAmount)=0 or count(cac:InvoiceLine/cac:DocumentReference/cbc:ID) >0 and count(cac:InvoiceLine/cac:DocumentReference/cbc:IssueDate)>0 and count(cac:InvoiceLine/cac:DocumentReference/cbc:IssueTime)>0 and count(cac:InvoiceLine/cac:DocumentReference/cbc:DocumentTypeCode)>0