cry-durs
v0.3.9
Published
davčne blagajne
Downloads
3
Readme
DURS
Davčne blagajne, interna implementacija. Ni namenjeno javni uporabi.
let Durs = require('cry-durs');
let taxno = 10203907;
let durs = new Durs(taxno)
durs.SetCertFileLocation('./test_cert')
let certTaxNo = Durs.AddCertificate('./test/test-10203907.p12','cert file password');
let Invoice = durs.ExampleInvoice();
delete Invoice.ReferenceInvoice; // since this is not an storno invoice
let res = await durs.RegisterInvoice(Invoice);
// res.Durs.EOR will contain EOR, or res.Durs.error will contain error info