Cius

Peppol-Icon

BIS3 Denmark

Validation message

For Danish Suppliers, a Credit note cannot have a negative total (PayableAmount)

Context

ubl-creditnote:CreditNote[$DKSupplierCountry = 'DK'] | ubl-invoice:Invoice[$DKSupplierCountry = 'DK']

rsm:CrossIndustryInvoice[$DKSupplierCountry = 'DK']

UBL

XPath

1

not((boolean(/ubl-creditnote:CreditNote) and ($DKCustomerCountry = 'DK')) and (number(cac:LegalMonetaryTotal/cbc:PayableAmount/text()) < 0) )

CII

XPath

1

not((($DKCustomerCountry = 'DK') and (normalize-space(rsm:ExchangedDocument/ram:TypeCode/text()) = '381')) and (number(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:DuePayableAmount/text()) < 0) )

Used in business terms