Reference
Markdown exportBR-DE-10 No invoice lines for allowances or charges
Invoice lines must not be used for allowances or charges.
Problem Description
Invoice lines must not be used for allowances or charges.
ERROR
XRechnung 3.0
Context and Significance
Allowances (discounts) and charges (surcharges) must be represented using the dedicated allowance/charge structures. Encoding a discount as a negative invoice line (or a surcharge as an extra line) frequently breaks totals and violates profile rules.
Solution
Remove the invoice lines for allowances or charges.
Valid Examples
Use these points as the practical checks for this section.
- Header-level AllowanceCharge with ChargeIndicator=false and an amount
- Line-level AllowanceCharge inside an InvoiceLine where permitted
Invalid Examples
Use these points as the practical checks for this section.
- InvoiceLine with negative quantity/amount used to model a discount
- Separate line item called "Discount" instead of AllowanceCharge
Code Examples
Valid XML
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
</cac:AllowanceCharge>Invalid XML
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:LineExtensionAmount currencyID="EUR">-10.00</cbc:LineExtensionAmount>
<cac:Item><cbc:Name>Discount</cbc:Name></cac:Item>
</cac:InvoiceLine>Technical Details
Affected Fields
Allowances and Charges, Invoice Lines