Billing period date is missing

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

ram:BillingSpecifiedPeriod is present but contains neither ram:StartDateTime nor ram:EndDateTime. At least one of these date elements must be provided.

What the rule means

When a billing period is used for an invoice line, it must contain at least a start date or an end date.

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

The billing period is included but has neither a start date nor an end date. Add at least one of the two dates.

What to do
  1. Add either ram:StartDateTime or ram:EndDateTime, or both, to ram:BillingSpecifiedPeriod.
  2. Set the date through TradeLineItem.BillingPeriodStart or TradeLineItem.BillingPeriodEnd.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BillingSpecifiedPeriod/>
✓ Correct
<ram:BillingSpecifiedPeriod>
  <ram:StartDateTime/>
</ram:BillingSpecifiedPeriod>
Check in FactoorSharp
  • TradeLineItem.BillingPeriodEnd (BT-135)
  • TradeLineItem.BillingPeriodStart (BT-134)
Technical details

The test requires either ram:StartDateTime or ram:EndDateTime to be present inside ram:BillingSpecifiedPeriod.

Where the rule applies

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

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