test-entity-library-asm 3.3.7 → 3.3.8
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,10 +1,10 @@
|
|
|
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;
|
|
@@ -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)({
|
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,
|