IBR-137-OM

[IBR-137-OM] - All invoice amounts and quantities shall be zero or positive, except for rounding amount (IBT-114).

About

ID
IBR-137-OM
Flag
fatal
Context
ubl:Invoice | cn:CreditNote
Test
not( ( descendant::cbc:TaxExclusiveAmount | descendant::cbc:TaxInclusiveAmount | descendant::cbc:AllowanceTotalAmount | descendant::cbc:ChargeTotalAmount | descendant::cbc:PrepaidAmount | descendant::cbc:PayableAmount | descendant::cbc:Amount | descendant::cbc:PriceAmount | descendant::cbc:BaseAmount | descendant::cbc:Quantity | descendant::cbc:BaseQuantity | descendant::cbc:InvoicedQuantity | descendant::cbc:CreditedQuantity | descendant::cbc:TaxAmount | descendant::cbc:LineExtensionAmount ) [ local-name() != 'PayableRoundingAmount' and normalize-space(.) != '' and . castable as xs:decimal and xs:decimal(.) < 0 ] )