BR-30: If both Invoice line period start date (BT-134) and Invoice line period end date
Severity: fatal · Syntax: CII, UBL
Official message
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).
What this means
The official message is: 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). This page does not add a further obligation.
Typical cause
The assertion in the context above failed for this file.
How to fix it
Adjust the file so the assertion succeeds, then validate it again. This page helps you read the rule.
Business term
BT-134, BT-135
Related rules
Context and assertion
UBL cac:InvoiceLine/cac:InvoicePeriod | cac:CreditNoteLine/cac:InvoicePeriod
CII //ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod
UBL
(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))CII
(ram:EndDateTime/udt:DateTimeString[@format = '102']) >= (ram:StartDateTime/udt:DateTimeString[@format = '102']) or not (ram:EndDateTime) or not (ram:StartDateTime)
Check a file now, free of charge
curl -F "file=@rechnung.xml" https://checkxrechnung.com/v1/validate