pangea-server 3.3.129 → 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).replace(/-/g, '');
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, '')
@@ -151,7 +150,7 @@ class Arca {
151
150
  const fileName = `${timestamp}_${clientName}.pdf`;
152
151
  const pdfData = {
153
152
  file_name: fileName,
154
- send_to: pdf?.sendTo || undefined,
153
+ send_to: pdf?.sendTo,
155
154
  template: {
156
155
  name: 'invoice-c',
157
156
  params: {
@@ -159,8 +158,8 @@ class Arca {
159
158
  sales_point: pointOfSale,
160
159
  issue_date: issueDate,
161
160
  cae_due_date: caeDueDate,
162
- issuer_cuit: Number(this.__cuit),
163
- cae: Number(res.CAE),
161
+ issuer_cuit: this.__cuit,
162
+ cae: res.CAE,
164
163
  issuer_business_name: this.__issuer.businessName,
165
164
  issuer_address: this.__issuer.address,
166
165
  issuer_iva_condition: this.__issuer.ivaCondition,
@@ -169,7 +168,7 @@ class Arca {
169
168
  receiver_name: receiver.name || 'CONSUMIDOR FINAL',
170
169
  receiver_address: receiver.address || '-',
171
170
  receiver_document_type: documentTypeIds[receiver.documentType],
172
- receiver_document_number: receiver.documentType === '99_final_consumer' ? 0 : Number(receiver.documentNumber) || 0,
171
+ receiver_document_number: receiver.documentType === '99_final_consumer' ? 0 : receiver.documentNumber || 0,
173
172
  receiver_iva_condition: vatConditionReceiverDescriptions[receiver.vatCondition || '5_final_consumer'],
174
173
  sale_condition: 'Contado',
175
174
  currency_id: 'ARS',
@@ -191,7 +190,7 @@ class Arca {
191
190
  net_amount_taxed: amount,
192
191
  net_amount_untaxed: 0,
193
192
  exempt_amount: 0,
194
- invoice_footer_note: pdf?.footerNote || undefined,
193
+ invoice_footer_note: pdf?.footerNote,
195
194
  },
196
195
  },
197
196
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.129",
4
+ "version": "3.3.130",
5
5
  "files": [
6
6
  "dist"
7
7
  ],