Skip to content

Commit

Permalink
Fix missing declarations in ElectronicBilling.createNextVoucher mehotd
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanalemunioz committed Sep 13, 2019
1 parent 14ab7c5 commit a60669e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Class/ElectronicBilling.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ module.exports = class ElectronicBilling extends AfipWebService {
async createNextVoucher(data) {
const lastVoucher = await this.getLastVoucher(data['PtoVta'], data['CbteTipo']);

voucherNumber = lastVoucher + 1;
const voucherNumber = lastVoucher + 1;

data['CbteDesde'] = voucherNumber;
data['CbteHasta'] = voucherNumber;

res = await this.createVoucher(data);
let res = await this.createVoucher(data);
res['voucherNumber'] = voucherNumber;

return res;
Expand Down

0 comments on commit a60669e

Please sign in to comment.