CLI Commando's voor SnelStart Integratie
Command line tools voor de SnelStart 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 SnelStart |
accounting:check:snelstart |
Inspecteer transacties in SnelStart |
accounting:selftest
Voer diagnostische tests uit om module configuratie en connectiviteit te verifiëren.
bin/magento accounting:selftest
Wat het controleert:
- Module ingeschakeld status
- SnelStart verbinding (OAuth)
- 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 SnelStart 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 SnelStart. 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/snelstart/debug.logvoor gedetailleerde output
accounting:check:snelstart
Inspecteer en debug transacties (boekingen) direct in SnelStart. Handig voor het verifiëren van correcte grootboekrekening toewijzingen en het oplossen van sync problemen.
Recente Transacties Ophalen
bin/magento accounting:check:snelstart --top=5
Retourneert de 5 meest recente transacties met hun UUID's.
Paginering
bin/magento accounting:check:snelstart --top=5 --skip=5
Slaat eerste 5 over, retourneert volgende 5 transacties.
Specifieke Transactie Inspecteren
bin/magento accounting:check:snelstart --id=eb44fcaa-e160-4be7-aa92-7d6e298b5b30
Retourneert volledige details inclusief grootboekrekening, bedragen en BTW classificatie.
Opties Referentie
| Optie | Beschrijving | Voorbeeld |
|---|---|---|
--top |
Aantal recente transacties | --top=10 |
--skip |
Sla N transacties over (paginering) | --skip=5 |
--id |
Specifieke transactie UUID | --id=eb44fcaa-... |
Wanneer te gebruiken:
- Verifieer dat een transactie correct is gesynchroniseerd
- Controleer welke grootboekrekening is toegewezen
- Debug BTW classificatie problemen
- Valideer grootboekrekening mapping configuratie
Meer Hulp Nodig?
Documentatie:
- Alle Help Artikelen - Compleet documentatie overzicht
Support:
- Contact Opnemen - Hulp van ons team