InvoiceGlass

Too many entries for charge reason text · UBL-SR-31

  • Severity · Error
  • Applies to · UBL
  • Editorial review pending

The check allows charge reason text at most once per charge block. The rule fires when the export supplies more entries.

As of

Who can correct it?

The invoicing software provider can correct the export.

How to fix it

  1. Check the export mapping at cac:AllowanceCharge[cbc:ChargeIndicator = true()] → cbc:AllowanceChargeReason.
  2. Check which entries apply and correct the export mapping. A duplicate can be reduced to one entry.

Rule text and source

Paraphrase · The test counts matches at cbc:AllowanceChargeReason per charge block and allows at most 1.

Message to the sender

Hello,

rule UBL-SR-31 was triggered when checking electronic invoice {invoiceNumber}. The export gives charge reason text more often than allowed per charge block. Could you check the export and send us a corrected file?

Kind regards

Example

The export has 2 entries for charge reason text per charge block. After checking which details apply, the corrected export has at most 1.

UBL

cac:AllowanceCharge[cbc:ChargeIndicator = true()] → cbc:AllowanceChargeReason

Fails the rule
<cbc:AllowanceChargeReason>Example</cbc:AllowanceChargeReason>
<cbc:AllowanceChargeReason>Example</cbc:AllowanceChargeReason>

Corrected
<cbc:AllowanceChargeReason>Example</cbc:AllowanceChargeReason>

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file