Provide a delivery date or invoicing period for K

Error BR-IC-11 EN 16931

In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Actual delivery date (BT-72) or the Invoicing period (BG-14) shall not be blank.

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

For a VAT breakdown with ram:CategoryCode K, neither an actual delivery date in ram:OccurrenceDateTime/udt:DateTimeString nor a start or end date in ram:BillingSpecifiedPeriod is provided.

What the rule means

For an intra-community supply, the invoice must include a time reference through either the actual delivery date or the invoicing period.

Affected fields BG-23 BT-118 BT-72 BG-14
Please add the delivery date or invoicing period for `K`

The intra-community supply with category code K has no delivery date or invoicing period. Adding either time reference can resolve the issue.

What to do
  1. Add the actual delivery date in ram:OccurrenceDateTime/udt:DateTimeString or a start or end date in ram:BillingSpecifiedPeriod.
  2. For the delivery date, check the ActualDeliveryDate property.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>K</ram:CategoryCode>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>K</ram:CategoryCode>
</ram:ApplicableTradeTax>
<ram:ActualDeliverySupplyChainEvent>
  <ram:OccurrenceDateTime>
    <udt:DateTimeString>20261115</udt:DateTimeString>
  </ram:OccurrenceDateTime>
</ram:ActualDeliverySupplyChainEvent>
Check in FactoorSharp
  • FacturXInvoice.ActualDeliveryDate (BT-72)
  • TaxCategoryCodes (BT-118)
  • FacturXInvoice.AddApplicableTradeTax(basisAmount, percent, taxAmount, typeCode, categoryCode, allowanceChargeBasisAmount, exemptionReasonCode, exemptionReason, lineTotalBasisAmount) (BG-23)
  • FacturXInvoice.AnyApplicableTradeTaxes() (BG-23)
  • FacturXInvoice.GetApplicableTradeTaxes() (BG-23)
Technical details

The test accepts udt:DateTimeString under the actual delivery event, or ram:StartDateTime or ram:EndDateTime under ram:BillingSpecifiedPeriod.

Where the rule applies

The rule applies to invoices with a VAT breakdown ram:ApplicableTradeTax and ram:CategoryCode K. It checks the actual delivery date or the invoicing period.

Context (rule/@context)
//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ ram:CategoryCode[.= 'K']
Test expression (assert/@test)
(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:ActualDeliverySupplyChainEvent/ram:OccurrenceDateTime/udt:DateTimeString) or (../../ram:BillingSpecifiedPeriod/ram:StartDateTime) or (../../ram:BillingSpecifiedPeriod/ram:EndDateTime)