@managesome/eposmatic-toolkit 0.2.455 → 0.2.458
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/WORKER_ENDPOINTS.d.ts +1 -0
- package/lib/constants/WORKER_ENDPOINTS.js +2 -0
- package/lib/helpers/types/workers.d.ts +15 -1
- package/package.json +1 -1
- package/lib/constants/PURCHASE_ORDER.d.ts +0 -16
- package/lib/constants/PURCHASE_ORDER.js +0 -100
- package/lib/constants/RFQ.d.ts +0 -0
- package/lib/constants/RFQ.js +0 -1
- package/lib/helpers/order/generate-purchase-order-rfq.d.ts +0 -3
- package/lib/helpers/order/generate-purchase-order-rfq.js +0 -64
- package/lib/helpers/order/generate-purchase-order.d.ts +0 -11
- package/lib/helpers/order/generate-purchase-order.js +0 -196
- package/lib/helpers/store/all-purchase-orders-actions.d.ts +0 -13
- package/lib/helpers/store/all-purchase-orders-actions.js +0 -56
- package/lib/helpers/store/all-sale-orders-actions.d.ts +0 -2
- package/lib/helpers/store/all-sale-orders-actions.js +0 -8
- package/lib/helpers/store/all-warehouse-sale-orders-actions.d.ts +0 -2
- package/lib/helpers/store/all-warehouse-sale-orders-actions.js +0 -8
- package/lib/helpers/store/common-purchase-order-actions.d.ts +0 -31
- package/lib/helpers/store/common-purchase-order-actions.js +0 -543
- package/lib/helpers/store/common-sale-order-actions.d.ts +0 -5
- package/lib/helpers/store/common-sale-order-actions.js +0 -65
- package/lib/helpers/store/purchase-order-rfq-cart-actions.d.ts +0 -19
- package/lib/helpers/store/purchase-order-rfq-cart-actions.js +0 -373
- package/lib/helpers/store/purchase-orders-cart-actions.d.ts +0 -57
- package/lib/helpers/store/purchase-orders-cart-actions.js +0 -486
- package/lib/helpers/types/purchase-order-cart-actions.d.ts +0 -26
- package/lib/helpers/types/purchase-order-cart-actions.js +0 -2
- package/lib/helpers/utils/invoice-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/invoice-x-report-helpers.js +0 -1432
- package/lib/helpers/utils/purchase-order-engine.d.ts +0 -9
- package/lib/helpers/utils/purchase-order-engine.js +0 -34
- package/lib/helpers/utils/purchase-order-receipt-engine.d.ts +0 -149
- package/lib/helpers/utils/purchase-order-receipt-engine.js +0 -214
- package/lib/helpers/utils/purchase-order-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/purchase-order-x-report-helpers.js +0 -1440
- package/lib/helpers/utils/sale-order-x-report-helpers.d.ts +0 -44
- package/lib/helpers/utils/sale-order-x-report-helpers.js +0 -22
- package/lib/helpers/utils/sale-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/sale-x-report-helpers.js +0 -1456
- package/lib/helpers/utils/terminal-devices-helpers.d.ts +0 -2
- package/lib/helpers/utils/terminal-devices-helpers.js +0 -13
- package/lib/helpers/utils/void-purchase-order-items-helpers.d.ts +0 -3
- package/lib/helpers/utils/void-purchase-order-items-helpers.js +0 -38
- package/lib/helpers/utils/void-purchase-order-items-report-helpers.d.ts +0 -13
- package/lib/helpers/utils/void-purchase-order-items-report-helpers.js +0 -22
- package/lib/schemas/models/applied-order-discounts.d.ts +0 -80
- package/lib/schemas/models/applied-order-discounts.js +0 -106
- package/lib/schemas/models/brand.d.ts +0 -45
- package/lib/schemas/models/brand.js +0 -45
- package/lib/schemas/models/category.d.ts +0 -60
- package/lib/schemas/models/category.js +0 -67
- package/lib/schemas/models/dinein_table_fingerprints.d.ts +0 -65
- package/lib/schemas/models/dinein_table_fingerprints.js +0 -85
- package/lib/schemas/models/expense_category.d.ts +0 -83
- package/lib/schemas/models/expense_category.js +0 -64
- package/lib/schemas/models/internal_movements.d.ts +0 -357
- package/lib/schemas/models/internal_movements.js +0 -323
- package/lib/schemas/models/inventory.d.ts +0 -99
- package/lib/schemas/models/inventory.js +0 -87
- package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +0 -154
- package/lib/schemas/models/inventory_lot_serial_numbers.js +0 -193
- package/lib/schemas/models/item.d.ts +0 -11269
- package/lib/schemas/models/item.js +0 -333
- package/lib/schemas/models/menu.d.ts +0 -941
- package/lib/schemas/models/menu.js +0 -69
- package/lib/schemas/models/order.d.ts +0 -15437
- package/lib/schemas/models/order.js +0 -891
- package/lib/schemas/models/purchase_order_receipts.d.ts +0 -165
- package/lib/schemas/models/purchase_order_receipts.js +0 -151
- package/lib/schemas/models/purchase_order_rfq.d.ts +0 -1959
- package/lib/schemas/models/purchase_order_rfq.js +0 -328
- package/lib/schemas/models/purchase_order_rfqs.d.ts +0 -1959
- package/lib/schemas/models/purchase_order_rfqs.js +0 -328
- package/lib/schemas/models/purchase_order_vendor_returns.d.ts +0 -234
- package/lib/schemas/models/purchase_order_vendor_returns.js +0 -188
- package/lib/schemas/models/purchase_orders.d.ts +0 -2678
- package/lib/schemas/models/purchase_orders.js +0 -336
- package/lib/schemas/models/rider.d.ts +0 -65
- package/lib/schemas/models/rider.js +0 -74
- package/lib/schemas/models/sale_order_deliveries.d.ts +0 -167
- package/lib/schemas/models/sale_order_deliveries.js +0 -155
- package/lib/schemas/models/sale_order_invoices.d.ts +0 -227
- package/lib/schemas/models/sale_order_invoices.js +0 -206
- package/lib/schemas/models/sale_order_rfq.d.ts +0 -1938
- package/lib/schemas/models/sale_order_rfq.js +0 -309
- package/lib/schemas/models/sale_orders.d.ts +0 -1943
- package/lib/schemas/models/sale_orders.js +0 -324
- package/lib/schemas/models/tenant.d.ts +0 -528
- package/lib/schemas/models/tenant.js +0 -755
- package/lib/schemas/models/tenant_staff.d.ts +0 -932
- package/lib/schemas/models/tenant_staff.js +0 -96
- package/lib/schemas/models/track_order_number.d.ts +0 -413
- package/lib/schemas/models/track_order_number.js +0 -45
- package/lib/schemas/models/void_purchase_order_items.d.ts +0 -176
- package/lib/schemas/models/void_purchase_order_items.js +0 -177
- package/lib/schemas/models/void_warehouse_invoice_items.d.ts +0 -176
- package/lib/schemas/models/void_warehouse_invoice_items.js +0 -176
- package/lib/schemas/models/wallet.d.ts +0 -38
- package/lib/schemas/models/wallet.js +0 -37
- package/lib/schemas/models/warehouse-communications.d.ts +0 -228
- package/lib/schemas/models/warehouse-communications.js +0 -216
- package/lib/schemas/models/warehouse.d.ts +0 -162
- package/lib/schemas/models/warehouse.js +0 -222
- package/lib/schemas/models/warehouse_staff.d.ts +0 -65
- package/lib/schemas/models/warehouse_staff.js +0 -78
- package/lib/schemas/models/warehouse_track_order_number.d.ts +0 -50
- package/lib/schemas/models/warehouse_track_order_number.js +0 -52
- package/lib/schemas/types/applied-order-discounts.d.ts +0 -22
- package/lib/schemas/types/applied-order-discounts.js +0 -2
- package/lib/schemas/types/brand.d.ts +0 -32
- package/lib/schemas/types/brand.js +0 -2
- package/lib/schemas/types/category.d.ts +0 -15
- package/lib/schemas/types/category.js +0 -2
- package/lib/schemas/types/expense_category.d.ts +0 -20
- package/lib/schemas/types/expense_category.js +0 -2
- package/lib/schemas/types/internal_movements.d.ts +0 -73
- package/lib/schemas/types/internal_movements.js +0 -2
- package/lib/schemas/types/inventory.d.ts +0 -48
- package/lib/schemas/types/inventory.js +0 -2
- package/lib/schemas/types/inventory_lot_serial_numbers.d.ts +0 -85
- package/lib/schemas/types/inventory_lot_serial_numbers.js +0 -4
- package/lib/schemas/types/item.d.ts +0 -89
- package/lib/schemas/types/item.js +0 -2
- package/lib/schemas/types/menu.d.ts +0 -17
- package/lib/schemas/types/menu.js +0 -2
- package/lib/schemas/types/order.d.ts +0 -242
- package/lib/schemas/types/order.js +0 -2
- package/lib/schemas/types/purchase_order_common.d.ts +0 -39
- package/lib/schemas/types/purchase_order_common.js +0 -2
- package/lib/schemas/types/purchase_order_receipts.d.ts +0 -39
- package/lib/schemas/types/purchase_order_receipts.js +0 -21
- package/lib/schemas/types/purchase_order_rfq.d.ts +0 -33
- package/lib/schemas/types/purchase_order_rfq.js +0 -2
- package/lib/schemas/types/purchase_order_rfqs.d.ts +0 -33
- package/lib/schemas/types/purchase_order_rfqs.js +0 -2
- package/lib/schemas/types/purchase_order_vendor_returns.d.ts +0 -49
- package/lib/schemas/types/purchase_order_vendor_returns.js +0 -42
- package/lib/schemas/types/purchase_orders.d.ts +0 -33
- package/lib/schemas/types/purchase_orders.js +0 -2
- package/lib/schemas/types/rider.d.ts +0 -16
- package/lib/schemas/types/rider.js +0 -2
- package/lib/schemas/types/sale_order_common.d.ts +0 -39
- package/lib/schemas/types/sale_order_common.js +0 -2
- package/lib/schemas/types/sale_order_deliveries.d.ts +0 -67
- package/lib/schemas/types/sale_order_deliveries.js +0 -2
- package/lib/schemas/types/sale_order_invoices.d.ts +0 -49
- package/lib/schemas/types/sale_order_invoices.js +0 -2
- package/lib/schemas/types/sale_order_rfq.d.ts +0 -25
- package/lib/schemas/types/sale_order_rfq.js +0 -2
- package/lib/schemas/types/sale_orders.d.ts +0 -30
- package/lib/schemas/types/sale_orders.js +0 -2
- package/lib/schemas/types/tenant.d.ts +0 -205
- package/lib/schemas/types/tenant.js +0 -2
- package/lib/schemas/types/tenant_staff.d.ts +0 -22
- package/lib/schemas/types/tenant_staff.js +0 -2
- package/lib/schemas/types/track_order_number.d.ts +0 -10
- package/lib/schemas/types/track_order_number.js +0 -2
- package/lib/schemas/types/void_purchase_order_items.d.ts +0 -37
- package/lib/schemas/types/void_purchase_order_items.js +0 -2
- package/lib/schemas/types/void_warehouse_invoice_items.d.ts +0 -37
- package/lib/schemas/types/void_warehouse_invoice_items.js +0 -2
- package/lib/schemas/types/wallet.d.ts +0 -7
- package/lib/schemas/types/wallet.js +0 -2
- package/lib/schemas/types/warehouse-communications.d.ts +0 -54
- package/lib/schemas/types/warehouse-communications.js +0 -2
- package/lib/schemas/types/warehouse.d.ts +0 -49
- package/lib/schemas/types/warehouse.js +0 -2
- package/lib/schemas/types/warehouse_purchase_order_common.d.ts +0 -39
- package/lib/schemas/types/warehouse_purchase_order_common.js +0 -2
- package/lib/schemas/types/warehouse_sale_order_common.d.ts +0 -39
- package/lib/schemas/types/warehouse_sale_order_common.js +0 -2
- package/lib/schemas/types/warehouse_staff.d.ts +0 -17
- package/lib/schemas/types/warehouse_staff.js +0 -2
- package/lib/schemas/types/warehouse_track_order_number.d.ts +0 -11
- package/lib/schemas/types/warehouse_track_order_number.js +0 -2
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const ExpenseCategorySchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
|
-
timestamps: true;
|
|
4
|
-
versionKey: false;
|
|
5
|
-
minimize: false;
|
|
6
|
-
}, {
|
|
7
|
-
createdAt: NativeDate;
|
|
8
|
-
updatedAt: NativeDate;
|
|
9
|
-
} & {
|
|
10
|
-
_id: import("mongoose").Types.ObjectId;
|
|
11
|
-
name: string;
|
|
12
|
-
tenant_id: string;
|
|
13
|
-
createdAt: NativeDate;
|
|
14
|
-
updatedAt: NativeDate;
|
|
15
|
-
description: string;
|
|
16
|
-
sort_id: number;
|
|
17
|
-
sub_categories: import("mongoose").Types.DocumentArray<{
|
|
18
|
-
_id: import("mongoose").Types.ObjectId;
|
|
19
|
-
name: string;
|
|
20
|
-
sort_id: number;
|
|
21
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
22
|
-
_id: import("mongoose").Types.ObjectId;
|
|
23
|
-
name: string;
|
|
24
|
-
sort_id: number;
|
|
25
|
-
}> & {
|
|
26
|
-
_id: import("mongoose").Types.ObjectId;
|
|
27
|
-
name: string;
|
|
28
|
-
sort_id: number;
|
|
29
|
-
}>;
|
|
30
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
31
|
-
createdAt: NativeDate;
|
|
32
|
-
updatedAt: NativeDate;
|
|
33
|
-
} & {
|
|
34
|
-
_id: import("mongoose").Types.ObjectId;
|
|
35
|
-
name: string;
|
|
36
|
-
tenant_id: string;
|
|
37
|
-
createdAt: NativeDate;
|
|
38
|
-
updatedAt: NativeDate;
|
|
39
|
-
description: string;
|
|
40
|
-
sort_id: number;
|
|
41
|
-
sub_categories: import("mongoose").Types.DocumentArray<{
|
|
42
|
-
_id: import("mongoose").Types.ObjectId;
|
|
43
|
-
name: string;
|
|
44
|
-
sort_id: number;
|
|
45
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
46
|
-
_id: import("mongoose").Types.ObjectId;
|
|
47
|
-
name: string;
|
|
48
|
-
sort_id: number;
|
|
49
|
-
}> & {
|
|
50
|
-
_id: import("mongoose").Types.ObjectId;
|
|
51
|
-
name: string;
|
|
52
|
-
sort_id: number;
|
|
53
|
-
}>;
|
|
54
|
-
}>> & import("mongoose").FlatRecord<{
|
|
55
|
-
createdAt: NativeDate;
|
|
56
|
-
updatedAt: NativeDate;
|
|
57
|
-
} & {
|
|
58
|
-
_id: import("mongoose").Types.ObjectId;
|
|
59
|
-
name: string;
|
|
60
|
-
tenant_id: string;
|
|
61
|
-
createdAt: NativeDate;
|
|
62
|
-
updatedAt: NativeDate;
|
|
63
|
-
description: string;
|
|
64
|
-
sort_id: number;
|
|
65
|
-
sub_categories: import("mongoose").Types.DocumentArray<{
|
|
66
|
-
_id: import("mongoose").Types.ObjectId;
|
|
67
|
-
name: string;
|
|
68
|
-
sort_id: number;
|
|
69
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
70
|
-
_id: import("mongoose").Types.ObjectId;
|
|
71
|
-
name: string;
|
|
72
|
-
sort_id: number;
|
|
73
|
-
}> & {
|
|
74
|
-
_id: import("mongoose").Types.ObjectId;
|
|
75
|
-
name: string;
|
|
76
|
-
sort_id: number;
|
|
77
|
-
}>;
|
|
78
|
-
}> & Required<{
|
|
79
|
-
_id: import("mongoose").Types.ObjectId;
|
|
80
|
-
}> & {
|
|
81
|
-
__v: number;
|
|
82
|
-
}>;
|
|
83
|
-
export declare const EXPENSE_CATEGORIES_COLLECTION_NAME = "expense_categories";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EXPENSE_CATEGORIES_COLLECTION_NAME = exports.ExpenseCategorySchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const ExpenseSubCategorySchema = new mongoose_1.Schema({
|
|
6
|
-
_id: {
|
|
7
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
-
required: true,
|
|
9
|
-
immutable: true,
|
|
10
|
-
},
|
|
11
|
-
name: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
sort_id: {
|
|
16
|
-
type: Number,
|
|
17
|
-
required: true,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
exports.ExpenseCategorySchema = new mongoose_1.Schema({
|
|
21
|
-
_id: {
|
|
22
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
23
|
-
required: true,
|
|
24
|
-
immutable: true,
|
|
25
|
-
},
|
|
26
|
-
tenant_id: {
|
|
27
|
-
type: String,
|
|
28
|
-
required: true,
|
|
29
|
-
immutable: true,
|
|
30
|
-
ref: 'tenants',
|
|
31
|
-
},
|
|
32
|
-
name: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: true,
|
|
35
|
-
},
|
|
36
|
-
description: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: '',
|
|
39
|
-
},
|
|
40
|
-
sub_categories: {
|
|
41
|
-
type: [ExpenseSubCategorySchema],
|
|
42
|
-
default: [],
|
|
43
|
-
},
|
|
44
|
-
sort_id: {
|
|
45
|
-
type: Number,
|
|
46
|
-
required: true,
|
|
47
|
-
},
|
|
48
|
-
createdAt: {
|
|
49
|
-
type: Date,
|
|
50
|
-
required: true,
|
|
51
|
-
immutable: true,
|
|
52
|
-
default: () => new Date(),
|
|
53
|
-
},
|
|
54
|
-
updatedAt: {
|
|
55
|
-
type: Date,
|
|
56
|
-
required: true,
|
|
57
|
-
default: () => new Date(),
|
|
58
|
-
},
|
|
59
|
-
}, {
|
|
60
|
-
timestamps: true,
|
|
61
|
-
versionKey: false,
|
|
62
|
-
minimize: false,
|
|
63
|
-
});
|
|
64
|
-
exports.EXPENSE_CATEGORIES_COLLECTION_NAME = 'expense_categories';
|
|
@@ -1,357 +0,0 @@
|
|
|
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
|
-
}>;
|