pangea-server 3.3.17 → 3.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,8 +120,14 @@ class Arca {
120
120
  FchServHasta: isConceptProducts ? null : Number(service.to.replace(/-/g, '')),
121
121
  FchVtoPago: isConceptProducts ? null : Number(service.paymentDueDate.replace(/-/g, '')),
122
122
  };
123
- const res = await this.__afip.ElectronicBilling.createVoucher(params);
124
- return { voucherNumber, cae: res.CAE, caeExpirationDate: res.CAEFchVto };
123
+ try {
124
+ const res = await this.__afip.ElectronicBilling.createVoucher(params);
125
+ return { voucherNumber, cae: res.CAE, caeExpirationDate: res.CAEFchVto };
126
+ }
127
+ catch (err) {
128
+ (0, helpers_1.printDanger)('arca', err);
129
+ helpers_1.AppError.Throw({ statusCodeName: 'INTERNAL_SERVER_ERROR', errorCode: 'VOUCHER_CREATION_FAILED' });
130
+ }
125
131
  }
126
132
  }
127
133
  exports.Arca = Arca;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.17",
4
+ "version": "3.3.19",
5
5
  "files": [
6
6
  "dist"
7
7
  ],