Snelstart Integration

Version v2.5.1
Platform Magento 2
Last Updated 12 December 2025

SnelStart Advanced Ledger Mapping for Magento 2

The standard ledger configuration maps ledgers by tax rate category (Hoog, Laag, etc.). Advanced Ledger Mapping lets you override this with rules based on line item type, tax rule, and country — giving you fine-grained control over which ledger account is used per invoice line.

Use cases:

  • Different types of sales (e.g., shipping to Germany vs. products to Belgium) need different ledger accounts, even when they share the same tax rate
  • Payment fees (iDEAL, Klarna, credit card surcharges) need to be booked to a separate ledger from regular product sales

Location: Stores → Configuration → Accounting → SnelStart → Advanced Settings → Advanced Ledgers

Prerequisites

Before configuring advanced ledger mapping:

  1. Ledgers synced — Click "Sync Ledger & Costs from SnelStart" in the Ledger Accounts section
  2. Tax Rate Mapping configured — See the Tax Rate Mapping documentation
  3. Standard ledgers configured — Advanced mapping overrides standard mapping, but falls back to it when no rule matches

Enable Advanced Ledger Mapping

  1. Go to Stores → Configuration → Accounting → SnelStart → Advanced Settings
  2. Set Enable Advanced Ledger Mapping to Yes
  3. The mapping table appears below

Mapping Table

Each row in the mapping table is a rule. When an invoice or credit memo is synced, the module checks each rule against every line item.

Column Description Required
Type Line item type: Product, Shipping, Adjustment Fee, or Payment/Extra Fee No (empty = all types)
Tax Rule Magento tax rule code (from Tax Rate Mapping) No (empty = all tax rules)
Country Customer billing country No (empty = all countries)
Ledger SnelStart ledger account to use Yes

Wildcard Behavior

Leave a column empty to match all values for that column. This acts as a wildcard:

  • Empty Type + Empty Tax Rule + DE + Ledger 8010 → All line types with any tax rule for Germany use ledger 8010
  • Product + Empty Tax Rule + Empty Country + Ledger 8020 → All products regardless of tax rule or country use ledger 8020
  • Empty Type + BTW-21 + Empty Country + Ledger 8030 → Everything with tax rule BTW-21 uses ledger 8030

Type Values

Type Applies to
Product Regular product line items
Shipping Shipping costs
Adjustment Fee Order adjustments and modifications
Payment/Extra Fee Payment surcharges and additional fees

How Matching Works

The module processes rules top to bottom. The first matching rule wins.

For each invoice/credit memo line item:

  1. Check if Advanced Ledger Mapping is enabled
  2. Loop through mapping rules in order
  3. A rule matches when all non-empty columns match the line item
  4. First match → use that ledger, stop checking
  5. No match → fall back to standard tax-rate ledger mapping

Important: Rule order matters. Place more specific rules above general ones.

Examples

Example 1: Separate shipping ledger for German orders

Type Tax Rule Country Ledger
Shipping DE 8085

All other lines fall back to standard mapping.

Example 2: Different product ledgers by country

Type Tax Rule Country Ledger
Product DE 8010
Product BE 8011
Product FR 8012

Products for DE/BE/FR go to specific ledgers; all other products use the standard product ledger.

Example 3: Payment fees on a separate ledger

Type Tax Rule Country Ledger
Payment/Extra Fee 4900

All payment surcharges (iDEAL, Klarna, credit card fees, etc.) are booked to ledger 4900 instead of the default product ledger. Products, shipping, and adjustments still use standard mapping.

Example 4: Catch-all with specific overrides

Type Tax Rule Country Ledger
Product BTW-21 DE 8090
Product 8000
Shipping 8100
  • 21% products for Germany → 8090
  • All other products → 8000
  • All shipping → 8100
  • Adjustment/Extra fees → standard mapping (no rule defined)

Applying Changes to Existing Invoices

After updating your advanced ledger mapping rules, existing invoices in the queue are not automatically recalculated. You need to trigger a recalculation so the module re-evaluates which ledger each line item belongs to.

Steps

  1. Update your mapping rules in Stores → Configuration → Accounting → SnelStart → Advanced Settings
  2. Save the configuration
  3. Go to the order in Sales → Orders → select the order
  4. Open the Accounting tab
  5. Click the Recalculate button — this re-evaluates all invoice lines against the updated mapping rules
  6. Sync the invoice to push the corrected data to SnelStart

When to use Recalculate

  • You changed advanced ledger mapping rules and need existing invoices to pick up the new configuration
  • An invoice was synced with the wrong ledger and you corrected the mapping
  • You enabled or disabled advanced ledger mapping after invoices were already queued

Important notes

  • The Recalculate button is only available when the invoice has not yet been synced (status is not SYNCED)
  • If the invoice was already synced to SnelStart, you need to remove it from SnelStart first (via the grid action), then recalculate and re-sync
  • For bulk corrections, use the mass actions in the Accounting → Invoices grid

Relationship to Standard Ledger Configuration

When determining the ledger account for an invoice line item, the module checks the following sources in order of priority:

Priority Source Used when
1 (highest) Advanced Ledger Mapping Enabled and a rule matches the line item
2 Product attribute ledger A ledger account is configured on the product
3 (lowest) Standard configuration Product Hoog, Laag, etc. from the SnelStart settings

The first source that returns a result is used. If advanced mapping finds no match, the system automatically falls back to the next step.

Troubleshooting

Rule not matching as expected

  • Verify the tax rule code matches exactly (check Tax Rate Mapping grid)
  • Confirm the correct country is selected in the dropdown
  • Remember: rules are evaluated top-to-bottom, first match wins
  • Check that the rule's Type matches the line item type

Ledger not available in dropdown

  • Sync ledgers first: Ledger Accounts section → "Sync Ledger & Costs from SnelStart"
  • Ensure you are on the correct store view scope

Changes not reflected in SnelStart

  • Advanced mapping only applies to new syncs
  • Re-queue existing invoices/credit memos to apply updated rules
  • Check debug logs at var/log/snelstart/debug.log

Need More Help?

Documentation:

Support:

Article Updated:
star star star star star
star star star star star
Alexandru-Manuel Carabus
Magmodules sets the bar for Magento module quality and support—we check their catalog first for client feature requests, and they’re our first choice for licenses.
Google 11 Nov 2025
star star star star star
star star star star star
Matt Austin
Possibly the fastest support response times of any Magento Extension vendor. Great extensions too!
Google 09 Sep 2025
star star star star star
star star star star star
Jan Privé
Dankzij de heldere uitleg en snelle reactie van Magmodules kon mijn vraag, en dus mijn Magento-probleem, binnen enkele uren worden beantwoord. Doeltreffend, zonder moeilijke termen, gewoon zo als het zou moeten zijn.... Bedankt!
Google 05 Sep 2025
star star star star star
star star star star star
Denis Metzler
To evaluate a provider, it is not enough to consider only the product offered, but also its after-sales service, such as support and troubleshooting. Magmodules has been extremely satisfactory at all levels on multiple occasions and sets the bar at the top when comparing the competition.
Google 02 Sep 2025
star star star star star
star star star star star
Bleijenberg winkelinrichting en materialen
Goed bereikbaar, reageren snel en denken oplossingsgericht. Een aanrader.
Google 30 Jul 2025
star star star star star
star star star star star
Patrick Verduijn
Magmodules biedt plugins aan die van hoge kwaliteit zijn tegen een goede prijs, waar dit bedrijf in uitblinkt is de bereidheid om de zeldzame feedback & problemen met de plugins te willen onderzoeken, mee te willen denken in het debuggen van problemen en goede oplossingen toe te passen. In mijn decennium ervaring met Magento & 3th parties is Magmodules absoluut een uniqum binnen de markt.
Google 25 Jul 2025
star star star star star
star star star star star
Erik de Groot
Magemodules heeft hele sterke Magento extensies en een proactieve support. Al jaren heel erg tevreden over jullie service en producten!
Google 18 Jul 2025
star star star star star
star star star star star
René Zeuner
We are using the Mollie Magento extension from Magmodules. It works excellently without flaws. Very fast, competent and friendly support. Thanks!
Google 30 Jun 2025
star star star star star
star star star star star
R. U.
Erg goed team, reageren snel en duidelijk en hebben met toegang tot onze database erg goed geholpen (eigenlijk een gratis customization).
Google 18 Jun 2025
star star star star star
star star star star star
Hugo de Groot
Uitstekende support! Wij gebruiken o.a. de Rich Snippets Suite extensie voor onze Magento 2 webshop (Hyvä) en hadden een specifieke vraag over structured data op PLP-pagina’s. Binnen no-time kregen we een inhoudelijk en duidelijk antwoord. Zeer prettig contact en goed onderbouwde uitleg. Absoluut een betrouwbare partner voor Magento-extensies!
Google 13 Jun 2025