@managesome/eposmatic-toolkit 0.2.551 → 0.2.553
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/helpers/store/cart-actions.d.ts +14 -0
- package/lib/helpers/utils/offer-apply-helpers.d.ts +14 -0
- package/lib/helpers/utils/time-helpers.d.ts +16 -0
- package/lib/helpers/utils/time-helpers.js +57 -4
- package/lib/schemas/models/internal_invoices.d.ts +3 -3
- package/lib/schemas/models/orders.d.ts +153 -111
- package/lib/schemas/models/orders.js +79 -0
- package/lib/schemas/models/tenant_cash_drawer_sessions.d.ts +9 -9
- package/lib/schemas/models/tenant_cash_in_out.d.ts +9 -9
- package/lib/schemas/models/tenant_day_sessions.d.ts +38 -38
- package/lib/schemas/models/tenant_instore_shift_sessions.d.ts +42 -42
- package/lib/schemas/models/tenant_purchase_orders.d.ts +36 -36
- package/lib/schemas/models/tenants.d.ts +60 -60
- package/lib/schemas/models/vouchers.d.ts +3 -3
- package/lib/schemas/models/warehouse_communications.d.ts +3 -3
- package/lib/schemas/models/warehouse_internal_movements.d.ts +6 -6
- package/lib/schemas/models/warehouse_operational_roles.d.ts +3 -3
- package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +63 -63
- package/lib/schemas/models/warehouse_purchase_orders.d.ts +42 -42
- package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +69 -69
- package/lib/schemas/models/warehouse_sale_orders.d.ts +45 -45
- package/lib/schemas/models/warehouses.d.ts +12 -12
- package/lib/schemas/types/orders.d.ts +2 -1
- package/package.json +1 -1
|
@@ -856,6 +856,85 @@ exports.OrderSchema = new mongoose_1.Schema({
|
|
|
856
856
|
return Math.floor(date.getHours() * 60 + date.getMinutes());
|
|
857
857
|
},
|
|
858
858
|
},
|
|
859
|
+
// local time fields (Partial<ILocalTimeFields>)
|
|
860
|
+
// copied from LocalTimeFieldsSchema
|
|
861
|
+
day_index: {
|
|
862
|
+
type: String,
|
|
863
|
+
enum: constants_1.ALL_DAY_INDEX,
|
|
864
|
+
required: false,
|
|
865
|
+
},
|
|
866
|
+
localSecond: {
|
|
867
|
+
type: Number,
|
|
868
|
+
required: false,
|
|
869
|
+
min: 0,
|
|
870
|
+
max: 59,
|
|
871
|
+
},
|
|
872
|
+
localMinute: {
|
|
873
|
+
type: Number,
|
|
874
|
+
required: false,
|
|
875
|
+
min: 0,
|
|
876
|
+
max: 59,
|
|
877
|
+
},
|
|
878
|
+
localHour: {
|
|
879
|
+
type: Number,
|
|
880
|
+
required: false,
|
|
881
|
+
min: 0,
|
|
882
|
+
max: 23,
|
|
883
|
+
},
|
|
884
|
+
localDay: {
|
|
885
|
+
type: Number,
|
|
886
|
+
required: false,
|
|
887
|
+
min: 0,
|
|
888
|
+
max: 6,
|
|
889
|
+
},
|
|
890
|
+
localWeek: {
|
|
891
|
+
type: Number,
|
|
892
|
+
required: false,
|
|
893
|
+
min: 1,
|
|
894
|
+
max: 5,
|
|
895
|
+
},
|
|
896
|
+
localWeekOfYear: {
|
|
897
|
+
type: Number,
|
|
898
|
+
required: false,
|
|
899
|
+
min: 1,
|
|
900
|
+
max: 53,
|
|
901
|
+
},
|
|
902
|
+
localMonth: {
|
|
903
|
+
type: Number,
|
|
904
|
+
required: false,
|
|
905
|
+
min: 1,
|
|
906
|
+
max: 12,
|
|
907
|
+
},
|
|
908
|
+
localQuarter: {
|
|
909
|
+
type: Number,
|
|
910
|
+
required: false,
|
|
911
|
+
min: 1,
|
|
912
|
+
max: 4,
|
|
913
|
+
},
|
|
914
|
+
localSemester: {
|
|
915
|
+
type: Number,
|
|
916
|
+
required: false,
|
|
917
|
+
min: 1,
|
|
918
|
+
max: 2,
|
|
919
|
+
},
|
|
920
|
+
localYear: {
|
|
921
|
+
type: Number,
|
|
922
|
+
required: false,
|
|
923
|
+
},
|
|
924
|
+
localDate: {
|
|
925
|
+
type: String,
|
|
926
|
+
required: false,
|
|
927
|
+
},
|
|
928
|
+
localTime: {
|
|
929
|
+
type: String,
|
|
930
|
+
required: false,
|
|
931
|
+
},
|
|
932
|
+
localDayOfYear: {
|
|
933
|
+
type: Number,
|
|
934
|
+
required: false,
|
|
935
|
+
min: 1,
|
|
936
|
+
max: 366,
|
|
937
|
+
},
|
|
859
938
|
createdAt_mins: {
|
|
860
939
|
type: Number,
|
|
861
940
|
required: true,
|
|
@@ -14,17 +14,17 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
14
14
|
createdAt: NativeDate;
|
|
15
15
|
updatedAt: NativeDate;
|
|
16
16
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
17
|
+
localYear: number;
|
|
18
|
+
localMonth: number;
|
|
19
|
+
localDay: number;
|
|
17
20
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
18
21
|
localSecond: number;
|
|
19
22
|
localMinute: number;
|
|
20
23
|
localHour: number;
|
|
21
|
-
localDay: number;
|
|
22
24
|
localWeek: number;
|
|
23
25
|
localWeekOfYear: number;
|
|
24
|
-
localMonth: number;
|
|
25
26
|
localQuarter: number;
|
|
26
27
|
localSemester: number;
|
|
27
|
-
localYear: number;
|
|
28
28
|
localDate: string;
|
|
29
29
|
localTime: string;
|
|
30
30
|
localDayOfYear: number;
|
|
@@ -46,17 +46,17 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
46
46
|
createdAt: NativeDate;
|
|
47
47
|
updatedAt: NativeDate;
|
|
48
48
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
49
|
+
localYear: number;
|
|
50
|
+
localMonth: number;
|
|
51
|
+
localDay: number;
|
|
49
52
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
50
53
|
localSecond: number;
|
|
51
54
|
localMinute: number;
|
|
52
55
|
localHour: number;
|
|
53
|
-
localDay: number;
|
|
54
56
|
localWeek: number;
|
|
55
57
|
localWeekOfYear: number;
|
|
56
|
-
localMonth: number;
|
|
57
58
|
localQuarter: number;
|
|
58
59
|
localSemester: number;
|
|
59
|
-
localYear: number;
|
|
60
60
|
localDate: string;
|
|
61
61
|
localTime: string;
|
|
62
62
|
localDayOfYear: number;
|
|
@@ -78,17 +78,17 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
78
78
|
createdAt: NativeDate;
|
|
79
79
|
updatedAt: NativeDate;
|
|
80
80
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
81
|
+
localYear: number;
|
|
82
|
+
localMonth: number;
|
|
83
|
+
localDay: number;
|
|
81
84
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
82
85
|
localSecond: number;
|
|
83
86
|
localMinute: number;
|
|
84
87
|
localHour: number;
|
|
85
|
-
localDay: number;
|
|
86
88
|
localWeek: number;
|
|
87
89
|
localWeekOfYear: number;
|
|
88
|
-
localMonth: number;
|
|
89
90
|
localQuarter: number;
|
|
90
91
|
localSemester: number;
|
|
91
|
-
localYear: number;
|
|
92
92
|
localDate: string;
|
|
93
93
|
localTime: string;
|
|
94
94
|
localDayOfYear: number;
|
|
@@ -16,17 +16,17 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
16
16
|
updatedAt: NativeDate;
|
|
17
17
|
note: string;
|
|
18
18
|
amount: number;
|
|
19
|
+
localYear: number;
|
|
20
|
+
localMonth: number;
|
|
21
|
+
localDay: number;
|
|
19
22
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
20
23
|
localSecond: number;
|
|
21
24
|
localMinute: number;
|
|
22
25
|
localHour: number;
|
|
23
|
-
localDay: number;
|
|
24
26
|
localWeek: number;
|
|
25
27
|
localWeekOfYear: number;
|
|
26
|
-
localMonth: number;
|
|
27
28
|
localQuarter: number;
|
|
28
29
|
localSemester: number;
|
|
29
|
-
localYear: number;
|
|
30
30
|
localDate: string;
|
|
31
31
|
localTime: string;
|
|
32
32
|
localDayOfYear: number;
|
|
@@ -49,17 +49,17 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
49
49
|
updatedAt: NativeDate;
|
|
50
50
|
note: string;
|
|
51
51
|
amount: number;
|
|
52
|
+
localYear: number;
|
|
53
|
+
localMonth: number;
|
|
54
|
+
localDay: number;
|
|
52
55
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
53
56
|
localSecond: number;
|
|
54
57
|
localMinute: number;
|
|
55
58
|
localHour: number;
|
|
56
|
-
localDay: number;
|
|
57
59
|
localWeek: number;
|
|
58
60
|
localWeekOfYear: number;
|
|
59
|
-
localMonth: number;
|
|
60
61
|
localQuarter: number;
|
|
61
62
|
localSemester: number;
|
|
62
|
-
localYear: number;
|
|
63
63
|
localDate: string;
|
|
64
64
|
localTime: string;
|
|
65
65
|
localDayOfYear: number;
|
|
@@ -82,17 +82,17 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
82
82
|
updatedAt: NativeDate;
|
|
83
83
|
note: string;
|
|
84
84
|
amount: number;
|
|
85
|
+
localYear: number;
|
|
86
|
+
localMonth: number;
|
|
87
|
+
localDay: number;
|
|
85
88
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
86
89
|
localSecond: number;
|
|
87
90
|
localMinute: number;
|
|
88
91
|
localHour: number;
|
|
89
|
-
localDay: number;
|
|
90
92
|
localWeek: number;
|
|
91
93
|
localWeekOfYear: number;
|
|
92
|
-
localMonth: number;
|
|
93
94
|
localQuarter: number;
|
|
94
95
|
localSemester: number;
|
|
95
|
-
localYear: number;
|
|
96
96
|
localDate: string;
|
|
97
97
|
localTime: string;
|
|
98
98
|
localDayOfYear: number;
|
|
@@ -12,6 +12,20 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
12
12
|
createdAt: NativeDate;
|
|
13
13
|
updatedAt: NativeDate;
|
|
14
14
|
status: import("../../constants").POS_DAY_STATUS_ENUM;
|
|
15
|
+
localYear: number;
|
|
16
|
+
localMonth: number;
|
|
17
|
+
localDay: number;
|
|
18
|
+
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
19
|
+
localSecond: number;
|
|
20
|
+
localMinute: number;
|
|
21
|
+
localHour: number;
|
|
22
|
+
localWeek: number;
|
|
23
|
+
localWeekOfYear: number;
|
|
24
|
+
localQuarter: number;
|
|
25
|
+
localSemester: number;
|
|
26
|
+
localDate: string;
|
|
27
|
+
localTime: string;
|
|
28
|
+
localDayOfYear: number;
|
|
15
29
|
opening: {
|
|
16
30
|
staff_id: string;
|
|
17
31
|
staff_name: string;
|
|
@@ -44,29 +58,29 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
44
58
|
reopened_at: NativeDate;
|
|
45
59
|
}>;
|
|
46
60
|
reopened_times: number;
|
|
61
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
62
|
+
createdAt: NativeDate;
|
|
63
|
+
updatedAt: NativeDate;
|
|
64
|
+
} & {
|
|
65
|
+
_id: import("mongoose").Types.ObjectId;
|
|
66
|
+
tenant_id: string;
|
|
67
|
+
createdAt: NativeDate;
|
|
68
|
+
updatedAt: NativeDate;
|
|
69
|
+
status: import("../../constants").POS_DAY_STATUS_ENUM;
|
|
70
|
+
localYear: number;
|
|
71
|
+
localMonth: number;
|
|
72
|
+
localDay: number;
|
|
47
73
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
48
74
|
localSecond: number;
|
|
49
75
|
localMinute: number;
|
|
50
76
|
localHour: number;
|
|
51
|
-
localDay: number;
|
|
52
77
|
localWeek: number;
|
|
53
78
|
localWeekOfYear: number;
|
|
54
|
-
localMonth: number;
|
|
55
79
|
localQuarter: number;
|
|
56
80
|
localSemester: number;
|
|
57
|
-
localYear: number;
|
|
58
81
|
localDate: string;
|
|
59
82
|
localTime: string;
|
|
60
83
|
localDayOfYear: number;
|
|
61
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
62
|
-
createdAt: NativeDate;
|
|
63
|
-
updatedAt: NativeDate;
|
|
64
|
-
} & {
|
|
65
|
-
_id: import("mongoose").Types.ObjectId;
|
|
66
|
-
tenant_id: string;
|
|
67
|
-
createdAt: NativeDate;
|
|
68
|
-
updatedAt: NativeDate;
|
|
69
|
-
status: import("../../constants").POS_DAY_STATUS_ENUM;
|
|
70
84
|
opening: {
|
|
71
85
|
staff_id: string;
|
|
72
86
|
staff_name: string;
|
|
@@ -99,29 +113,29 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
99
113
|
reopened_at: NativeDate;
|
|
100
114
|
}>;
|
|
101
115
|
reopened_times: number;
|
|
116
|
+
}>> & import("mongoose").FlatRecord<{
|
|
117
|
+
createdAt: NativeDate;
|
|
118
|
+
updatedAt: NativeDate;
|
|
119
|
+
} & {
|
|
120
|
+
_id: import("mongoose").Types.ObjectId;
|
|
121
|
+
tenant_id: string;
|
|
122
|
+
createdAt: NativeDate;
|
|
123
|
+
updatedAt: NativeDate;
|
|
124
|
+
status: import("../../constants").POS_DAY_STATUS_ENUM;
|
|
125
|
+
localYear: number;
|
|
126
|
+
localMonth: number;
|
|
127
|
+
localDay: number;
|
|
102
128
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
103
129
|
localSecond: number;
|
|
104
130
|
localMinute: number;
|
|
105
131
|
localHour: number;
|
|
106
|
-
localDay: number;
|
|
107
132
|
localWeek: number;
|
|
108
133
|
localWeekOfYear: number;
|
|
109
|
-
localMonth: number;
|
|
110
134
|
localQuarter: number;
|
|
111
135
|
localSemester: number;
|
|
112
|
-
localYear: number;
|
|
113
136
|
localDate: string;
|
|
114
137
|
localTime: string;
|
|
115
138
|
localDayOfYear: number;
|
|
116
|
-
}>> & import("mongoose").FlatRecord<{
|
|
117
|
-
createdAt: NativeDate;
|
|
118
|
-
updatedAt: NativeDate;
|
|
119
|
-
} & {
|
|
120
|
-
_id: import("mongoose").Types.ObjectId;
|
|
121
|
-
tenant_id: string;
|
|
122
|
-
createdAt: NativeDate;
|
|
123
|
-
updatedAt: NativeDate;
|
|
124
|
-
status: import("../../constants").POS_DAY_STATUS_ENUM;
|
|
125
139
|
opening: {
|
|
126
140
|
staff_id: string;
|
|
127
141
|
staff_name: string;
|
|
@@ -154,20 +168,6 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
154
168
|
reopened_at: NativeDate;
|
|
155
169
|
}>;
|
|
156
170
|
reopened_times: number;
|
|
157
|
-
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
158
|
-
localSecond: number;
|
|
159
|
-
localMinute: number;
|
|
160
|
-
localHour: number;
|
|
161
|
-
localDay: number;
|
|
162
|
-
localWeek: number;
|
|
163
|
-
localWeekOfYear: number;
|
|
164
|
-
localMonth: number;
|
|
165
|
-
localQuarter: number;
|
|
166
|
-
localSemester: number;
|
|
167
|
-
localYear: number;
|
|
168
|
-
localDate: string;
|
|
169
|
-
localTime: string;
|
|
170
|
-
localDayOfYear: number;
|
|
171
171
|
}> & Required<{
|
|
172
172
|
_id: import("mongoose").Types.ObjectId;
|
|
173
173
|
}> & {
|
|
@@ -12,6 +12,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
12
12
|
createdAt: NativeDate;
|
|
13
13
|
updatedAt: NativeDate;
|
|
14
14
|
status: import("../../constants").POS_SHIFT_STATUS_ENUM;
|
|
15
|
+
localYear: number;
|
|
16
|
+
localMonth: number;
|
|
17
|
+
localDay: number;
|
|
18
|
+
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
19
|
+
localSecond: number;
|
|
20
|
+
localMinute: number;
|
|
21
|
+
localHour: number;
|
|
22
|
+
localWeek: number;
|
|
23
|
+
localWeekOfYear: number;
|
|
24
|
+
localQuarter: number;
|
|
25
|
+
localSemester: number;
|
|
26
|
+
localDate: string;
|
|
27
|
+
localTime: string;
|
|
28
|
+
localDayOfYear: number;
|
|
15
29
|
opening: {
|
|
16
30
|
staff_id: string;
|
|
17
31
|
staff_name: string;
|
|
@@ -40,20 +54,6 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
40
54
|
reopened_at: NativeDate;
|
|
41
55
|
}>;
|
|
42
56
|
reopened_times: number;
|
|
43
|
-
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
44
|
-
localSecond: number;
|
|
45
|
-
localMinute: number;
|
|
46
|
-
localHour: number;
|
|
47
|
-
localDay: number;
|
|
48
|
-
localWeek: number;
|
|
49
|
-
localWeekOfYear: number;
|
|
50
|
-
localMonth: number;
|
|
51
|
-
localQuarter: number;
|
|
52
|
-
localSemester: number;
|
|
53
|
-
localYear: number;
|
|
54
|
-
localDate: string;
|
|
55
|
-
localTime: string;
|
|
56
|
-
localDayOfYear: number;
|
|
57
57
|
difference: number;
|
|
58
58
|
day_id: import("mongoose").Types.ObjectId;
|
|
59
59
|
shift_id: import("mongoose").Types.ObjectId;
|
|
@@ -71,6 +71,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
71
71
|
createdAt: NativeDate;
|
|
72
72
|
updatedAt: NativeDate;
|
|
73
73
|
status: import("../../constants").POS_SHIFT_STATUS_ENUM;
|
|
74
|
+
localYear: number;
|
|
75
|
+
localMonth: number;
|
|
76
|
+
localDay: number;
|
|
77
|
+
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
78
|
+
localSecond: number;
|
|
79
|
+
localMinute: number;
|
|
80
|
+
localHour: number;
|
|
81
|
+
localWeek: number;
|
|
82
|
+
localWeekOfYear: number;
|
|
83
|
+
localQuarter: number;
|
|
84
|
+
localSemester: number;
|
|
85
|
+
localDate: string;
|
|
86
|
+
localTime: string;
|
|
87
|
+
localDayOfYear: number;
|
|
74
88
|
opening: {
|
|
75
89
|
staff_id: string;
|
|
76
90
|
staff_name: string;
|
|
@@ -99,20 +113,6 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
99
113
|
reopened_at: NativeDate;
|
|
100
114
|
}>;
|
|
101
115
|
reopened_times: number;
|
|
102
|
-
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
103
|
-
localSecond: number;
|
|
104
|
-
localMinute: number;
|
|
105
|
-
localHour: number;
|
|
106
|
-
localDay: number;
|
|
107
|
-
localWeek: number;
|
|
108
|
-
localWeekOfYear: number;
|
|
109
|
-
localMonth: number;
|
|
110
|
-
localQuarter: number;
|
|
111
|
-
localSemester: number;
|
|
112
|
-
localYear: number;
|
|
113
|
-
localDate: string;
|
|
114
|
-
localTime: string;
|
|
115
|
-
localDayOfYear: number;
|
|
116
116
|
difference: number;
|
|
117
117
|
day_id: import("mongoose").Types.ObjectId;
|
|
118
118
|
shift_id: import("mongoose").Types.ObjectId;
|
|
@@ -130,6 +130,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
130
130
|
createdAt: NativeDate;
|
|
131
131
|
updatedAt: NativeDate;
|
|
132
132
|
status: import("../../constants").POS_SHIFT_STATUS_ENUM;
|
|
133
|
+
localYear: number;
|
|
134
|
+
localMonth: number;
|
|
135
|
+
localDay: number;
|
|
136
|
+
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
137
|
+
localSecond: number;
|
|
138
|
+
localMinute: number;
|
|
139
|
+
localHour: number;
|
|
140
|
+
localWeek: number;
|
|
141
|
+
localWeekOfYear: number;
|
|
142
|
+
localQuarter: number;
|
|
143
|
+
localSemester: number;
|
|
144
|
+
localDate: string;
|
|
145
|
+
localTime: string;
|
|
146
|
+
localDayOfYear: number;
|
|
133
147
|
opening: {
|
|
134
148
|
staff_id: string;
|
|
135
149
|
staff_name: string;
|
|
@@ -158,20 +172,6 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
158
172
|
reopened_at: NativeDate;
|
|
159
173
|
}>;
|
|
160
174
|
reopened_times: number;
|
|
161
|
-
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
162
|
-
localSecond: number;
|
|
163
|
-
localMinute: number;
|
|
164
|
-
localHour: number;
|
|
165
|
-
localDay: number;
|
|
166
|
-
localWeek: number;
|
|
167
|
-
localWeekOfYear: number;
|
|
168
|
-
localMonth: number;
|
|
169
|
-
localQuarter: number;
|
|
170
|
-
localSemester: number;
|
|
171
|
-
localYear: number;
|
|
172
|
-
localDate: string;
|
|
173
|
-
localTime: string;
|
|
174
|
-
localDayOfYear: number;
|
|
175
175
|
difference: number;
|
|
176
176
|
day_id: import("mongoose").Types.ObjectId;
|
|
177
177
|
shift_id: import("mongoose").Types.ObjectId;
|
|
@@ -223,11 +223,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
223
223
|
refund_reason?: string | null | undefined;
|
|
224
224
|
note?: string | null | undefined;
|
|
225
225
|
}>;
|
|
226
|
-
special_instructions: string;
|
|
227
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
228
|
-
tax_number: string;
|
|
229
|
-
amount_earned: number;
|
|
230
|
-
grand_total: number;
|
|
231
226
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
232
227
|
updatedAt: NativeDate;
|
|
233
228
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -441,10 +436,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
441
436
|
note?: string | null | undefined;
|
|
442
437
|
}>;
|
|
443
438
|
special_instructions: string;
|
|
444
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
445
|
-
tax_number: string;
|
|
446
439
|
amount_earned: number;
|
|
447
440
|
grand_total: number;
|
|
441
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
442
|
+
tax_number: string;
|
|
448
443
|
staff_details?: {
|
|
449
444
|
staff_id: string;
|
|
450
445
|
staff_name: string;
|
|
@@ -667,10 +662,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
667
662
|
note?: string | null | undefined;
|
|
668
663
|
}>;
|
|
669
664
|
special_instructions: string;
|
|
670
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
671
|
-
tax_number: string;
|
|
672
665
|
amount_earned: number;
|
|
673
666
|
grand_total: number;
|
|
667
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
668
|
+
tax_number: string;
|
|
674
669
|
staff_details?: {
|
|
675
670
|
staff_id: string;
|
|
676
671
|
staff_name: string;
|
|
@@ -893,10 +888,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
893
888
|
note?: string | null | undefined;
|
|
894
889
|
}>;
|
|
895
890
|
special_instructions: string;
|
|
896
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
897
|
-
tax_number: string;
|
|
898
891
|
amount_earned: number;
|
|
899
892
|
grand_total: number;
|
|
893
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
894
|
+
tax_number: string;
|
|
900
895
|
staff_details?: {
|
|
901
896
|
staff_id: string;
|
|
902
897
|
staff_name: string;
|
|
@@ -918,15 +913,20 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
918
913
|
staff_mobile: string;
|
|
919
914
|
staff_email: string;
|
|
920
915
|
};
|
|
916
|
+
special_instructions: string;
|
|
917
|
+
amount_earned: number;
|
|
918
|
+
grand_total: number;
|
|
919
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
920
|
+
tax_number: string;
|
|
921
921
|
vendor_name: string;
|
|
922
922
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
923
923
|
cancel_reason?: string | null | undefined;
|
|
924
924
|
delete_reason?: string | null | undefined;
|
|
925
925
|
is_reopened?: boolean | null | undefined;
|
|
926
|
-
deferred_settlement?: boolean | null | undefined;
|
|
927
926
|
is_gst_inclusive?: boolean | null | undefined;
|
|
928
927
|
gst?: number | null | undefined;
|
|
929
928
|
gst_amount?: number | null | undefined;
|
|
929
|
+
deferred_settlement?: boolean | null | undefined;
|
|
930
930
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
931
931
|
createdAt: NativeDate;
|
|
932
932
|
updatedAt: NativeDate;
|
|
@@ -1147,11 +1147,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1147
1147
|
refund_reason?: string | null | undefined;
|
|
1148
1148
|
note?: string | null | undefined;
|
|
1149
1149
|
}>;
|
|
1150
|
-
special_instructions: string;
|
|
1151
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1152
|
-
tax_number: string;
|
|
1153
|
-
amount_earned: number;
|
|
1154
|
-
grand_total: number;
|
|
1155
1150
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1156
1151
|
updatedAt: NativeDate;
|
|
1157
1152
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1365,10 +1360,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1365
1360
|
note?: string | null | undefined;
|
|
1366
1361
|
}>;
|
|
1367
1362
|
special_instructions: string;
|
|
1368
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1369
|
-
tax_number: string;
|
|
1370
1363
|
amount_earned: number;
|
|
1371
1364
|
grand_total: number;
|
|
1365
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1366
|
+
tax_number: string;
|
|
1372
1367
|
staff_details?: {
|
|
1373
1368
|
staff_id: string;
|
|
1374
1369
|
staff_name: string;
|
|
@@ -1591,10 +1586,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1591
1586
|
note?: string | null | undefined;
|
|
1592
1587
|
}>;
|
|
1593
1588
|
special_instructions: string;
|
|
1594
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1595
|
-
tax_number: string;
|
|
1596
1589
|
amount_earned: number;
|
|
1597
1590
|
grand_total: number;
|
|
1591
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1592
|
+
tax_number: string;
|
|
1598
1593
|
staff_details?: {
|
|
1599
1594
|
staff_id: string;
|
|
1600
1595
|
staff_name: string;
|
|
@@ -1817,10 +1812,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1817
1812
|
note?: string | null | undefined;
|
|
1818
1813
|
}>;
|
|
1819
1814
|
special_instructions: string;
|
|
1820
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1821
|
-
tax_number: string;
|
|
1822
1815
|
amount_earned: number;
|
|
1823
1816
|
grand_total: number;
|
|
1817
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1818
|
+
tax_number: string;
|
|
1824
1819
|
staff_details?: {
|
|
1825
1820
|
staff_id: string;
|
|
1826
1821
|
staff_name: string;
|
|
@@ -1842,15 +1837,20 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1842
1837
|
staff_mobile: string;
|
|
1843
1838
|
staff_email: string;
|
|
1844
1839
|
};
|
|
1840
|
+
special_instructions: string;
|
|
1841
|
+
amount_earned: number;
|
|
1842
|
+
grand_total: number;
|
|
1843
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1844
|
+
tax_number: string;
|
|
1845
1845
|
vendor_name: string;
|
|
1846
1846
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
1847
1847
|
cancel_reason?: string | null | undefined;
|
|
1848
1848
|
delete_reason?: string | null | undefined;
|
|
1849
1849
|
is_reopened?: boolean | null | undefined;
|
|
1850
|
-
deferred_settlement?: boolean | null | undefined;
|
|
1851
1850
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1852
1851
|
gst?: number | null | undefined;
|
|
1853
1852
|
gst_amount?: number | null | undefined;
|
|
1853
|
+
deferred_settlement?: boolean | null | undefined;
|
|
1854
1854
|
}>> & import("mongoose").FlatRecord<{
|
|
1855
1855
|
createdAt: NativeDate;
|
|
1856
1856
|
updatedAt: NativeDate;
|
|
@@ -2071,11 +2071,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2071
2071
|
refund_reason?: string | null | undefined;
|
|
2072
2072
|
note?: string | null | undefined;
|
|
2073
2073
|
}>;
|
|
2074
|
-
special_instructions: string;
|
|
2075
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2076
|
-
tax_number: string;
|
|
2077
|
-
amount_earned: number;
|
|
2078
|
-
grand_total: number;
|
|
2079
2074
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
2080
2075
|
updatedAt: NativeDate;
|
|
2081
2076
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -2289,10 +2284,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2289
2284
|
note?: string | null | undefined;
|
|
2290
2285
|
}>;
|
|
2291
2286
|
special_instructions: string;
|
|
2292
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2293
|
-
tax_number: string;
|
|
2294
2287
|
amount_earned: number;
|
|
2295
2288
|
grand_total: number;
|
|
2289
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2290
|
+
tax_number: string;
|
|
2296
2291
|
staff_details?: {
|
|
2297
2292
|
staff_id: string;
|
|
2298
2293
|
staff_name: string;
|
|
@@ -2515,10 +2510,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2515
2510
|
note?: string | null | undefined;
|
|
2516
2511
|
}>;
|
|
2517
2512
|
special_instructions: string;
|
|
2518
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2519
|
-
tax_number: string;
|
|
2520
2513
|
amount_earned: number;
|
|
2521
2514
|
grand_total: number;
|
|
2515
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2516
|
+
tax_number: string;
|
|
2522
2517
|
staff_details?: {
|
|
2523
2518
|
staff_id: string;
|
|
2524
2519
|
staff_name: string;
|
|
@@ -2741,10 +2736,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2741
2736
|
note?: string | null | undefined;
|
|
2742
2737
|
}>;
|
|
2743
2738
|
special_instructions: string;
|
|
2744
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2745
|
-
tax_number: string;
|
|
2746
2739
|
amount_earned: number;
|
|
2747
2740
|
grand_total: number;
|
|
2741
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2742
|
+
tax_number: string;
|
|
2748
2743
|
staff_details?: {
|
|
2749
2744
|
staff_id: string;
|
|
2750
2745
|
staff_name: string;
|
|
@@ -2766,15 +2761,20 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2766
2761
|
staff_mobile: string;
|
|
2767
2762
|
staff_email: string;
|
|
2768
2763
|
};
|
|
2764
|
+
special_instructions: string;
|
|
2765
|
+
amount_earned: number;
|
|
2766
|
+
grand_total: number;
|
|
2767
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2768
|
+
tax_number: string;
|
|
2769
2769
|
vendor_name: string;
|
|
2770
2770
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
2771
2771
|
cancel_reason?: string | null | undefined;
|
|
2772
2772
|
delete_reason?: string | null | undefined;
|
|
2773
2773
|
is_reopened?: boolean | null | undefined;
|
|
2774
|
-
deferred_settlement?: boolean | null | undefined;
|
|
2775
2774
|
is_gst_inclusive?: boolean | null | undefined;
|
|
2776
2775
|
gst?: number | null | undefined;
|
|
2777
2776
|
gst_amount?: number | null | undefined;
|
|
2777
|
+
deferred_settlement?: boolean | null | undefined;
|
|
2778
2778
|
}> & Required<{
|
|
2779
2779
|
_id: import("mongoose").Types.ObjectId;
|
|
2780
2780
|
}> & {
|