pangea-server 3.3.133 → 3.3.135
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.
|
@@ -155,7 +155,7 @@ class Arca {
|
|
|
155
155
|
const fileName = `${timestamp}_${clientName}.pdf`;
|
|
156
156
|
const pdfData = {
|
|
157
157
|
file_name: fileName,
|
|
158
|
-
send_to: receiver.email,
|
|
158
|
+
send_to: receiver.email || undefined,
|
|
159
159
|
template: {
|
|
160
160
|
name: 'invoice-c',
|
|
161
161
|
params: {
|
|
@@ -167,7 +167,7 @@ class Arca {
|
|
|
167
167
|
cae: res.CAE,
|
|
168
168
|
issuer_business_name: this.__issuer.businessName,
|
|
169
169
|
issuer_address: this.__issuer.address,
|
|
170
|
-
issuer_iva_condition: this.__issuer.
|
|
170
|
+
issuer_iva_condition: this.__issuer.vatCondition,
|
|
171
171
|
issuer_gross_income: this.__issuer.grossIncome,
|
|
172
172
|
issuer_activity_start_date: this.__issuer.activityStartDate,
|
|
173
173
|
receiver_name: receiverName,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ArcaIssuer = {
|
|
2
2
|
businessName: string;
|
|
3
3
|
address: string;
|
|
4
|
-
|
|
4
|
+
vatCondition: string;
|
|
5
5
|
grossIncome: string;
|
|
6
6
|
activityStartDate: string;
|
|
7
7
|
};
|
|
@@ -17,7 +17,7 @@ export type ArcaVoucherTypeC = '11_invoice_c' | '12_debit_note_c' | '13_credit_n
|
|
|
17
17
|
export type ArcaVoucherType = ArcaVoucherTypeA | ArcaVoucherTypeB | ArcaVoucherTypeC;
|
|
18
18
|
export type ArcaConcept = '1_products' | '2_services' | '3_products_and_services';
|
|
19
19
|
export type ArcaDocumentType = '80_cuit' | '86_cuil' | '96_dni' | '99_final_consumer';
|
|
20
|
-
export type
|
|
20
|
+
export type ArcaVatCondition = '1_vat_registered' | '4_vat_exempt' | '5_final_consumer' | '6_monotaxpayer' | '7_unclassified' | '8_foreign_supplier' | '9_foreign_client' | '10_vat_exempt_law_19640' | '13_social_monotaxpayer' | '15_vat_not_applicable' | '16_promoted_independent_monotaxpayer';
|
|
21
21
|
export type ArcaVoucherInfo = {
|
|
22
22
|
pointOfSale: number;
|
|
23
23
|
voucherTypeId: number;
|
|
@@ -45,23 +45,24 @@ export type ArcaVoucherInfo = {
|
|
|
45
45
|
authorizationCode: string;
|
|
46
46
|
authorizationExpirationDate: string;
|
|
47
47
|
};
|
|
48
|
+
export type ArcaCreateInvoiceCOptionsItem = {
|
|
49
|
+
code: string;
|
|
50
|
+
description: string;
|
|
51
|
+
quantity: number;
|
|
52
|
+
price: number;
|
|
53
|
+
};
|
|
48
54
|
export type ArcaCreateInvoiceCOptions = {
|
|
49
55
|
pointOfSale: number;
|
|
50
56
|
receiver: {
|
|
51
57
|
documentType: ArcaDocumentType;
|
|
52
58
|
documentNumber?: number;
|
|
53
|
-
vatCondition?:
|
|
54
|
-
name?: string;
|
|
55
|
-
address?: string;
|
|
56
|
-
email?: string;
|
|
59
|
+
vatCondition?: ArcaVatCondition | null;
|
|
60
|
+
name?: string | null;
|
|
61
|
+
address?: string | null;
|
|
62
|
+
email?: string | null;
|
|
57
63
|
};
|
|
58
64
|
concept: ArcaConcept;
|
|
59
|
-
items:
|
|
60
|
-
code: string;
|
|
61
|
-
description: string;
|
|
62
|
-
quantity: number;
|
|
63
|
-
price: number;
|
|
64
|
-
}[];
|
|
65
|
+
items: ArcaCreateInvoiceCOptionsItem[];
|
|
65
66
|
amount: number;
|
|
66
67
|
service?: {
|
|
67
68
|
from: string;
|