If both Invoicing period start date (BT-73) and Invoicing period end date (BT-74) are given then the Invoicing period end date (BT-74) shall be later or equal to the Invoicing period start date (BT-73).
When both StartDateTime and EndDateTime are provided, the date in EndDateTime is earlier than the date in StartDateTime. The end date must be the same or later.
The invoicing period must be in chronological order. An end date before the start date does not describe a valid period.
The invoicing period end date is earlier than its start date. Update the dates so that the period is in chronological order.
- Review
BillingPeriodStartandBillingPeriodEnd. - Make sure
BillingPeriodEndis on the same day as or later thanBillingPeriodStart. - Generate the invoice again and validate it.
<ram:BillingSpecifiedPeriod> <ram:StartDateTime> <udt:DateTimeString format="102">20250115</udt:DateTimeString> </ram:StartDateTime> <ram:EndDateTime> <udt:DateTimeString format="102">20250114</udt:DateTimeString> </ram:EndDateTime> </ram:BillingSpecifiedPeriod>
<ram:BillingSpecifiedPeriod> <ram:StartDateTime> <udt:DateTimeString format="102">20250115</udt:DateTimeString> </ram:StartDateTime> <ram:EndDateTime> <udt:DateTimeString format="102">20250115</udt:DateTimeString> </ram:EndDateTime> </ram:BillingSpecifiedPeriod>
FacturXInvoice.BillingPeriodStart(BT-73)FacturXInvoice.BillingPeriodEnd(BT-74)
Technical details
The test compares the date values in EndDateTime and StartDateTime in format 102. It also passes when either element is absent.
The rule applies to the invoice period BillingSpecifiedPeriod and compares its StartDateTime and EndDateTime.
rule/@context)assert/@test)