pangea-server 3.3.145 → 3.3.146
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.
|
@@ -160,7 +160,7 @@ class Arca {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
async createInvoiceCPdf(options) {
|
|
163
|
-
const { pointOfSale, receiver, concept,
|
|
163
|
+
const { pointOfSale, receiver, concept, amount, service, voucherNumber, issueDate, cae, caeExpirationDate, items } = options;
|
|
164
164
|
const isConceptProducts = concept === '1_products';
|
|
165
165
|
const { receiverDocumentNumber, receiverVatCondition } = getReceiverFields(receiver);
|
|
166
166
|
const receiverName = receiver.name || 'CONSUMIDOR FINAL';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type StringLength } from '../resources';
|
|
2
2
|
export declare function sanitizeHtml(html: string): string;
|
|
3
3
|
export declare function removeHtmlTags(html: string): string;
|
|
4
|
-
export declare function getHtmlSanitized(html: string | null, maxLength
|
|
4
|
+
export declare function getHtmlSanitized(html: string | null, maxLength: StringLength | number): string | null;
|
|
@@ -20,7 +20,7 @@ function sanitizeHtml(html) {
|
|
|
20
20
|
function removeHtmlTags(html) {
|
|
21
21
|
return domPurify.sanitize(html, { ALLOWED_TAGS: [] });
|
|
22
22
|
}
|
|
23
|
-
function getHtmlSanitized(html, maxLength
|
|
23
|
+
function getHtmlSanitized(html, maxLength) {
|
|
24
24
|
const htmlLength = html ? removeHtmlTags(html).length : 0;
|
|
25
25
|
const finalMaxLength = typeof maxLength === 'number' ? maxLength : resources_1.STRING_LENGTHS[maxLength];
|
|
26
26
|
if (htmlLength > finalMaxLength)
|
|
@@ -45,12 +45,6 @@ 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
|
-
};
|
|
54
48
|
export type ArcaCreateInvoiceCOptions = {
|
|
55
49
|
pointOfSale: number;
|
|
56
50
|
receiver: {
|
|
@@ -75,6 +69,12 @@ export type ArcaCreateVoucherRes = {
|
|
|
75
69
|
cae: string;
|
|
76
70
|
caeExpirationDate: string;
|
|
77
71
|
};
|
|
72
|
+
export type ArcaInvoiceCItem = {
|
|
73
|
+
code: string;
|
|
74
|
+
description: string;
|
|
75
|
+
quantity: number;
|
|
76
|
+
price: number;
|
|
77
|
+
};
|
|
78
78
|
export type ArcaCreateInvoiceCPdfOptions = ArcaCreateInvoiceCOptions & ArcaCreateVoucherRes & {
|
|
79
|
-
items:
|
|
79
|
+
items: ArcaInvoiceCItem[];
|
|
80
80
|
};
|