Faktura

BR-30

fatalEN 16931EN 16931 business ruleCIIUBLBT-134BT-135

If both Invoice line period start date (BT-134) and Invoice line period end date (BT-135) are given then the Invoice line period end date (BT-135) shall be later or equal to the Invoice line period start date (BT-134).

Why it fails

An invoice line period ends (BT-135) before it starts (BT-134).

How to fix it

Correct the line period so end >= start.

What the validator checks

CII — context $Invoice_Line_Period

(ram:EndDateTime/udt:DateTimeString[@format = '102']) >= (ram:StartDateTime/udt:DateTimeString[@format = '102']) or not (ram:EndDateTime) or not (ram:StartDateTime)

UBL — context $Invoice_Line_Period

(exists(cbc:EndDate) and exists(cbc:StartDate) and xs:date(cbc:EndDate) >= xs:date(cbc:StartDate)) or not(exists(cbc:StartDate)) or not(exists(cbc:EndDate))

Related rules

Part of BR — EN 16931 core business rules.

Validate an invoice against this rule →