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