VRBL-INV-FR-CIUS-1p0-18

Basic Info

Rule When the Invoice Line Group does not contain a Sub Invoice Line Group and the Invoice Line Information Only Indicator is not true, the Invoice Line Price Amount must not be negative.
Context /ubl:Invoice/cac:InvoiceLine/cac:Price/cbc:PriceAmount
Pattern vrbl-invoice-fr-cius-1p0-min
Severity fatal

Implementation

not(boolean(cac:SubInvoiceLine)) or (boolean(../../cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:InformationOnlyIndicator) and ../cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:InformationOnlyIndicator='true') or (. >= 0)