Home
/
Versions
2017
Rules
DK-R-016
Cius
BIS3 Denmark
Validation message
For Danish Suppliers, a Credit note cannot have a negative total (PayableAmount)
UBL
Context
Copied
1
ubl-creditnote:CreditNote[$DKSupplierCountry = 'DK'] | ubl-invoice:Invoice[$DKSupplierCountry = 'DK']
Rule
not((boolean(/ubl-creditnote:CreditNote) and ($DKCustomerCountry = 'DK')) and (number(cac:LegalMonetaryTotal/cbc:PayableAmount/text()) < 0) )
CII
rsm:CrossIndustryInvoice[$DKSupplierCountry = 'DK']
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
BT-115