Aenzbi Business Management with POS and EBMS integration
Install the package using npm:
npm install aenzbi
const { POS } = require('aenzbi');
const pos = new POS();
pos.addSale({ item: 'Product1', price: 100 });
console.log(pos.getSales());
const { POS } = require('aenzbi');
const pos = new POS();
const sale = { id: 1, amount: 100 };
const invoice = pos.generateInvoice(sale);
pos.postInvoiceToEBMS(invoice, '', 'https://ebms.obr.gov.bi:9443/ebms_api')
.then(response => console.log(response))
.catch(error => console.error(error));
const { AnandPOSIntegration } = require('aenzbi/integrations/anand_pos');
const anandPOS = new AnandPOSIntegration();
anandPOS.integrate();
const { AnandPMSIntegration } = require('aenzbi/integrations/anand_pms');
const anandPMS = new AnandPMSIntegration();
anandPMS.integrate();