pangea-server 3.3.131 → 3.3.132
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.
|
@@ -100,7 +100,7 @@ class Arca {
|
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
async createInvoiceC(options) {
|
|
103
|
-
const { pointOfSale, receiver, concept, items, amount, service
|
|
103
|
+
const { pointOfSale, receiver, concept, items, amount, service } = options;
|
|
104
104
|
const voucherType = '11_invoice_c';
|
|
105
105
|
const isConceptProducts = concept === '1_products';
|
|
106
106
|
if (!isConceptProducts && !service)
|
|
@@ -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:
|
|
154
|
+
send_to: receiver.email,
|
|
155
155
|
template: {
|
|
156
156
|
name: 'invoice-c',
|
|
157
157
|
params: {
|
|
@@ -191,7 +191,6 @@ 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,
|
|
195
194
|
},
|
|
196
195
|
},
|
|
197
196
|
};
|
|
@@ -53,6 +53,7 @@ export type ArcaCreateInvoiceCOptions = {
|
|
|
53
53
|
vatCondition?: ArcaVatConditionReceiver;
|
|
54
54
|
name?: string;
|
|
55
55
|
address?: string;
|
|
56
|
+
email?: string;
|
|
56
57
|
};
|
|
57
58
|
concept: ArcaConcept;
|
|
58
59
|
items: {
|
|
@@ -67,10 +68,6 @@ export type ArcaCreateInvoiceCOptions = {
|
|
|
67
68
|
to: string;
|
|
68
69
|
paymentDueDate: string;
|
|
69
70
|
};
|
|
70
|
-
pdf?: {
|
|
71
|
-
sendTo?: string;
|
|
72
|
-
footerNote?: string;
|
|
73
|
-
};
|
|
74
71
|
};
|
|
75
72
|
export type ArcaCreateVoucherRes = {
|
|
76
73
|
voucherNumber: number;
|