pangea-server 3.3.127 → 3.3.128

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,7 +141,8 @@ 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 caeDueDate = `${res.CAEFchVto.slice(6, 8)}/${res.CAEFchVto.slice(4, 6)}/${res.CAEFchVto.slice(0, 4)}`;
144
+ const caeDateStr = String(res.CAEFchVto);
145
+ const caeDueDate = `${caeDateStr.slice(6, 8)}/${caeDateStr.slice(4, 6)}/${caeDateStr.slice(0, 4)}`;
145
146
  const timestamp = localDate
146
147
  .toISOString()
147
148
  .replace(/[-:T.]/g, '')
@@ -184,9 +185,9 @@ class Arca {
184
185
  vat_amount: 0,
185
186
  tributes_amount: 0,
186
187
  total_amount: amount,
187
- billing_from: isConceptProducts ? null : service.from.split('-').reverse().join('/'),
188
- billing_to: isConceptProducts ? null : service.to.split('-').reverse().join('/'),
189
- payment_due_date: isConceptProducts ? null : service.paymentDueDate.split('-').reverse().join('/'),
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('/'),
190
191
  net_amount_taxed: amount,
191
192
  net_amount_untaxed: 0,
192
193
  exempt_amount: 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.127",
4
+ "version": "3.3.128",
5
5
  "files": [
6
6
  "dist"
7
7
  ],