test-entity-library-asm 3.3.7 → 3.4.0
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.
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { Company, Local, User } from "..";
|
|
2
2
|
export declare class ReceiptConfig {
|
|
3
3
|
id: number;
|
|
4
|
-
company: Company;
|
|
5
|
-
local: Local;
|
|
4
|
+
company: Company | null;
|
|
5
|
+
local: Local | null;
|
|
6
6
|
is_logo: number;
|
|
7
|
-
logo_type: number;
|
|
7
|
+
logo_type: number | null;
|
|
8
8
|
is_address: number;
|
|
9
9
|
is_phone: number;
|
|
10
10
|
format_date: string;
|
|
11
|
+
ticket_width_mm: string;
|
|
12
|
+
is_show_user_box: number;
|
|
13
|
+
is_show_unit_price: number;
|
|
14
|
+
is_divide_name_and_quantity: number;
|
|
11
15
|
custom_message_below: any | null;
|
|
12
16
|
custom_message_top: any | null;
|
|
13
17
|
details: any | null;
|
|
@@ -28,17 +28,19 @@ var ReceiptConfig = /** @class */ (function () {
|
|
|
28
28
|
(0, typeorm_1.ManyToOne)(function () { return __1.Company; }, function (company) { return company.receipts_company_config; }, {
|
|
29
29
|
onDelete: "CASCADE",
|
|
30
30
|
onUpdate: "NO ACTION",
|
|
31
|
+
nullable: true,
|
|
31
32
|
}),
|
|
32
33
|
(0, typeorm_1.JoinColumn)({ name: "company" }),
|
|
33
|
-
__metadata("design:type",
|
|
34
|
+
__metadata("design:type", Object)
|
|
34
35
|
], ReceiptConfig.prototype, "company", void 0);
|
|
35
36
|
__decorate([
|
|
36
37
|
(0, typeorm_1.ManyToOne)(function () { return __1.Local; }, function (local) { return local.receipts_local_config; }, {
|
|
37
38
|
onDelete: "CASCADE",
|
|
38
39
|
onUpdate: "NO ACTION",
|
|
40
|
+
nullable: true,
|
|
39
41
|
}),
|
|
40
42
|
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
41
|
-
__metadata("design:type",
|
|
43
|
+
__metadata("design:type", Object)
|
|
42
44
|
], ReceiptConfig.prototype, "local", void 0);
|
|
43
45
|
__decorate([
|
|
44
46
|
(0, typeorm_1.Column)({
|
|
@@ -53,10 +55,11 @@ var ReceiptConfig = /** @class */ (function () {
|
|
|
53
55
|
(0, typeorm_1.Column)({
|
|
54
56
|
default: 1,
|
|
55
57
|
type: "int",
|
|
58
|
+
nullable: true,
|
|
56
59
|
width: 1,
|
|
57
60
|
comment: "Columna para saber si el logo va a ir redondeado o no:\r\n1. Redondeado.\r\n2. Cuadrado.",
|
|
58
61
|
}),
|
|
59
|
-
__metadata("design:type",
|
|
62
|
+
__metadata("design:type", Object)
|
|
60
63
|
], ReceiptConfig.prototype, "logo_type", void 0);
|
|
61
64
|
__decorate([
|
|
62
65
|
(0, typeorm_1.Column)({
|
|
@@ -85,6 +88,42 @@ var ReceiptConfig = /** @class */ (function () {
|
|
|
85
88
|
}),
|
|
86
89
|
__metadata("design:type", String)
|
|
87
90
|
], ReceiptConfig.prototype, "format_date", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({
|
|
93
|
+
length: 4,
|
|
94
|
+
type: "varchar",
|
|
95
|
+
default: "80mm",
|
|
96
|
+
comment: "Tamaño que va a tener la impresión de facturas:\r\n1: 80mm.\r\n2: 58mm.",
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], ReceiptConfig.prototype, "ticket_width_mm", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({
|
|
102
|
+
default: 1,
|
|
103
|
+
type: "int",
|
|
104
|
+
width: 1,
|
|
105
|
+
comment: "Mostrar información del usuario que recibe el pago y entrega las cuentas:\r\n1: Sí.\r\n0: No.",
|
|
106
|
+
}),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], ReceiptConfig.prototype, "is_show_user_box", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({
|
|
111
|
+
default: 1,
|
|
112
|
+
type: "int",
|
|
113
|
+
width: 1,
|
|
114
|
+
comment: "Mostrar el precio unitario de los productos:\r\n1: Sí.\r\n0: No.",
|
|
115
|
+
}),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], ReceiptConfig.prototype, "is_show_unit_price", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({
|
|
120
|
+
default: 1,
|
|
121
|
+
type: "int",
|
|
122
|
+
width: 1,
|
|
123
|
+
comment: "Dividir en columnas separadas el nombre y la cantidad del producto:\r\n1: Sí.\r\n0: No.",
|
|
124
|
+
}),
|
|
125
|
+
__metadata("design:type", Number)
|
|
126
|
+
], ReceiptConfig.prototype, "is_divide_name_and_quantity", void 0);
|
|
88
127
|
__decorate([
|
|
89
128
|
(0, typeorm_1.Column)({
|
|
90
129
|
type: "text",
|
package/package.json
CHANGED
|
@@ -24,16 +24,18 @@ export class ReceiptConfig {
|
|
|
24
24
|
@ManyToOne(() => Company, (company) => company.receipts_company_config, {
|
|
25
25
|
onDelete: "CASCADE",
|
|
26
26
|
onUpdate: "NO ACTION",
|
|
27
|
+
nullable: true,
|
|
27
28
|
})
|
|
28
29
|
@JoinColumn({ name: "company" })
|
|
29
|
-
company: Company;
|
|
30
|
+
company: Company | null;
|
|
30
31
|
|
|
31
32
|
@ManyToOne(() => Local, (local) => local.receipts_local_config, {
|
|
32
33
|
onDelete: "CASCADE",
|
|
33
34
|
onUpdate: "NO ACTION",
|
|
35
|
+
nullable: true,
|
|
34
36
|
})
|
|
35
37
|
@JoinColumn({ name: "local" })
|
|
36
|
-
local: Local;
|
|
38
|
+
local: Local | null;
|
|
37
39
|
|
|
38
40
|
@Column({
|
|
39
41
|
default: 1,
|
|
@@ -47,11 +49,12 @@ export class ReceiptConfig {
|
|
|
47
49
|
@Column({
|
|
48
50
|
default: 1,
|
|
49
51
|
type: "int",
|
|
52
|
+
nullable: true,
|
|
50
53
|
width: 1,
|
|
51
54
|
comment:
|
|
52
55
|
"Columna para saber si el logo va a ir redondeado o no:\r\n1. Redondeado.\r\n2. Cuadrado.",
|
|
53
56
|
})
|
|
54
|
-
logo_type: number;
|
|
57
|
+
logo_type: number | null;
|
|
55
58
|
|
|
56
59
|
@Column({
|
|
57
60
|
default: 1,
|
|
@@ -80,6 +83,41 @@ export class ReceiptConfig {
|
|
|
80
83
|
})
|
|
81
84
|
format_date: string;
|
|
82
85
|
|
|
86
|
+
@Column({
|
|
87
|
+
length: 4,
|
|
88
|
+
type: "varchar",
|
|
89
|
+
default: "80mm",
|
|
90
|
+
comment:
|
|
91
|
+
"Tamaño que va a tener la impresión de facturas:\r\n1: 80mm.\r\n2: 58mm.",
|
|
92
|
+
})
|
|
93
|
+
ticket_width_mm: string;
|
|
94
|
+
|
|
95
|
+
@Column({
|
|
96
|
+
default: 1,
|
|
97
|
+
type: "int",
|
|
98
|
+
width: 1,
|
|
99
|
+
comment:
|
|
100
|
+
"Mostrar información del usuario que recibe el pago y entrega las cuentas:\r\n1: Sí.\r\n0: No.",
|
|
101
|
+
})
|
|
102
|
+
is_show_user_box: number;
|
|
103
|
+
|
|
104
|
+
@Column({
|
|
105
|
+
default: 1,
|
|
106
|
+
type: "int",
|
|
107
|
+
width: 1,
|
|
108
|
+
comment: "Mostrar el precio unitario de los productos:\r\n1: Sí.\r\n0: No.",
|
|
109
|
+
})
|
|
110
|
+
is_show_unit_price: number;
|
|
111
|
+
|
|
112
|
+
@Column({
|
|
113
|
+
default: 1,
|
|
114
|
+
type: "int",
|
|
115
|
+
width: 1,
|
|
116
|
+
comment:
|
|
117
|
+
"Dividir en columnas separadas el nombre y la cantidad del producto:\r\n1: Sí.\r\n0: No.",
|
|
118
|
+
})
|
|
119
|
+
is_divide_name_and_quantity: number;
|
|
120
|
+
|
|
83
121
|
@Column({
|
|
84
122
|
type: "text",
|
|
85
123
|
nullable: true,
|