aenzbi
v1.0.1
Published
Aenzbi Business Management with POS and EBMS integration
Downloads
3
Readme
Aenzbi
Aenzbi Business Management with POS and EBMS integration
Installation
Install the package using npm:
npm install aenzbi
Usage
POS Example
const { POS } = require('aenzbi');
const pos = new POS();
pos.addSale({ item: 'Product1', price: 100 });
console.log(pos.getSales());
EBMS Example
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));
Anand System POS Integration
const { AnandPOSIntegration } = require('aenzbi/integrations/anand_pos');
const anandPOS = new AnandPOSIntegration();
anandPOS.integrate();
Anand System PMS Integration
const { AnandPMSIntegration } = require('aenzbi/integrations/anand_pms');
const anandPMS = new AnandPMSIntegration();
anandPMS.integrate();