On this page
  1. References
  2. Prepayments and totals
  3. VAT and vouchers
  4. Accounting references
  5. Payment means
  6. SEPA direct debit
  7. Related

Document data mapping

The formatter builds the document from the Magento sales document and the store-view configuration. Review the source field as well as the output value when a receiver rejects a file.

References

Buyer reference (BT-10) comes from the saved order field einvoice_buyer_reference. If that field is empty and B2G detection uses a customer attribute, the configured attribute supplies the Leitweg-ID. Customer notes and document numbers do not fill in a missing BT-10. Purchase-order and other references each use their configured source.

Prepayments and totals

Prepayment fields can map to BT-113. The payable amount follows the document total rules, including BT-112 and BT-115. A prepayment must be deducted from the grand total before it is emitted as payable. Check the generated CII totals with einvoice:verify-amounts and compare them with Magento totals.

VAT and vouchers

Line categories include standard, zero-rated, exempt, reverse-charge, intra-community, export and out-of-scope cases. Magento gift-card products and the configured voucher attribute can affect classification. Test mixed VAT rates, shipping, discounts, gift cards and cross-border orders together with the recipient.

Accounting references

BT-133 can come from an order-item field, product attribute or customer attribute. The value is resolved from the sales data available during generation. Treat it as a snapshot: later changes to product or customer attributes do not rewrite an already generated document.

Payment means

Default payment terms and payment means codes can be overridden per payment method. The Payment Method Mapping grid edits one row per payment method with these columns:

Column Effect
Payment Method The Magento payment method the row applies to
Payment Terms Template Term text for this method; empty inherits the default template
Terms Days Due-date offset for this method; empty inherits Default Payment Terms (Days)
Payment Means Code UN/EDIFACT 4461 code for this method; empty uses the default (or the no-IBAN default when no IBAN resolves)
Settlement Treatment Standard / unpaid, Document-specific prepayment or Paid with settlement evidence — controls how an already-paid amount enters the document totals (BT-113/prepaid vs. fully settled)
IBAN Override Bank IBAN used for this method instead of the company Bank IBAN
BIC Override Bank BIC used for this method instead of the company Bank BIC/SWIFT

A missing IBAN can select the configured no-IBAN code. Verify the result against the payment method and the instructions printed on the normal Magento invoice.

SEPA direct debit

For payment means codes 49 and 59, supply these values in the order payment's additional information:

  • sepa_mandate_reference: the mandate reference;
  • sepa_debtor_iban: the debtor's IBAN;
  • sepa_creditor_identifier: the creditor identifier, or the store-view SEPA Creditor Identifier setting when no payment value is supplied.

XRechnung and PEPPOL generation require a mandate reference and creditor identifier for direct debit. The module validates the debtor IBAN if one is supplied. Use the debtor's account, not the seller's company bank IBAN. Configure these values in the payment integration before generating a sample.

Display preferences

Adjust how this website is displayed. Changes apply immediately.

Text size
Text spacing
Reading aids

Follows the pointer. Move it with Alt + Up/Down outside input fields. Hidden while a dialog is open.

Uses the voices provided by your browser, which may use an online service. Reading starts only when you press Read aloud.

Your choices are saved in this browser for this website.