@platform-modules/foreign-ministry 1.2.21 → 1.2.23
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/.env +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.js +28 -1
- package/dist/models/MissionTravelApprovalModel.d.ts +3 -0
- package/dist/models/MissionTravelApprovalModel.js +28 -1
- package/dist/models/MissionTravelAttachmentModel.d.ts +5 -3
- package/dist/models/MissionTravelAttachmentModel.js +29 -12
- package/dist/models/MissionTravelChatModel.d.ts +4 -1
- package/dist/models/MissionTravelChatModel.js +23 -3
- package/dist/models/MissionTravelPersonModel.d.ts +2 -8
- package/dist/models/MissionTravelPersonModel.js +4 -15
- package/dist/models/MissionTravelRequestModel.d.ts +2 -6
- package/dist/models/MissionTravelRequestModel.js +7 -27
- package/dist/models/MissionTravelWorkflowModel.d.ts +9 -3
- package/dist/models/MissionTravelWorkflowModel.js +37 -17
- package/package.json +1 -1
- package/src/data-source.ts +11 -1
- package/src/index.ts +7 -1
- package/src/models/EmployeeCardApprovalsModel.ts +87 -0
- package/src/models/EmployeeCardAttachmentsModel.ts +56 -0
- package/src/models/EmployeeCardChatsModel.ts +66 -0
- package/src/models/EmployeeCardRequestsModel.ts +115 -0
- package/src/models/EmployeeCardWorkFlowModel.ts +90 -0
- package/src/models/MissionTravelApprovalModel.ts +41 -0
- package/src/models/MissionTravelAttachmentModel.ts +56 -32
- package/src/models/MissionTravelChatModel.ts +52 -26
- package/src/models/MissionTravelPersonModel.ts +105 -116
- package/src/models/MissionTravelRequestModel.ts +6 -25
- package/src/models/MissionTravelWorkflowModel.ts +55 -38
- package/src/models/MissionTravelClassConfigModel.ts +0 -39
- package/src/models/MissionTravelCostModel.ts +0 -64
- package/src/models/MissionTravelPerdiemModel.ts +0 -43
|
@@ -1,116 +1,105 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@Column({ type: '
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'int', nullable: true })
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@Column({ type: '
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
@Column({ type: '
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@Column({ type: '
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@Column({ type: '
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
@Column({ type: '
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
@Column({ type: '
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
@Column({ type: '
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'int', nullable: true })
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@Column({ type: '
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
@Column({ type: '
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@Column({ type: '
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.hotel_rating = hotel_rating;
|
|
107
|
-
this.hotel_price = hotel_price;
|
|
108
|
-
this.travel_agent_name = travel_agent_name;
|
|
109
|
-
this.allowance_amount = allowance_amount;
|
|
110
|
-
this.grade = grade;
|
|
111
|
-
this.position = position;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AllowanceRatio {
|
|
5
|
+
RATIO_100 = "100",
|
|
6
|
+
RATIO_75 = "75",
|
|
7
|
+
RATIO_50 = "50"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'mission_travel_persons' })
|
|
11
|
+
export class MissionTravelPersons extends BaseModel {
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'int', nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
23
|
+
travel_person_name: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
user_id: number | null; // If employee, link to user table
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: true })
|
|
29
|
+
country_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
32
|
+
allowance_ratio: AllowanceRatio | null; // 100, 75, or 50
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'date', nullable: true })
|
|
35
|
+
travel_from_date: Date | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'date', nullable: true })
|
|
38
|
+
travel_to_date: Date | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'varchar', nullable: true })
|
|
41
|
+
travel_class: string | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'int', nullable: true })
|
|
44
|
+
number_of_days: number | null;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
47
|
+
hotel_name: string | null;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'int', nullable: true })
|
|
50
|
+
hotel_rating: number | null;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
53
|
+
hotel_price: number | null;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
56
|
+
travel_agent_name: string | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
59
|
+
allowance_amount: number | null; // Auto-calculated based on ratio & perdiem
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'int', nullable: true })
|
|
62
|
+
grade: number | null; // Employee grade for perdiem calculation
|
|
63
|
+
|
|
64
|
+
constructor(
|
|
65
|
+
request_id: number,
|
|
66
|
+
service_id: number | null,
|
|
67
|
+
sub_service_id: number | null,
|
|
68
|
+
travel_person_name: string,
|
|
69
|
+
user_id: number | null,
|
|
70
|
+
country_id: number | null,
|
|
71
|
+
allowance_ratio: AllowanceRatio | null,
|
|
72
|
+
travel_from_date: Date | null,
|
|
73
|
+
travel_to_date: Date | null,
|
|
74
|
+
travel_class: string | null,
|
|
75
|
+
number_of_days: number | null,
|
|
76
|
+
hotel_name: string | null,
|
|
77
|
+
hotel_rating: number | null,
|
|
78
|
+
hotel_price: number | null,
|
|
79
|
+
travel_agent_name: string | null,
|
|
80
|
+
allowance_amount: number | null,
|
|
81
|
+
grade: number | null
|
|
82
|
+
) {
|
|
83
|
+
super();
|
|
84
|
+
this.request_id = request_id;
|
|
85
|
+
this.service_id = service_id;
|
|
86
|
+
this.sub_service_id = sub_service_id;
|
|
87
|
+
this.travel_person_name = travel_person_name;
|
|
88
|
+
this.user_id = user_id;
|
|
89
|
+
this.country_id = country_id;
|
|
90
|
+
this.allowance_ratio = allowance_ratio;
|
|
91
|
+
this.travel_from_date = travel_from_date;
|
|
92
|
+
this.travel_to_date = travel_to_date;
|
|
93
|
+
this.travel_class = travel_class;
|
|
94
|
+
this.number_of_days = number_of_days;
|
|
95
|
+
this.hotel_name = hotel_name;
|
|
96
|
+
this.hotel_rating = hotel_rating;
|
|
97
|
+
this.hotel_price = hotel_price;
|
|
98
|
+
this.travel_agent_name = travel_agent_name;
|
|
99
|
+
this.allowance_amount = allowance_amount;
|
|
100
|
+
this.grade = grade;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
@@ -42,9 +42,6 @@ export class MissionTravelRequests extends BaseModel {
|
|
|
42
42
|
@Column({ type: 'enum', enum: DecisionType, nullable: true })
|
|
43
43
|
decision_type: DecisionType | null;
|
|
44
44
|
|
|
45
|
-
@Column({ type: 'int', nullable: true })
|
|
46
|
-
country_id: number | null;
|
|
47
|
-
|
|
48
45
|
@Column({ type: 'date', nullable: true })
|
|
49
46
|
from_date: Date | null;
|
|
50
47
|
|
|
@@ -63,24 +60,15 @@ export class MissionTravelRequests extends BaseModel {
|
|
|
63
60
|
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
64
61
|
mission_allowance_cost: number | null;
|
|
65
62
|
|
|
66
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
67
|
-
hotel_name: string | null;
|
|
68
|
-
|
|
69
|
-
@Column({ type: 'int', nullable: true })
|
|
70
|
-
hotel_rating: number | null;
|
|
71
|
-
|
|
72
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
73
|
-
hotel_price: number | null;
|
|
74
|
-
|
|
75
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
76
|
-
travelling_agent: string | null;
|
|
77
|
-
|
|
78
63
|
@Column({ type: 'enum', enum: MissionTravelStatus, default: MissionTravelStatus.PENDING, nullable: false })
|
|
79
64
|
status: MissionTravelStatus;
|
|
80
65
|
|
|
81
66
|
@Column({ type: 'varchar', nullable: true })
|
|
82
67
|
workflow_execution_id: string | null;
|
|
83
68
|
|
|
69
|
+
@Column({ type: 'varchar', nullable: true })
|
|
70
|
+
request_type: string | null;
|
|
71
|
+
|
|
84
72
|
constructor(
|
|
85
73
|
user_id: number,
|
|
86
74
|
service_id: number | null,
|
|
@@ -88,17 +76,13 @@ export class MissionTravelRequests extends BaseModel {
|
|
|
88
76
|
department_participation: boolean,
|
|
89
77
|
mission_type: MissionType | null,
|
|
90
78
|
decision_type: DecisionType | null,
|
|
91
|
-
country_id: number | null,
|
|
92
79
|
from_date: Date | null,
|
|
93
80
|
to_date: Date | null,
|
|
94
81
|
purpose_of_mission: string | null,
|
|
95
82
|
exchange_ratio: string | null,
|
|
96
83
|
number_of_days: number | null,
|
|
97
84
|
mission_allowance_cost: number | null,
|
|
98
|
-
|
|
99
|
-
hotel_rating: number | null,
|
|
100
|
-
hotel_price: number | null,
|
|
101
|
-
travelling_agent: string | null
|
|
85
|
+
request_type: string | null
|
|
102
86
|
) {
|
|
103
87
|
super();
|
|
104
88
|
this.user_id = user_id;
|
|
@@ -107,18 +91,15 @@ export class MissionTravelRequests extends BaseModel {
|
|
|
107
91
|
this.department_participation = department_participation;
|
|
108
92
|
this.mission_type = mission_type;
|
|
109
93
|
this.decision_type = decision_type;
|
|
110
|
-
this.country_id = country_id;
|
|
111
94
|
this.from_date = from_date;
|
|
112
95
|
this.to_date = to_date;
|
|
113
96
|
this.purpose_of_mission = purpose_of_mission;
|
|
114
97
|
this.exchange_ratio = exchange_ratio;
|
|
115
98
|
this.number_of_days = number_of_days;
|
|
116
99
|
this.mission_allowance_cost = mission_allowance_cost;
|
|
117
|
-
this.hotel_name = hotel_name;
|
|
118
|
-
this.hotel_rating = hotel_rating;
|
|
119
|
-
this.hotel_price = hotel_price;
|
|
120
|
-
this.travelling_agent = travelling_agent;
|
|
121
100
|
this.status = MissionTravelStatus.PENDING;
|
|
101
|
+
this.request_type = request_type;
|
|
102
|
+
|
|
122
103
|
}
|
|
123
104
|
}
|
|
124
105
|
|
|
@@ -1,38 +1,55 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@Column({ type: '
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@Column({ type: '
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@Column({ type: '
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@Column({ type: '
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
@Column({ type: '
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
@Column({ type: '
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@Column({ type: '
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
@Column({ type: '
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum workFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'mission_travel_workflows' })
|
|
11
|
+
export class MissionTravelWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'int', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
order: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
25
|
+
content: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
28
|
+
status: workFlowStatus;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'integer', nullable: true })
|
|
31
|
+
user_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'integer', nullable: true })
|
|
34
|
+
role_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'integer', nullable: true })
|
|
37
|
+
department_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'integer', nullable: true })
|
|
40
|
+
section_id: number | null;
|
|
41
|
+
|
|
42
|
+
constructor(request_id: number, content: string, status: workFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null, user_id?: number | null, role_id?: number | null, department_id?: number | null, section_id?: number | null) {
|
|
43
|
+
super();
|
|
44
|
+
this.request_id = request_id;
|
|
45
|
+
this.content = content;
|
|
46
|
+
this.status = status;
|
|
47
|
+
this.order = order || null;
|
|
48
|
+
this.service_id = service_id ?? null;
|
|
49
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
50
|
+
this.user_id = user_id || null;
|
|
51
|
+
this.role_id = role_id || null;
|
|
52
|
+
this.department_id = department_id || null;
|
|
53
|
+
this.section_id = section_id || null;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { TravelClass } from './MissionTravelPersonModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'mission_travel_class_config' })
|
|
6
|
-
export class MissionTravelClassConfig extends BaseModel {
|
|
7
|
-
|
|
8
|
-
@Column({ type: 'int', nullable: true })
|
|
9
|
-
grade: number | null;
|
|
10
|
-
|
|
11
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
12
|
-
position: string | null;
|
|
13
|
-
|
|
14
|
-
@Column({ type: 'enum', enum: TravelClass, nullable: false })
|
|
15
|
-
travel_class: TravelClass;
|
|
16
|
-
|
|
17
|
-
@Column({ type: 'boolean', default: true })
|
|
18
|
-
is_active: boolean;
|
|
19
|
-
|
|
20
|
-
@Column({ type: 'text', nullable: true })
|
|
21
|
-
description: string | null;
|
|
22
|
-
|
|
23
|
-
constructor(
|
|
24
|
-
grade: number | null,
|
|
25
|
-
position: string | null,
|
|
26
|
-
travel_class: TravelClass,
|
|
27
|
-
description: string | null
|
|
28
|
-
) {
|
|
29
|
-
super();
|
|
30
|
-
this.grade = grade;
|
|
31
|
-
this.position = position;
|
|
32
|
-
this.travel_class = travel_class;
|
|
33
|
-
this.description = description;
|
|
34
|
-
this.is_active = true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'mission_travel_costs' })
|
|
5
|
-
export class MissionTravelCosts extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ type: 'int', nullable: false })
|
|
8
|
-
request_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'int', nullable: true })
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'int', nullable: true })
|
|
14
|
-
sub_service_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: false })
|
|
17
|
-
person_id: number; // Reference to mission_travel_persons.id
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
20
|
-
person_name: string;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
23
|
-
allowance_amount: number | null; // Pulled from calculated allowance
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
26
|
-
ticket_charges: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
29
|
-
hotel_charges: number | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
32
|
-
others: number | null;
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
35
|
-
sub_total: number | null; // Auto-calculated: allowance + ticket + hotel + others
|
|
36
|
-
|
|
37
|
-
constructor(
|
|
38
|
-
request_id: number,
|
|
39
|
-
service_id: number | null,
|
|
40
|
-
sub_service_id: number | null,
|
|
41
|
-
person_id: number,
|
|
42
|
-
person_name: string,
|
|
43
|
-
allowance_amount: number | null,
|
|
44
|
-
ticket_charges: number | null,
|
|
45
|
-
hotel_charges: number | null,
|
|
46
|
-
others: number | null,
|
|
47
|
-
sub_total: number | null
|
|
48
|
-
) {
|
|
49
|
-
super();
|
|
50
|
-
this.request_id = request_id;
|
|
51
|
-
this.service_id = service_id;
|
|
52
|
-
this.sub_service_id = sub_service_id;
|
|
53
|
-
this.person_id = person_id;
|
|
54
|
-
this.person_name = person_name;
|
|
55
|
-
this.allowance_amount = allowance_amount;
|
|
56
|
-
this.ticket_charges = ticket_charges;
|
|
57
|
-
this.hotel_charges = hotel_charges;
|
|
58
|
-
this.others = others;
|
|
59
|
-
this.sub_total = sub_total;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'mission_travel_perdiem' })
|
|
5
|
-
export class MissionTravelPerdiem extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ type: 'int', nullable: false })
|
|
8
|
-
grade: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: false })
|
|
11
|
-
perdiem_amount: number;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
14
|
-
currency: string | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'date', nullable: true })
|
|
17
|
-
effective_from: Date | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'date', nullable: true })
|
|
20
|
-
effective_to: Date | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'boolean', default: true })
|
|
23
|
-
is_active: boolean;
|
|
24
|
-
|
|
25
|
-
constructor(
|
|
26
|
-
grade: number,
|
|
27
|
-
perdiem_amount: number,
|
|
28
|
-
currency: string | null,
|
|
29
|
-
effective_from: Date | null,
|
|
30
|
-
effective_to: Date | null
|
|
31
|
-
) {
|
|
32
|
-
super();
|
|
33
|
-
this.grade = grade;
|
|
34
|
-
this.perdiem_amount = perdiem_amount;
|
|
35
|
-
this.currency = currency;
|
|
36
|
-
this.effective_from = effective_from;
|
|
37
|
-
this.effective_to = effective_to;
|
|
38
|
-
this.is_active = true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|