pangea-server 3.3.128 → 3.3.130

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.
@@ -141,8 +141,7 @@ class Arca {
141
141
  const month = String(localDate.getMonth() + 1).padStart(2, '0');
142
142
  const year = localDate.getFullYear();
143
143
  const issueDate = `${day}/${month}/${year}`;
144
- const caeDateStr = String(res.CAEFchVto);
145
- const caeDueDate = `${caeDateStr.slice(6, 8)}/${caeDateStr.slice(4, 6)}/${caeDateStr.slice(0, 4)}`;
144
+ const caeDueDate = `${res.CAEFchVto.slice(6, 8)}/${res.CAEFchVto.slice(4, 6)}/${res.CAEFchVto.slice(0, 4)}`;
146
145
  const timestamp = localDate
147
146
  .toISOString()
148
147
  .replace(/[-:T.]/g, '')
@@ -185,9 +184,9 @@ class Arca {
185
184
  vat_amount: 0,
186
185
  tributes_amount: 0,
187
186
  total_amount: amount,
188
- billing_from: isConceptProducts ? '' : service.from.split('-').reverse().join('/'),
189
- billing_to: isConceptProducts ? '' : service.to.split('-').reverse().join('/'),
190
- payment_due_date: isConceptProducts ? '' : service.paymentDueDate.split('-').reverse().join('/'),
187
+ billing_from: isConceptProducts ? undefined : service.from.split('-').reverse().join('/'),
188
+ billing_to: isConceptProducts ? undefined : service.to.split('-').reverse().join('/'),
189
+ payment_due_date: isConceptProducts ? undefined : service.paymentDueDate.split('-').reverse().join('/'),
191
190
  net_amount_taxed: amount,
192
191
  net_amount_untaxed: 0,
193
192
  exempt_amount: 0,
@@ -200,7 +199,7 @@ class Arca {
200
199
  }
201
200
  catch (pdfErr) {
202
201
  (0, helpers_1.printDanger)('arca', 'Error creating PDF (voucher was created)');
203
- console.log(JSON.stringify(pdfErr.data || pdfErr, null, 2));
202
+ console.log(JSON.stringify(pdfErr, null, 2));
204
203
  }
205
204
  (0, helpers_1.printSuccess)('arca', 'Voucher created successfully');
206
205
  console.log('params:');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.128",
4
+ "version": "3.3.130",
5
5
  "files": [
6
6
  "dist"
7
7
  ],