# Install this plugin
npm install @pinelab/vendure-plugin-e-boekhouden
Vendure E-boekhouden plugin
Plugin for syncing orders to the Dutch accounting platform E-boekhouden.nl.
Getting started
Send orders to e-Boekhouden as GeldOntvangen mutation and configured account and contraAccount numbers. Creates a
mutation line for each taxrate of the order's tax summary.
- Add this to your plugin in
vendure-config.ts:
import { EboekhoudenPlugin } from '@pinelab/vendure-plugin-e-boekhouden'
plugins: [
EboekhoudenPlugin.init({
getTaxCode: (ctx, order, taxRate) => {
if (order.customFields.VatID && taxRate == 0) {
return 'VERL_VERK'; // Reverse charge for EU sales
} else if (taxRate == 21) {
return 'HOOG_VERK_21';
} else if (taxRate == 9) {
return 'LAAG_VERK_9';
} else {
Logger.error(`Unknown tax rate ${taxRate} for order ${order.code}`);
return 'GEEN';
}
},
}),
...
]
- Run a database migration to add the config entity to your database.
- Add this plugin to the Vendure admin ui plugin to add the configuration screen to Vendure.
plugins: [
AdminUiPlugin.init({
port: 3002,
route: 'admin',
app: compileUiExtensions({
outputPath: path.join(__dirname, '__admin-ui'),
extensions: [EboekhoudenPlugin.ui],
}),
}),
];
You can read more about Admin UI compilation in the Vendure docs
- Start the server and set your credentials via
Settings > E-boekhouden
Development - generate new client
- Go to https://soap.e-boekhouden.nl/soap.asmx?wsdl and save the wsdl file in
src/client/e-boekhouden-wsdl.xml. - Run
yarn generate-soap-client. src/clientwill now have an updated and typed soap client for e-Boekhouden.
Need help? Get In Touch