Billing period requires at least one date

Error BR-CO-20 EN 16931

If Invoice line period (BG-26) is used, the Invoice line period start date (BT-134) or the Invoice line period end date (BT-135) shall be filled, or both.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The ram:BillingSpecifiedPeriod element is present, but neither ram:StartDateTime nor ram:EndDateTime is provided.

What the rule means

A provided billing period must be described by a start date, an end date, or both.

Affected fields BG-26 BT-134 BT-135
Please add a date to the billing period

The billing period is present but has no start or end date. Provide at least one of the two dates.

What to do
  1. Check the existing BillingSpecifiedPeriod.
  2. Add StartDateTime, EndDateTime, or both to it.
  3. Check the mappings in TradeLineItem.BillingPeriodStart and TradeLineItem.BillingPeriodEnd.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:BillingSpecifiedPeriod/>
✓ Correct
<ram:BillingSpecifiedPeriod>
  <ram:StartDateTime>
    <udt:DateTimeString format="102">20240101</udt:DateTimeString>
  </ram:StartDateTime>
</ram:BillingSpecifiedPeriod>
Check in FactoorSharp
  • TradeLineItem.BillingPeriodEnd (BT-135)
  • TradeLineItem.BillingPeriodStart (BT-134)
Technical details

The test requires ram:StartDateTime or ram:EndDateTime to be present within the billing period.

Where the rule applies

The rule applies to the invoice line’s billing period ram:BillingSpecifiedPeriod.

Context (rule/@context)
//ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod
Test expression (assert/@test)
(ram:StartDateTime) or (ram:EndDateTime)