Faktura

CII-SR-485

fatalEN 16931syntax binding ruleCII

TotalDiscountAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.

Why it fails

'TotalDiscountAmount' appears more than once in SpecifiedTradeSettlementHeaderMonetarySummation, and this profile allows it at most once.

How to fix it

Keep the single correct 'TotalDiscountAmount' in SpecifiedTradeSettlementHeaderMonetarySummation and delete the rest. Repeating an element that the semantic model treats as singular is usually a serialiser writing every value it has instead of choosing one.

What the validator checks

CII — context /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation

count(ram:TotalDiscountAmount) <= 1

Related rules

Part of CII-SR — CII restrictions.

Validate an invoice against this rule →