CLI Commando's voor e-Boekhouden Integratie
Command line tools voor de e-Boekhouden integratie. Deze commando's zijn handig voor handmatig synchroniseren, probleemoplossing en automatiseringsscripts. Alle commando's worden geleverd door de accounting-base module.
Beschikbare Commando's
| Commando | Beschrijving |
|---|---|
accounting:selftest |
Voer diagnostische tests uit |
accounting:sync:orders |
Synchroniseer facturen naar e-Boekhouden |
accounting:selftest
Voer diagnostische tests uit om module configuratie en connectiviteit te verifiëren.
bin/magento accounting:selftest
Wat het controleert:
- Module ingeschakeld status
- e-Boekhouden API verbinding
- Grootboekrekening configuratie
- BTW tarief mapping
- Cron status
Wanneer te gebruiken:
- Na initiële setup om configuratie te verifiëren
- Wanneer synchronisatie onverwacht stopt
- Voor contact met support (voeg output toe aan ticket)
Voorbeeld output:
Module Enabled: success
- Module is enabled
Connection: success
- Connected to e-Boekhouden account: [Uw Account]
Ledger Configuration: success
- Product ledgers configured
Tax Rate Mapping: warning
- 2 tax rules not mapped
accounting:sync:orders
Handmatig facturen synchroniseren naar e-Boekhouden. Handig voor het opnieuw synchroniseren van mislukte facturen of verwerken van historische data.
Synchroniseer Enkele Order
bin/magento accounting:sync:orders --order-id=100000123
Synchroniseert alle facturen voor de opgegeven order ID (de increment_id uit het sales order grid).
Synchroniseer Datumbereik
bin/magento accounting:sync:orders --from-date=2024-01-01 --to-date=2024-01-31
Synchroniseert alle facturen aangemaakt tussen de opgegeven datums. Datums kunnen tijd bevatten:
bin/magento accounting:sync:orders --from-date="2024-01-01 00:00:00" --to-date="2024-01-31 23:59:59"
Synchroniseer Recente Orders
bin/magento accounting:sync:orders --offset=7
Synchroniseert alle facturen van de afgelopen 7 dagen. Handig om bij te werken na downtime.
Opties Referentie
| Optie | Beschrijving | Voorbeeld |
|---|---|---|
--order-id |
Magento order increment ID | --order-id=100000123 |
--from-date |
Startdatum (inclusief) | --from-date=2024-01-01 |
--to-date |
Einddatum (inclusief) | --to-date=2024-01-31 |
--offset |
Dagen terug vanaf vandaag | --offset=7 |
Opmerkingen:
--from-datevereist--to-date(of default naar vandaag)- Opties zijn onderling exclusief: gebruik
--order-id, datumbereik, óf--offset - Verwerkt alleen facturen die in de accounting wachtrij staan
Veelvoorkomende Use Cases
Synchroniseer Mislukte Factuur Opnieuw
Wanneer een factuur niet kon synchroniseren (zichtbaar in Synchronisation Logs):
bin/magento accounting:sync:orders --order-id=100000456
Bijwerken Na Downtime
Als cron een paar dagen niet draaide:
bin/magento accounting:sync:orders --offset=5
Initiële Historische Sync
Om facturen van een specifieke periode te synchroniseren:
bin/magento accounting:sync:orders --from-date=2024-01-01 --to-date=2024-03-31
Debug Specifieke Order
Gecombineerd met debug mode ingeschakeld in configuratie:
- Schakel debug mode in via admin
- Voer uit:
bin/magento accounting:sync:orders --order-id=100000789 - Controleer
var/log/eboekhouden/debug.logvoor gedetailleerde output
Meer Hulp Nodig?
Documentatie:
- Alle Help Artikelen - Compleet documentatie overzicht
Support:
- Contact Opnemen - Hulp van ons team