@intelact/driveup 2.4.6 → 2.4.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.
- package/lib/invoice/invoice.dto.d.ts +1 -1
- package/lib/invoice/invoice.dto.js +1 -1
- package/lib/invoice/invoice.dto.js.map +1 -1
- package/lib/invoice/invoice.model.d.ts +24 -18
- package/lib/invoice/invoice.model.js +55 -29
- package/lib/invoice/invoice.model.js.map +1 -1
- package/lib/invoice/item.model.d.ts +1 -0
- package/lib/invoice/item.model.js +6 -0
- package/lib/invoice/item.model.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,6 @@ export declare class CompanyInvoiceFilterDto {
|
|
|
5
5
|
statuses: StatusType[];
|
|
6
6
|
dueDatePassed: boolean;
|
|
7
7
|
phrase: string;
|
|
8
|
-
sortLogic: 'student' | 'date' | 'dueDate' | '
|
|
8
|
+
sortLogic: 'student' | 'date' | 'dueDate' | 'invoiceNumber' | 'amount' | 'status';
|
|
9
9
|
sortOrder: 'asc' | 'desc';
|
|
10
10
|
}
|
|
@@ -49,7 +49,7 @@ __decorate([
|
|
|
49
49
|
], CompanyInvoiceFilterDto.prototype, "phrase", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
-
(0, class_validator_1.IsIn)(['student', 'date', 'dueDate', '
|
|
52
|
+
(0, class_validator_1.IsIn)(['student', 'date', 'dueDate', 'invoiceNumber', 'amount', 'status']),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], CompanyInvoiceFilterDto.prototype, "sortLogic", void 0);
|
|
55
55
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../src/invoice/invoice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6C;AAC7C,yDAAyC;AACzC,qDAAyF;AAEzF,kEAAgE;AAChE,sEAA4E;AAC5E,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8BACR,IAAI;wDAAC;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,iCAAW,EAAC,mBAAU,CAAC;IACvB,IAAA,wBAAM,EAAC,mBAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yDACZ;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAS,GAAE;;8DACW;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;;uDACQ;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;;0DACQ;AAIlF;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;;0DACI"}
|
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
import { Address, StatusType,
|
|
1
|
+
import { Address, BankAccount, Person, StatusType, Tax } from "@driveup/shared";
|
|
2
|
+
import { Company } from "../company/company.model";
|
|
2
3
|
import { Finance } from "../finance/finance.model";
|
|
4
|
+
import { Student } from "../student/student.model";
|
|
3
5
|
import { Training } from "../training/training.model";
|
|
4
6
|
import { InvoiceItem } from "./item.model";
|
|
5
7
|
export declare class Invoice {
|
|
6
8
|
id: number;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
vat: number;
|
|
10
|
-
note: string;
|
|
11
|
-
number: number;
|
|
9
|
+
status: StatusType;
|
|
10
|
+
invoiceNumber: string;
|
|
12
11
|
invoiceDate: Date;
|
|
13
12
|
dueDate: Date;
|
|
13
|
+
vat: number;
|
|
14
|
+
subtotalAmount: number;
|
|
15
|
+
totalVatAmount: number;
|
|
14
16
|
totalAmount: number;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
address: Address;
|
|
18
|
+
bankAccount: BankAccount;
|
|
19
|
+
tax: Tax;
|
|
20
|
+
note: string;
|
|
21
|
+
/******************** relations ********************/
|
|
22
|
+
company: Company[];
|
|
23
|
+
student: Student;
|
|
24
|
+
training: Training;
|
|
22
25
|
items: InvoiceItem[];
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
transaction: Finance;
|
|
27
|
+
/******************** audits ********************/
|
|
28
|
+
createdBy: Person;
|
|
25
29
|
createdOn: Date;
|
|
26
|
-
|
|
30
|
+
updatedBy: Person;
|
|
31
|
+
updatedOn: Date;
|
|
32
|
+
generatedBy: Person;
|
|
27
33
|
generatedOn: Date;
|
|
28
|
-
paidBy:
|
|
34
|
+
paidBy: Person;
|
|
29
35
|
paidOn: Date;
|
|
30
|
-
canceledBy:
|
|
36
|
+
canceledBy: Person;
|
|
31
37
|
canceledOn: Date;
|
|
32
38
|
constructor(props?: Partial<Invoice>);
|
|
33
39
|
}
|
|
@@ -12,7 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Invoice = void 0;
|
|
13
13
|
const shared_1 = require("@driveup/shared");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const company_model_1 = require("../company/company.model");
|
|
15
16
|
const finance_model_1 = require("../finance/finance.model");
|
|
17
|
+
const student_model_1 = require("../student/student.model");
|
|
16
18
|
const training_model_1 = require("../training/training.model");
|
|
17
19
|
const item_model_1 = require("./item.model");
|
|
18
20
|
class Invoice {
|
|
@@ -26,24 +28,14 @@ __decorate([
|
|
|
26
28
|
(0, class_transformer_1.Type)(() => Number),
|
|
27
29
|
__metadata("design:type", Number)
|
|
28
30
|
], Invoice.prototype, "id", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_transformer_1.Expose)(),
|
|
31
|
-
(0, class_transformer_1.Type)(() => training_model_1.Training),
|
|
32
|
-
__metadata("design:type", training_model_1.Training)
|
|
33
|
-
], Invoice.prototype, "trainign", void 0);
|
|
34
31
|
__decorate([
|
|
35
32
|
(0, class_transformer_1.Expose)(),
|
|
36
33
|
__metadata("design:type", String)
|
|
37
|
-
], Invoice.prototype, "
|
|
34
|
+
], Invoice.prototype, "status", void 0);
|
|
38
35
|
__decorate([
|
|
39
36
|
(0, class_transformer_1.Expose)(),
|
|
40
37
|
__metadata("design:type", String)
|
|
41
|
-
], Invoice.prototype, "
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_transformer_1.Expose)(),
|
|
44
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], Invoice.prototype, "number", void 0);
|
|
38
|
+
], Invoice.prototype, "invoiceNumber", void 0);
|
|
47
39
|
__decorate([
|
|
48
40
|
(0, class_transformer_1.Expose)(),
|
|
49
41
|
(0, class_transformer_1.Type)(() => Date),
|
|
@@ -54,6 +46,21 @@ __decorate([
|
|
|
54
46
|
(0, class_transformer_1.Type)(() => Date),
|
|
55
47
|
__metadata("design:type", Date)
|
|
56
48
|
], Invoice.prototype, "dueDate", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], Invoice.prototype, "vat", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], Invoice.prototype, "subtotalAmount", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], Invoice.prototype, "totalVatAmount", void 0);
|
|
57
64
|
__decorate([
|
|
58
65
|
(0, class_transformer_1.Expose)(),
|
|
59
66
|
(0, class_transformer_1.Type)(() => Number),
|
|
@@ -63,31 +70,36 @@ __decorate([
|
|
|
63
70
|
(0, class_transformer_1.Expose)(),
|
|
64
71
|
(0, class_transformer_1.Type)(() => shared_1.Address),
|
|
65
72
|
__metadata("design:type", shared_1.Address)
|
|
66
|
-
], Invoice.prototype, "
|
|
73
|
+
], Invoice.prototype, "address", void 0);
|
|
67
74
|
__decorate([
|
|
68
75
|
(0, class_transformer_1.Expose)(),
|
|
69
|
-
|
|
70
|
-
|
|
76
|
+
(0, class_transformer_1.Type)(() => shared_1.BankAccount),
|
|
77
|
+
__metadata("design:type", shared_1.BankAccount)
|
|
78
|
+
], Invoice.prototype, "bankAccount", void 0);
|
|
71
79
|
__decorate([
|
|
72
80
|
(0, class_transformer_1.Expose)(),
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
(0, class_transformer_1.Type)(() => shared_1.Tax),
|
|
82
|
+
__metadata("design:type", shared_1.Tax)
|
|
83
|
+
], Invoice.prototype, "tax", void 0);
|
|
75
84
|
__decorate([
|
|
76
85
|
(0, class_transformer_1.Expose)(),
|
|
77
86
|
__metadata("design:type", String)
|
|
78
|
-
], Invoice.prototype, "
|
|
87
|
+
], Invoice.prototype, "note", void 0);
|
|
79
88
|
__decorate([
|
|
80
89
|
(0, class_transformer_1.Expose)(),
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
(0, class_transformer_1.Type)(() => company_model_1.Company),
|
|
91
|
+
__metadata("design:type", Array)
|
|
92
|
+
], Invoice.prototype, "company", void 0);
|
|
83
93
|
__decorate([
|
|
84
94
|
(0, class_transformer_1.Expose)(),
|
|
85
|
-
|
|
86
|
-
|
|
95
|
+
(0, class_transformer_1.Type)(() => student_model_1.Student),
|
|
96
|
+
__metadata("design:type", student_model_1.Student)
|
|
97
|
+
], Invoice.prototype, "student", void 0);
|
|
87
98
|
__decorate([
|
|
88
99
|
(0, class_transformer_1.Expose)(),
|
|
89
|
-
|
|
90
|
-
|
|
100
|
+
(0, class_transformer_1.Type)(() => training_model_1.Training),
|
|
101
|
+
__metadata("design:type", training_model_1.Training)
|
|
102
|
+
], Invoice.prototype, "training", void 0);
|
|
91
103
|
__decorate([
|
|
92
104
|
(0, class_transformer_1.Expose)(),
|
|
93
105
|
(0, class_transformer_1.Type)(() => item_model_1.InvoiceItem),
|
|
@@ -97,10 +109,11 @@ __decorate([
|
|
|
97
109
|
(0, class_transformer_1.Expose)(),
|
|
98
110
|
(0, class_transformer_1.Type)(() => finance_model_1.Finance),
|
|
99
111
|
__metadata("design:type", finance_model_1.Finance)
|
|
100
|
-
], Invoice.prototype, "
|
|
112
|
+
], Invoice.prototype, "transaction", void 0);
|
|
101
113
|
__decorate([
|
|
102
114
|
(0, class_transformer_1.Expose)(),
|
|
103
|
-
|
|
115
|
+
(0, class_transformer_1.Type)(() => shared_1.Person),
|
|
116
|
+
__metadata("design:type", shared_1.Person)
|
|
104
117
|
], Invoice.prototype, "createdBy", void 0);
|
|
105
118
|
__decorate([
|
|
106
119
|
(0, class_transformer_1.Expose)(),
|
|
@@ -109,7 +122,18 @@ __decorate([
|
|
|
109
122
|
], Invoice.prototype, "createdOn", void 0);
|
|
110
123
|
__decorate([
|
|
111
124
|
(0, class_transformer_1.Expose)(),
|
|
112
|
-
|
|
125
|
+
(0, class_transformer_1.Type)(() => shared_1.Person),
|
|
126
|
+
__metadata("design:type", shared_1.Person)
|
|
127
|
+
], Invoice.prototype, "updatedBy", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, class_transformer_1.Expose)(),
|
|
130
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
131
|
+
__metadata("design:type", Date)
|
|
132
|
+
], Invoice.prototype, "updatedOn", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, class_transformer_1.Expose)(),
|
|
135
|
+
(0, class_transformer_1.Type)(() => shared_1.Person),
|
|
136
|
+
__metadata("design:type", shared_1.Person)
|
|
113
137
|
], Invoice.prototype, "generatedBy", void 0);
|
|
114
138
|
__decorate([
|
|
115
139
|
(0, class_transformer_1.Expose)(),
|
|
@@ -118,7 +142,8 @@ __decorate([
|
|
|
118
142
|
], Invoice.prototype, "generatedOn", void 0);
|
|
119
143
|
__decorate([
|
|
120
144
|
(0, class_transformer_1.Expose)(),
|
|
121
|
-
|
|
145
|
+
(0, class_transformer_1.Type)(() => shared_1.Person),
|
|
146
|
+
__metadata("design:type", shared_1.Person)
|
|
122
147
|
], Invoice.prototype, "paidBy", void 0);
|
|
123
148
|
__decorate([
|
|
124
149
|
(0, class_transformer_1.Expose)(),
|
|
@@ -127,7 +152,8 @@ __decorate([
|
|
|
127
152
|
], Invoice.prototype, "paidOn", void 0);
|
|
128
153
|
__decorate([
|
|
129
154
|
(0, class_transformer_1.Expose)(),
|
|
130
|
-
|
|
155
|
+
(0, class_transformer_1.Type)(() => shared_1.Person),
|
|
156
|
+
__metadata("design:type", shared_1.Person)
|
|
131
157
|
], Invoice.prototype, "canceledBy", void 0);
|
|
132
158
|
__decorate([
|
|
133
159
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.model.js","sourceRoot":"","sources":["../../src/invoice/invoice.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"invoice.model.js","sourceRoot":"","sources":["../../src/invoice/invoice.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAgF;AAChF,yDAAiD;AAEjD,4DAAmD;AACnD,4DAAmD;AACnD,4DAAmD;AACnD,+DAAsD;AACtD,6CAA2C;AAE3C,MAAa,OAAO;IAmHnB,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAtHD,0BAsHC;AAlHA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACU;AAGnB;IADC,IAAA,0BAAM,GA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BAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;2CAAC"}
|
|
@@ -28,6 +28,7 @@ __decorate([
|
|
|
28
28
|
], InvoiceItem.prototype, "description", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
31
32
|
__metadata("design:type", Number)
|
|
32
33
|
], InvoiceItem.prototype, "amountPerUnit", void 0);
|
|
33
34
|
__decorate([
|
|
@@ -35,4 +36,9 @@ __decorate([
|
|
|
35
36
|
(0, class_transformer_1.Type)(() => Number),
|
|
36
37
|
__metadata("design:type", Number)
|
|
37
38
|
], InvoiceItem.prototype, "quantity", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], InvoiceItem.prototype, "totalAmount", void 0);
|
|
38
44
|
//# sourceMappingURL=item.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.model.js","sourceRoot":"","sources":["../../src/invoice/item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"item.model.js","sourceRoot":"","sources":["../../src/invoice/item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,WAAW;IAqBvB,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxBD,kCAwBC;AApBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;gDACW;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kDACG;AAItB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACF;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACC"}
|