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).
When both ram:StartDateTime and ram:EndDateTime are provided, the date in ram:EndDateTime is earlier than the date in ram:StartDateTime.
A billing period must be in chronological order: its end date must not be earlier than its start date.
The billing period end date is earlier than its start date. You can resolve this by providing the two dates in the correct order.
- Check the
StartDateTimeandEndDateTimevalues in the billing period. - Make sure the end date is the same as or later than the start date.
- Check the mappings in
TradeLineItem.BillingPeriodStartandTradeLineItem.BillingPeriodEnd. - Generate the invoice again and validate it.
<ram:BillingSpecifiedPeriod> <ram:StartDateTime> <udt:DateTimeString format="102">20240102</udt:DateTimeString> </ram:StartDateTime> <ram:EndDateTime> <udt:DateTimeString format="102">20240101</udt:DateTimeString> </ram:EndDateTime> </ram:BillingSpecifiedPeriod>
<ram:BillingSpecifiedPeriod> <ram:StartDateTime> <udt:DateTimeString format="102">20240101</udt:DateTimeString> </ram:StartDateTime> <ram:EndDateTime> <udt:DateTimeString format="102">20240102</udt:DateTimeString> </ram:EndDateTime> </ram:BillingSpecifiedPeriod>
TradeLineItem.BillingPeriodStart(BT-134)TradeLineItem.BillingPeriodEnd(BT-135)
Technical details
The test compares the date values in ram:EndDateTime and ram:StartDateTime when both are present; equal dates are allowed.
The rule applies to the invoice line’s billing period ram:BillingSpecifiedPeriod.
rule/@context)assert/@test)