@managesome/eposmatic-toolkit 0.2.363 → 0.2.365
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/constants/ENUMS.d.ts +221 -0
- package/lib/constants/ENUMS.js +270 -4
- package/lib/constants/PURCHASE_ORDER.js +12 -3
- package/lib/helpers/store/common-purchase-order-actions.d.ts +2 -2
- package/lib/helpers/store/purchase-orders-cart-actions.d.ts +7 -6
- package/lib/helpers/utils/common.d.ts +1 -0
- package/lib/helpers/utils/common.js +14 -1
- package/lib/helpers/utils/items-comparison-report-helpers.js +5 -7
- package/lib/schemas/models/index.d.ts +11 -0
- package/lib/schemas/models/index.js +11 -0
- package/lib/schemas/models/internal_movements.d.ts +357 -0
- package/lib/schemas/models/internal_movements.js +323 -0
- package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +154 -0
- package/lib/schemas/models/inventory_lot_serial_numbers.js +193 -0
- package/lib/schemas/models/item_transactions.d.ts +3 -3
- package/lib/schemas/models/purchase_order_receipts.d.ts +165 -0
- package/lib/schemas/models/purchase_order_receipts.js +151 -0
- package/lib/schemas/models/purchase_order_rfq.d.ts +1938 -0
- package/lib/schemas/models/purchase_order_rfq.js +309 -0
- package/lib/schemas/models/purchase_order_vendor_returns.d.ts +234 -0
- package/lib/schemas/models/purchase_order_vendor_returns.js +188 -0
- package/lib/schemas/models/purchase_orders.d.ts +6 -3
- package/lib/schemas/models/purchase_orders.js +10 -1
- package/lib/schemas/models/rewards_usage.d.ts +3 -3
- package/lib/schemas/models/rider.d.ts +3 -3
- package/lib/schemas/models/sale_order_deliveries.d.ts +167 -0
- package/lib/schemas/models/sale_order_deliveries.js +155 -0
- package/lib/schemas/models/sale_order_invoices.d.ts +218 -0
- package/lib/schemas/models/sale_order_invoices.js +192 -0
- package/lib/schemas/models/sale_order_rfq.d.ts +1938 -0
- package/lib/schemas/models/sale_order_rfq.js +309 -0
- package/lib/schemas/models/sale_orders.d.ts +1943 -0
- package/lib/schemas/models/sale_orders.js +324 -0
- package/lib/schemas/models/void_purchase_order_items.d.ts +3 -3
- package/lib/schemas/models/void_purchase_order_items.js +2 -1
- package/lib/schemas/models/void_warehouse_invoice_items.d.ts +9 -9
- package/lib/schemas/models/warehouse-activity-logs.d.ts +127 -0
- package/lib/schemas/models/warehouse-activity-logs.js +143 -0
- package/lib/schemas/models/warehouse-communications.d.ts +228 -0
- package/lib/schemas/models/warehouse-communications.js +216 -0
- package/lib/schemas/models/warehouse.d.ts +7 -1
- package/lib/schemas/models/warehouse.js +9 -0
- package/lib/schemas/models/warehouse_categories.d.ts +4 -0
- package/lib/schemas/models/warehouse_categories.js +6 -0
- package/lib/schemas/models/warehouse_clients.d.ts +6 -0
- package/lib/schemas/models/warehouse_clients.js +8 -0
- package/lib/schemas/models/warehouse_inventory_transactions.d.ts +3 -3
- package/lib/schemas/models/warehouse_invoices.d.ts +3 -3
- package/lib/schemas/models/warehouse_item_transactions.d.ts +6 -6
- package/lib/schemas/models/warehouse_items.d.ts +28 -9
- package/lib/schemas/models/warehouse_items.js +29 -0
- package/lib/schemas/models/warehouse_vendors.d.ts +3 -3
- package/lib/schemas/types/index.d.ts +13 -0
- package/lib/schemas/types/index.js +13 -0
- package/lib/schemas/types/internal_movements.d.ts +73 -0
- package/lib/schemas/types/internal_movements.js +2 -0
- package/lib/schemas/types/inventory_lot_serial_numbers.d.ts +85 -0
- package/lib/schemas/types/inventory_lot_serial_numbers.js +4 -0
- package/lib/schemas/types/purchase_order_common.d.ts +39 -0
- package/lib/schemas/types/purchase_order_common.js +2 -0
- package/lib/schemas/types/purchase_order_receipts.d.ts +39 -0
- package/lib/schemas/types/purchase_order_receipts.js +21 -0
- package/lib/schemas/types/purchase_order_rfq.d.ts +25 -0
- package/lib/schemas/types/purchase_order_rfq.js +2 -0
- package/lib/schemas/types/purchase_order_vendor_returns.d.ts +49 -0
- package/lib/schemas/types/purchase_order_vendor_returns.js +42 -0
- package/lib/schemas/types/purchase_orders.d.ts +7 -43
- package/lib/schemas/types/sale_order_common.d.ts +39 -0
- package/lib/schemas/types/sale_order_common.js +2 -0
- package/lib/schemas/types/sale_order_deliveries.d.ts +67 -0
- package/lib/schemas/types/sale_order_deliveries.js +2 -0
- package/lib/schemas/types/sale_order_invoices.d.ts +46 -0
- package/lib/schemas/types/sale_order_invoices.js +2 -0
- package/lib/schemas/types/sale_order_rfq.d.ts +25 -0
- package/lib/schemas/types/sale_order_rfq.js +2 -0
- package/lib/schemas/types/sale_orders.d.ts +30 -0
- package/lib/schemas/types/sale_orders.js +2 -0
- package/lib/schemas/types/warehouse-activity-logs.d.ts +35 -0
- package/lib/schemas/types/warehouse-activity-logs.js +4 -0
- package/lib/schemas/types/warehouse-communications.d.ts +53 -0
- package/lib/schemas/types/warehouse-communications.js +2 -0
- package/lib/schemas/types/warehouse.d.ts +3 -1
- package/lib/schemas/types/warehouse_categories.d.ts +2 -0
- package/lib/schemas/types/warehouse_clients.d.ts +2 -0
- package/lib/schemas/types/warehouse_items.d.ts +7 -1
- package/package.json +1 -1
|
@@ -24,8 +24,8 @@ interface IGetVoidItemsWithReasonPurchaseOrder {
|
|
|
24
24
|
previousCategories: IPurchaseOrderCategory[];
|
|
25
25
|
}
|
|
26
26
|
export declare function getVoidItemsWithReasonPurchaseOrder({ currentCategories, iterationsFromFrontend, previousCategories, }: IGetVoidItemsWithReasonPurchaseOrder): {
|
|
27
|
-
newIterationCategories:
|
|
28
|
-
voidOrderItems:
|
|
27
|
+
newIterationCategories: import("../../schemas").IPurchaseOrderCommonCategoryByCategoryId[];
|
|
28
|
+
voidOrderItems: import("../../schemas").IPurchaseOrderCommonItem[];
|
|
29
29
|
hasNewItems: boolean;
|
|
30
30
|
};
|
|
31
31
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PURCHASE_ORDER_STATUS_ENUM } from '../../constants';
|
|
2
|
-
import { IPurchaseOrder,
|
|
2
|
+
import { IPurchaseOrder, IPurchaseOrderItem, IPurchaseOrderIteration } from '../../schemas';
|
|
3
3
|
export declare function calculateCartPurchaseOrderInfoAndSyncData<T extends IPurchaseOrder | Partial<IPurchaseOrder>>(data: T, calculateItemMetadata?: boolean): T;
|
|
4
4
|
export declare const getPurchaseOrderItemComaparableData: (item: IPurchaseOrderItem) => Partial<IPurchaseOrderItem>;
|
|
5
5
|
export declare function getUpdatedPurchaseOrderCartInfoOnInit(data: Partial<IPurchaseOrder>, order: Partial<IPurchaseOrder>): {
|
|
@@ -7,6 +7,7 @@ export declare function getUpdatedPurchaseOrderCartInfoOnInit(data: Partial<IPur
|
|
|
7
7
|
warehouse_id?: string | undefined;
|
|
8
8
|
vendor_id?: string | undefined;
|
|
9
9
|
vendor_name?: string | undefined;
|
|
10
|
+
rfq_id?: string | null;
|
|
10
11
|
iterations?: IPurchaseOrderIteration[] | undefined;
|
|
11
12
|
amount_collected?: number | undefined;
|
|
12
13
|
order_number?: number | null | undefined;
|
|
@@ -20,18 +21,18 @@ export declare function getUpdatedPurchaseOrderCartInfoOnInit(data: Partial<IPur
|
|
|
20
21
|
order_settled_at_mins?: number | undefined;
|
|
21
22
|
createdAt_mins?: number | undefined;
|
|
22
23
|
createdAt?: Date | undefined;
|
|
23
|
-
categories?: IPurchaseOrderCategory[] | undefined;
|
|
24
24
|
payments?: import("../../schemas").IOrderPayment[] | undefined;
|
|
25
|
+
tax_number?: string | undefined;
|
|
26
|
+
categories?: import("../../schemas").IPurchaseOrderCommonCategoryByCategoryId[] | undefined;
|
|
25
27
|
staff_details?: import("../../schemas").IStaffDetails | undefined;
|
|
26
28
|
is_gst_inclusive?: boolean;
|
|
27
|
-
gst?: number;
|
|
28
|
-
gst_amount?: number;
|
|
29
|
+
gst?: number | null;
|
|
30
|
+
gst_amount?: number | null;
|
|
29
31
|
special_instructions?: string | undefined;
|
|
30
|
-
order_status?: PURCHASE_ORDER_STATUS_ENUM | undefined;
|
|
31
32
|
price?: number | undefined;
|
|
32
33
|
amount_earned?: number | undefined;
|
|
33
34
|
grand_total?: number | undefined;
|
|
34
|
-
|
|
35
|
+
order_status?: PURCHASE_ORDER_STATUS_ENUM | undefined;
|
|
35
36
|
updatedAt?: Date | undefined;
|
|
36
37
|
};
|
|
37
38
|
export declare function getRemoveItemFromPurchaseOrderCartData(data: Partial<IPurchaseOrder>, payload: {
|
|
@@ -22,6 +22,7 @@ export declare function sentenceCase(str: string): string;
|
|
|
22
22
|
export declare function parseNum(num: number, abs?: boolean): number;
|
|
23
23
|
export declare function countLeadingSpaces(inputString: string): number;
|
|
24
24
|
export declare function formatDateToDateTime(date: Date, gmtOffset: number): string;
|
|
25
|
+
export declare function formatMoneyAmount(amount: number): string;
|
|
25
26
|
export declare function localeAmount(currency: string | undefined, amount: number): string;
|
|
26
27
|
export declare const getOfflineOrderNumber: () => number;
|
|
27
28
|
export declare function sanitizeText(input: string): string;
|
|
@@ -20,6 +20,7 @@ exports.sentenceCase = sentenceCase;
|
|
|
20
20
|
exports.parseNum = parseNum;
|
|
21
21
|
exports.countLeadingSpaces = countLeadingSpaces;
|
|
22
22
|
exports.formatDateToDateTime = formatDateToDateTime;
|
|
23
|
+
exports.formatMoneyAmount = formatMoneyAmount;
|
|
23
24
|
exports.localeAmount = localeAmount;
|
|
24
25
|
exports.sanitizeText = sanitizeText;
|
|
25
26
|
exports.getGSTName = getGSTName;
|
|
@@ -182,8 +183,20 @@ function formatDateToDateTime(date, gmtOffset) {
|
|
|
182
183
|
return customFormat;
|
|
183
184
|
}
|
|
184
185
|
// ==============================>><<==============================
|
|
186
|
+
function addThousandsSeparator(value) {
|
|
187
|
+
return value.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
188
|
+
}
|
|
189
|
+
function formatMoneyAmount(amount) {
|
|
190
|
+
const rounded = parseNum(amount);
|
|
191
|
+
const fixed = Math.abs(rounded).toFixed(2);
|
|
192
|
+
const [integerPart, decimalPart = ''] = fixed.split('.');
|
|
193
|
+
const groupedInteger = addThousandsSeparator(integerPart);
|
|
194
|
+
const trimmedDecimal = decimalPart.replace(/0+$/, '');
|
|
195
|
+
const sign = rounded < 0 ? '-' : '';
|
|
196
|
+
return `${sign}${groupedInteger}${trimmedDecimal ? `.${trimmedDecimal}` : ''}`;
|
|
197
|
+
}
|
|
185
198
|
function localeAmount(currency, amount) {
|
|
186
|
-
return `${currency ?? ''}${
|
|
199
|
+
return `${currency ?? ''}${formatMoneyAmount(amount)}`;
|
|
187
200
|
}
|
|
188
201
|
let lastOfflineOrderNumber;
|
|
189
202
|
const getOfflineOrderNumber = () => {
|
|
@@ -177,11 +177,9 @@ function getItemComparisonReportHtml(props) {
|
|
|
177
177
|
: (cellData ?? 0)}`;
|
|
178
178
|
}
|
|
179
179
|
else {
|
|
180
|
-
displayValue = `${currency_symbol}${
|
|
181
|
-
cellData !== null &&
|
|
182
|
-
selectedField in cellData
|
|
180
|
+
displayValue = `${currency_symbol}${typeof cellData === 'object' && cellData !== null && selectedField in cellData
|
|
183
181
|
? cellData[selectedField] || 0
|
|
184
|
-
: 0
|
|
182
|
+
: 0} (${typeof cellData === 'object' && cellData !== null && 'count' in cellData ? cellData.count : 0})`;
|
|
185
183
|
}
|
|
186
184
|
rowHtml += `<td class="css-1itf2nwdsdsdd"><span class="css-l5zp2sfsdfsd">${displayValue}</span></td>`;
|
|
187
185
|
}
|
|
@@ -232,7 +230,7 @@ function getItemComparisonReportHtml(props) {
|
|
|
232
230
|
const count = typeof cellData === 'object' && cellData !== null && 'count' in cellData
|
|
233
231
|
? cellData.count
|
|
234
232
|
: 0;
|
|
235
|
-
displayValue = `${currency_symbol}${
|
|
233
|
+
displayValue = `${currency_symbol}${(0, common_1.formatMoneyAmount)(amount)} (${count})`;
|
|
236
234
|
}
|
|
237
235
|
rowHtml += `<td class="css-1itf2nwdsdsdd"><span class="css-l5zp2sfsdfsd">${displayValue}</span></td>`;
|
|
238
236
|
}
|
|
@@ -842,7 +840,7 @@ function getItemComparisonReportReceiptHtml(props) {
|
|
|
842
840
|
const count = typeof cellData === 'object' && cellData !== null && 'count' in cellData
|
|
843
841
|
? cellData.count
|
|
844
842
|
: 0;
|
|
845
|
-
displayValue = `${
|
|
843
|
+
displayValue = `${(0, common_1.formatMoneyAmount)(amount)} (${count})`;
|
|
846
844
|
}
|
|
847
845
|
content += `
|
|
848
846
|
<div class="receipt-item-row">
|
|
@@ -890,7 +888,7 @@ function getItemComparisonReportReceiptHtml(props) {
|
|
|
890
888
|
const count = typeof cellData === 'object' && cellData !== null && 'count' in cellData
|
|
891
889
|
? cellData.count
|
|
892
890
|
: 0;
|
|
893
|
-
displayValue = `${
|
|
891
|
+
displayValue = `${(0, common_1.formatMoneyAmount)(amount)} (${count})`;
|
|
894
892
|
}
|
|
895
893
|
content += `
|
|
896
894
|
<div class="receipt-item-row">
|
|
@@ -23,8 +23,10 @@ export * from './halfhalf_setup';
|
|
|
23
23
|
export * from './instore_shift_sessions';
|
|
24
24
|
export * from './instore_shifts';
|
|
25
25
|
export * from './internal_leads';
|
|
26
|
+
export * from './internal_movements';
|
|
26
27
|
export * from './inventory';
|
|
27
28
|
export * from './inventory_categories';
|
|
29
|
+
export * from './inventory_lot_serial_numbers';
|
|
28
30
|
export * from './inventory_transactions';
|
|
29
31
|
export * from './item';
|
|
30
32
|
export * from './item_transactions';
|
|
@@ -38,11 +40,18 @@ export * from './operational_roles';
|
|
|
38
40
|
export * from './order';
|
|
39
41
|
export * from './printer_settings';
|
|
40
42
|
export * from './public_holidays';
|
|
43
|
+
export * from './purchase_order_receipts';
|
|
44
|
+
export * from './purchase_order_rfq';
|
|
45
|
+
export * from './purchase_order_vendor_returns';
|
|
41
46
|
export * from './purchase_orders';
|
|
42
47
|
export * from './reservations';
|
|
43
48
|
export * from './reviews';
|
|
44
49
|
export * from './rewards_usage';
|
|
45
50
|
export * from './rider';
|
|
51
|
+
export * from './sale_order_deliveries';
|
|
52
|
+
export * from './sale_order_invoices';
|
|
53
|
+
export * from './sale_order_rfq';
|
|
54
|
+
export * from './sale_orders';
|
|
46
55
|
export * from './specials';
|
|
47
56
|
export * from './staff_shifts';
|
|
48
57
|
export * from './tenant';
|
|
@@ -60,6 +69,8 @@ export * from './vouchers';
|
|
|
60
69
|
export * from './wallet';
|
|
61
70
|
export * from './wallet_transactions';
|
|
62
71
|
export * from './warehouse';
|
|
72
|
+
export * from './warehouse-activity-logs';
|
|
73
|
+
export * from './warehouse-communications';
|
|
63
74
|
export * from './warehouse_categories';
|
|
64
75
|
export * from './warehouse_clients';
|
|
65
76
|
export * from './warehouse_inventory_transactions';
|
|
@@ -39,8 +39,10 @@ __exportStar(require("./halfhalf_setup"), exports);
|
|
|
39
39
|
__exportStar(require("./instore_shift_sessions"), exports);
|
|
40
40
|
__exportStar(require("./instore_shifts"), exports);
|
|
41
41
|
__exportStar(require("./internal_leads"), exports);
|
|
42
|
+
__exportStar(require("./internal_movements"), exports);
|
|
42
43
|
__exportStar(require("./inventory"), exports);
|
|
43
44
|
__exportStar(require("./inventory_categories"), exports);
|
|
45
|
+
__exportStar(require("./inventory_lot_serial_numbers"), exports);
|
|
44
46
|
__exportStar(require("./inventory_transactions"), exports);
|
|
45
47
|
__exportStar(require("./item"), exports);
|
|
46
48
|
__exportStar(require("./item_transactions"), exports);
|
|
@@ -54,11 +56,18 @@ __exportStar(require("./operational_roles"), exports);
|
|
|
54
56
|
__exportStar(require("./order"), exports);
|
|
55
57
|
__exportStar(require("./printer_settings"), exports);
|
|
56
58
|
__exportStar(require("./public_holidays"), exports);
|
|
59
|
+
__exportStar(require("./purchase_order_receipts"), exports);
|
|
60
|
+
__exportStar(require("./purchase_order_rfq"), exports);
|
|
61
|
+
__exportStar(require("./purchase_order_vendor_returns"), exports);
|
|
57
62
|
__exportStar(require("./purchase_orders"), exports);
|
|
58
63
|
__exportStar(require("./reservations"), exports);
|
|
59
64
|
__exportStar(require("./reviews"), exports);
|
|
60
65
|
__exportStar(require("./rewards_usage"), exports);
|
|
61
66
|
__exportStar(require("./rider"), exports);
|
|
67
|
+
__exportStar(require("./sale_order_deliveries"), exports);
|
|
68
|
+
__exportStar(require("./sale_order_invoices"), exports);
|
|
69
|
+
__exportStar(require("./sale_order_rfq"), exports);
|
|
70
|
+
__exportStar(require("./sale_orders"), exports);
|
|
62
71
|
__exportStar(require("./specials"), exports);
|
|
63
72
|
__exportStar(require("./staff_shifts"), exports);
|
|
64
73
|
__exportStar(require("./tenant"), exports);
|
|
@@ -76,6 +85,8 @@ __exportStar(require("./vouchers"), exports);
|
|
|
76
85
|
__exportStar(require("./wallet"), exports);
|
|
77
86
|
__exportStar(require("./wallet_transactions"), exports);
|
|
78
87
|
__exportStar(require("./warehouse"), exports);
|
|
88
|
+
__exportStar(require("./warehouse-activity-logs"), exports);
|
|
89
|
+
__exportStar(require("./warehouse-communications"), exports);
|
|
79
90
|
__exportStar(require("./warehouse_categories"), exports);
|
|
80
91
|
__exportStar(require("./warehouse_clients"), exports);
|
|
81
92
|
__exportStar(require("./warehouse_inventory_transactions"), exports);
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
import { INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM } from '../../constants';
|
|
3
|
+
export declare const WAREHOUSE_INTERNAL_MOVEMENTS_COLLECTION_NAME = "warehouse_internal_movements";
|
|
4
|
+
export declare const InternalMovementsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
5
|
+
timestamps: true;
|
|
6
|
+
versionKey: false;
|
|
7
|
+
minimize: false;
|
|
8
|
+
}, {
|
|
9
|
+
createdAt: NativeDate;
|
|
10
|
+
updatedAt: NativeDate;
|
|
11
|
+
} & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
createdAt: NativeDate;
|
|
14
|
+
updatedAt: NativeDate;
|
|
15
|
+
items: import("mongoose").Types.DocumentArray<{
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
inventory_code: string;
|
|
18
|
+
quantity: number;
|
|
19
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
20
|
+
item_name: string;
|
|
21
|
+
received_qty: number;
|
|
22
|
+
notes?: string | null | undefined;
|
|
23
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
24
|
+
_id: import("mongoose").Types.ObjectId;
|
|
25
|
+
inventory_code: string;
|
|
26
|
+
quantity: number;
|
|
27
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
28
|
+
item_name: string;
|
|
29
|
+
received_qty: number;
|
|
30
|
+
notes?: string | null | undefined;
|
|
31
|
+
}> & {
|
|
32
|
+
_id: import("mongoose").Types.ObjectId;
|
|
33
|
+
inventory_code: string;
|
|
34
|
+
quantity: number;
|
|
35
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
36
|
+
item_name: string;
|
|
37
|
+
received_qty: number;
|
|
38
|
+
notes?: string | null | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
status: import("../../constants").INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
41
|
+
ref_id: string;
|
|
42
|
+
is_deleted: boolean;
|
|
43
|
+
ref_type: import("../../constants").REF_TYPE_ENUM;
|
|
44
|
+
doc_number: string;
|
|
45
|
+
record_type: import("../../constants").INTERNAL_MOVEMENT_RECORD_TYPE_ENUM;
|
|
46
|
+
flow: import("../../constants").INTERNAL_MOVEMENT_FLOW_ENUM;
|
|
47
|
+
source_id: string;
|
|
48
|
+
source_type: import("../../constants").INTERNAL_MOVEMENT_LOCATION_TYPE_ENUM;
|
|
49
|
+
source_name: string;
|
|
50
|
+
destination_id: string;
|
|
51
|
+
destination_type: import("../../constants").INTERNAL_MOVEMENT_LOCATION_TYPE_ENUM;
|
|
52
|
+
destination_name: string;
|
|
53
|
+
total_items: number;
|
|
54
|
+
total_quantity: number;
|
|
55
|
+
created_by: {
|
|
56
|
+
name: string;
|
|
57
|
+
uid: string;
|
|
58
|
+
};
|
|
59
|
+
edit_request_status: INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM;
|
|
60
|
+
cancel_request_status: INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM;
|
|
61
|
+
parent_movement_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
62
|
+
notes?: string | null | undefined;
|
|
63
|
+
updated_by?: {
|
|
64
|
+
name: string;
|
|
65
|
+
uid: string;
|
|
66
|
+
} | null | undefined;
|
|
67
|
+
cancelled_reason?: string | null | undefined;
|
|
68
|
+
requested_at?: NativeDate | null | undefined;
|
|
69
|
+
approved_at?: NativeDate | null | undefined;
|
|
70
|
+
dispatched_at?: NativeDate | null | undefined;
|
|
71
|
+
delivered_at?: NativeDate | null | undefined;
|
|
72
|
+
received_at?: NativeDate | null | undefined;
|
|
73
|
+
cancelled_at?: NativeDate | null | undefined;
|
|
74
|
+
requested_by?: {
|
|
75
|
+
name: string;
|
|
76
|
+
uid: string;
|
|
77
|
+
} | null | undefined;
|
|
78
|
+
approved_by?: {
|
|
79
|
+
name: string;
|
|
80
|
+
uid: string;
|
|
81
|
+
} | null | undefined;
|
|
82
|
+
dispatched_by?: {
|
|
83
|
+
name: string;
|
|
84
|
+
uid: string;
|
|
85
|
+
} | null | undefined;
|
|
86
|
+
delivered_by?: {
|
|
87
|
+
name: string;
|
|
88
|
+
uid: string;
|
|
89
|
+
} | null | undefined;
|
|
90
|
+
received_by?: {
|
|
91
|
+
name: string;
|
|
92
|
+
uid: string;
|
|
93
|
+
} | null | undefined;
|
|
94
|
+
cancelled_by?: {
|
|
95
|
+
name: string;
|
|
96
|
+
uid: string;
|
|
97
|
+
} | null | undefined;
|
|
98
|
+
edit_requested_at?: NativeDate | null | undefined;
|
|
99
|
+
edit_requested_by?: {
|
|
100
|
+
name: string;
|
|
101
|
+
uid: string;
|
|
102
|
+
} | null | undefined;
|
|
103
|
+
edit_request_note?: string | null | undefined;
|
|
104
|
+
edit_request_reviewed_at?: NativeDate | null | undefined;
|
|
105
|
+
edit_request_reviewed_by?: {
|
|
106
|
+
name: string;
|
|
107
|
+
uid: string;
|
|
108
|
+
} | null | undefined;
|
|
109
|
+
edit_request_decision_note?: string | null | undefined;
|
|
110
|
+
edit_approved_for_context_id?: string | null | undefined;
|
|
111
|
+
cancel_requested_at?: NativeDate | null | undefined;
|
|
112
|
+
cancel_requested_by?: {
|
|
113
|
+
name: string;
|
|
114
|
+
uid: string;
|
|
115
|
+
} | null | undefined;
|
|
116
|
+
cancel_request_note?: string | null | undefined;
|
|
117
|
+
cancel_request_reviewed_at?: NativeDate | null | undefined;
|
|
118
|
+
cancel_request_reviewed_by?: {
|
|
119
|
+
name: string;
|
|
120
|
+
uid: string;
|
|
121
|
+
} | null | undefined;
|
|
122
|
+
cancel_request_decision_note?: string | null | undefined;
|
|
123
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
124
|
+
createdAt: NativeDate;
|
|
125
|
+
updatedAt: NativeDate;
|
|
126
|
+
} & {
|
|
127
|
+
_id: import("mongoose").Types.ObjectId;
|
|
128
|
+
createdAt: NativeDate;
|
|
129
|
+
updatedAt: NativeDate;
|
|
130
|
+
items: import("mongoose").Types.DocumentArray<{
|
|
131
|
+
_id: import("mongoose").Types.ObjectId;
|
|
132
|
+
inventory_code: string;
|
|
133
|
+
quantity: number;
|
|
134
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
135
|
+
item_name: string;
|
|
136
|
+
received_qty: number;
|
|
137
|
+
notes?: string | null | undefined;
|
|
138
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
139
|
+
_id: import("mongoose").Types.ObjectId;
|
|
140
|
+
inventory_code: string;
|
|
141
|
+
quantity: number;
|
|
142
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
143
|
+
item_name: string;
|
|
144
|
+
received_qty: number;
|
|
145
|
+
notes?: string | null | undefined;
|
|
146
|
+
}> & {
|
|
147
|
+
_id: import("mongoose").Types.ObjectId;
|
|
148
|
+
inventory_code: string;
|
|
149
|
+
quantity: number;
|
|
150
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
151
|
+
item_name: string;
|
|
152
|
+
received_qty: number;
|
|
153
|
+
notes?: string | null | undefined;
|
|
154
|
+
}>;
|
|
155
|
+
status: import("../../constants").INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
156
|
+
ref_id: string;
|
|
157
|
+
is_deleted: boolean;
|
|
158
|
+
ref_type: import("../../constants").REF_TYPE_ENUM;
|
|
159
|
+
doc_number: string;
|
|
160
|
+
record_type: import("../../constants").INTERNAL_MOVEMENT_RECORD_TYPE_ENUM;
|
|
161
|
+
flow: import("../../constants").INTERNAL_MOVEMENT_FLOW_ENUM;
|
|
162
|
+
source_id: string;
|
|
163
|
+
source_type: import("../../constants").INTERNAL_MOVEMENT_LOCATION_TYPE_ENUM;
|
|
164
|
+
source_name: string;
|
|
165
|
+
destination_id: string;
|
|
166
|
+
destination_type: import("../../constants").INTERNAL_MOVEMENT_LOCATION_TYPE_ENUM;
|
|
167
|
+
destination_name: string;
|
|
168
|
+
total_items: number;
|
|
169
|
+
total_quantity: number;
|
|
170
|
+
created_by: {
|
|
171
|
+
name: string;
|
|
172
|
+
uid: string;
|
|
173
|
+
};
|
|
174
|
+
edit_request_status: INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM;
|
|
175
|
+
cancel_request_status: INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM;
|
|
176
|
+
parent_movement_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
177
|
+
notes?: string | null | undefined;
|
|
178
|
+
updated_by?: {
|
|
179
|
+
name: string;
|
|
180
|
+
uid: string;
|
|
181
|
+
} | null | undefined;
|
|
182
|
+
cancelled_reason?: string | null | undefined;
|
|
183
|
+
requested_at?: NativeDate | null | undefined;
|
|
184
|
+
approved_at?: NativeDate | null | undefined;
|
|
185
|
+
dispatched_at?: NativeDate | null | undefined;
|
|
186
|
+
delivered_at?: NativeDate | null | undefined;
|
|
187
|
+
received_at?: NativeDate | null | undefined;
|
|
188
|
+
cancelled_at?: NativeDate | null | undefined;
|
|
189
|
+
requested_by?: {
|
|
190
|
+
name: string;
|
|
191
|
+
uid: string;
|
|
192
|
+
} | null | undefined;
|
|
193
|
+
approved_by?: {
|
|
194
|
+
name: string;
|
|
195
|
+
uid: string;
|
|
196
|
+
} | null | undefined;
|
|
197
|
+
dispatched_by?: {
|
|
198
|
+
name: string;
|
|
199
|
+
uid: string;
|
|
200
|
+
} | null | undefined;
|
|
201
|
+
delivered_by?: {
|
|
202
|
+
name: string;
|
|
203
|
+
uid: string;
|
|
204
|
+
} | null | undefined;
|
|
205
|
+
received_by?: {
|
|
206
|
+
name: string;
|
|
207
|
+
uid: string;
|
|
208
|
+
} | null | undefined;
|
|
209
|
+
cancelled_by?: {
|
|
210
|
+
name: string;
|
|
211
|
+
uid: string;
|
|
212
|
+
} | null | undefined;
|
|
213
|
+
edit_requested_at?: NativeDate | null | undefined;
|
|
214
|
+
edit_requested_by?: {
|
|
215
|
+
name: string;
|
|
216
|
+
uid: string;
|
|
217
|
+
} | null | undefined;
|
|
218
|
+
edit_request_note?: string | null | undefined;
|
|
219
|
+
edit_request_reviewed_at?: NativeDate | null | undefined;
|
|
220
|
+
edit_request_reviewed_by?: {
|
|
221
|
+
name: string;
|
|
222
|
+
uid: string;
|
|
223
|
+
} | null | undefined;
|
|
224
|
+
edit_request_decision_note?: string | null | undefined;
|
|
225
|
+
edit_approved_for_context_id?: string | null | undefined;
|
|
226
|
+
cancel_requested_at?: NativeDate | null | undefined;
|
|
227
|
+
cancel_requested_by?: {
|
|
228
|
+
name: string;
|
|
229
|
+
uid: string;
|
|
230
|
+
} | null | undefined;
|
|
231
|
+
cancel_request_note?: string | null | undefined;
|
|
232
|
+
cancel_request_reviewed_at?: NativeDate | null | undefined;
|
|
233
|
+
cancel_request_reviewed_by?: {
|
|
234
|
+
name: string;
|
|
235
|
+
uid: string;
|
|
236
|
+
} | null | undefined;
|
|
237
|
+
cancel_request_decision_note?: string | null | undefined;
|
|
238
|
+
}>> & import("mongoose").FlatRecord<{
|
|
239
|
+
createdAt: NativeDate;
|
|
240
|
+
updatedAt: NativeDate;
|
|
241
|
+
} & {
|
|
242
|
+
_id: import("mongoose").Types.ObjectId;
|
|
243
|
+
createdAt: NativeDate;
|
|
244
|
+
updatedAt: NativeDate;
|
|
245
|
+
items: import("mongoose").Types.DocumentArray<{
|
|
246
|
+
_id: import("mongoose").Types.ObjectId;
|
|
247
|
+
inventory_code: string;
|
|
248
|
+
quantity: number;
|
|
249
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
250
|
+
item_name: string;
|
|
251
|
+
received_qty: number;
|
|
252
|
+
notes?: string | null | undefined;
|
|
253
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
254
|
+
_id: import("mongoose").Types.ObjectId;
|
|
255
|
+
inventory_code: string;
|
|
256
|
+
quantity: number;
|
|
257
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
258
|
+
item_name: string;
|
|
259
|
+
received_qty: number;
|
|
260
|
+
notes?: string | null | undefined;
|
|
261
|
+
}> & {
|
|
262
|
+
_id: import("mongoose").Types.ObjectId;
|
|
263
|
+
inventory_code: string;
|
|
264
|
+
quantity: number;
|
|
265
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
266
|
+
item_name: string;
|
|
267
|
+
received_qty: number;
|
|
268
|
+
notes?: string | null | undefined;
|
|
269
|
+
}>;
|
|
270
|
+
status: import("../../constants").INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
271
|
+
ref_id: string;
|
|
272
|
+
is_deleted: boolean;
|
|
273
|
+
ref_type: import("../../constants").REF_TYPE_ENUM;
|
|
274
|
+
doc_number: string;
|
|
275
|
+
record_type: import("../../constants").INTERNAL_MOVEMENT_RECORD_TYPE_ENUM;
|
|
276
|
+
flow: import("../../constants").INTERNAL_MOVEMENT_FLOW_ENUM;
|
|
277
|
+
source_id: string;
|
|
278
|
+
source_type: import("../../constants").INTERNAL_MOVEMENT_LOCATION_TYPE_ENUM;
|
|
279
|
+
source_name: string;
|
|
280
|
+
destination_id: string;
|
|
281
|
+
destination_type: import("../../constants").INTERNAL_MOVEMENT_LOCATION_TYPE_ENUM;
|
|
282
|
+
destination_name: string;
|
|
283
|
+
total_items: number;
|
|
284
|
+
total_quantity: number;
|
|
285
|
+
created_by: {
|
|
286
|
+
name: string;
|
|
287
|
+
uid: string;
|
|
288
|
+
};
|
|
289
|
+
edit_request_status: INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM;
|
|
290
|
+
cancel_request_status: INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM;
|
|
291
|
+
parent_movement_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
292
|
+
notes?: string | null | undefined;
|
|
293
|
+
updated_by?: {
|
|
294
|
+
name: string;
|
|
295
|
+
uid: string;
|
|
296
|
+
} | null | undefined;
|
|
297
|
+
cancelled_reason?: string | null | undefined;
|
|
298
|
+
requested_at?: NativeDate | null | undefined;
|
|
299
|
+
approved_at?: NativeDate | null | undefined;
|
|
300
|
+
dispatched_at?: NativeDate | null | undefined;
|
|
301
|
+
delivered_at?: NativeDate | null | undefined;
|
|
302
|
+
received_at?: NativeDate | null | undefined;
|
|
303
|
+
cancelled_at?: NativeDate | null | undefined;
|
|
304
|
+
requested_by?: {
|
|
305
|
+
name: string;
|
|
306
|
+
uid: string;
|
|
307
|
+
} | null | undefined;
|
|
308
|
+
approved_by?: {
|
|
309
|
+
name: string;
|
|
310
|
+
uid: string;
|
|
311
|
+
} | null | undefined;
|
|
312
|
+
dispatched_by?: {
|
|
313
|
+
name: string;
|
|
314
|
+
uid: string;
|
|
315
|
+
} | null | undefined;
|
|
316
|
+
delivered_by?: {
|
|
317
|
+
name: string;
|
|
318
|
+
uid: string;
|
|
319
|
+
} | null | undefined;
|
|
320
|
+
received_by?: {
|
|
321
|
+
name: string;
|
|
322
|
+
uid: string;
|
|
323
|
+
} | null | undefined;
|
|
324
|
+
cancelled_by?: {
|
|
325
|
+
name: string;
|
|
326
|
+
uid: string;
|
|
327
|
+
} | null | undefined;
|
|
328
|
+
edit_requested_at?: NativeDate | null | undefined;
|
|
329
|
+
edit_requested_by?: {
|
|
330
|
+
name: string;
|
|
331
|
+
uid: string;
|
|
332
|
+
} | null | undefined;
|
|
333
|
+
edit_request_note?: string | null | undefined;
|
|
334
|
+
edit_request_reviewed_at?: NativeDate | null | undefined;
|
|
335
|
+
edit_request_reviewed_by?: {
|
|
336
|
+
name: string;
|
|
337
|
+
uid: string;
|
|
338
|
+
} | null | undefined;
|
|
339
|
+
edit_request_decision_note?: string | null | undefined;
|
|
340
|
+
edit_approved_for_context_id?: string | null | undefined;
|
|
341
|
+
cancel_requested_at?: NativeDate | null | undefined;
|
|
342
|
+
cancel_requested_by?: {
|
|
343
|
+
name: string;
|
|
344
|
+
uid: string;
|
|
345
|
+
} | null | undefined;
|
|
346
|
+
cancel_request_note?: string | null | undefined;
|
|
347
|
+
cancel_request_reviewed_at?: NativeDate | null | undefined;
|
|
348
|
+
cancel_request_reviewed_by?: {
|
|
349
|
+
name: string;
|
|
350
|
+
uid: string;
|
|
351
|
+
} | null | undefined;
|
|
352
|
+
cancel_request_decision_note?: string | null | undefined;
|
|
353
|
+
}> & Required<{
|
|
354
|
+
_id: import("mongoose").Types.ObjectId;
|
|
355
|
+
}> & {
|
|
356
|
+
__v: number;
|
|
357
|
+
}>;
|