@managesome/eposmatic-toolkit 0.2.530 → 0.2.532
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 +1 -0
- package/lib/helpers/store/cart-actions.js +6 -0
- package/lib/schemas/models/inventory_transactions.d.ts +3 -0
- package/lib/schemas/models/inventory_transactions.js +4 -1
- package/lib/schemas/models/tenant_inventory_department_transactions.d.ts +3 -0
- package/lib/schemas/models/tenant_inventory_department_transactions.js +4 -1
- package/lib/schemas/types/inventory_department_transactions.d.ts +1 -0
- package/lib/schemas/types/inventory_transactions.d.ts +1 -0
- package/package.json +1 -1
|
@@ -83,6 +83,7 @@ export declare function getUpdateCartInfoData(data: Partial<IOrder>, payload: Pa
|
|
|
83
83
|
export declare function getRemoveItemFromCartData(data: Partial<IOrder>, payload: {
|
|
84
84
|
_id: string;
|
|
85
85
|
void_reason?: string;
|
|
86
|
+
is_ready?: boolean;
|
|
86
87
|
}, courses: ICourse[], listnerSettings: ICartListnerSettings, appliedCustomDiscounts?: IAppliedCustomDiscount[]): Partial<IOrder>;
|
|
87
88
|
export declare function getUpdatedCartInfoOnInit(data: Partial<IOrder>, order: Partial<IOrder>, courses: ICourse[], platform: PLATFORMS_ENUM | undefined, categories: IOrderCategory[] | undefined, mappedItems: Record<string, IItem>, tenantId: string | undefined, listnerSettings: ICartListnerSettings, offers: IOffer[] | undefined): Partial<IOrder>;
|
|
88
89
|
/**
|
|
@@ -2341,6 +2341,9 @@ function getUpdateItemInCartData(data, payload, courses, listnerSettings, applie
|
|
|
2341
2341
|
...prevItem,
|
|
2342
2342
|
void_reason: payload.void_reason,
|
|
2343
2343
|
};
|
|
2344
|
+
if (payload.is_ready != null) {
|
|
2345
|
+
updatedPrevItem.is_ready = payload.is_ready;
|
|
2346
|
+
}
|
|
2344
2347
|
allPrevItems.push(updatedPrevItem);
|
|
2345
2348
|
}
|
|
2346
2349
|
else {
|
|
@@ -2468,6 +2471,9 @@ function getRemoveItemFromCartData(data, payload, courses, listnerSettings, appl
|
|
|
2468
2471
|
...prevItem,
|
|
2469
2472
|
void_reason: payload.void_reason,
|
|
2470
2473
|
};
|
|
2474
|
+
if (payload.is_ready != null) {
|
|
2475
|
+
newItem.is_ready = payload.is_ready;
|
|
2476
|
+
}
|
|
2471
2477
|
allPrevItems.push(newItem);
|
|
2472
2478
|
}
|
|
2473
2479
|
else {
|
|
@@ -25,6 +25,7 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
|
|
|
25
25
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
26
26
|
description?: string | null | undefined;
|
|
27
27
|
department_code?: string | null | undefined;
|
|
28
|
+
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
28
29
|
order_number?: number | null | undefined;
|
|
29
30
|
stock_price?: number | null | undefined;
|
|
30
31
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -50,6 +51,7 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
|
|
|
50
51
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
51
52
|
description?: string | null | undefined;
|
|
52
53
|
department_code?: string | null | undefined;
|
|
54
|
+
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
53
55
|
order_number?: number | null | undefined;
|
|
54
56
|
stock_price?: number | null | undefined;
|
|
55
57
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -75,6 +77,7 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
|
|
|
75
77
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
76
78
|
description?: string | null | undefined;
|
|
77
79
|
department_code?: string | null | undefined;
|
|
80
|
+
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
78
81
|
order_number?: number | null | undefined;
|
|
79
82
|
stock_price?: number | null | undefined;
|
|
80
83
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -63,7 +63,6 @@ exports.InventoryTransactionsSchema = new mongoose_1.Schema({
|
|
|
63
63
|
type: String,
|
|
64
64
|
required: true,
|
|
65
65
|
enum: constants_1.ALL_INVENTORY_TRANSACTION_CATEGORIES,
|
|
66
|
-
immutable: true,
|
|
67
66
|
},
|
|
68
67
|
stock_price: {
|
|
69
68
|
type: Number,
|
|
@@ -83,6 +82,10 @@ exports.InventoryTransactionsSchema = new mongoose_1.Schema({
|
|
|
83
82
|
required: false,
|
|
84
83
|
immutable: true,
|
|
85
84
|
},
|
|
85
|
+
ref_id: {
|
|
86
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
87
|
+
required: false,
|
|
88
|
+
},
|
|
86
89
|
description: {
|
|
87
90
|
type: String,
|
|
88
91
|
required: false,
|
|
@@ -25,6 +25,7 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
25
25
|
transaction_quantity: number;
|
|
26
26
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
27
27
|
description?: string | null | undefined;
|
|
28
|
+
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
28
29
|
order_number?: number | null | undefined;
|
|
29
30
|
stock_price?: number | null | undefined;
|
|
30
31
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -50,6 +51,7 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
50
51
|
transaction_quantity: number;
|
|
51
52
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
52
53
|
description?: string | null | undefined;
|
|
54
|
+
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
53
55
|
order_number?: number | null | undefined;
|
|
54
56
|
stock_price?: number | null | undefined;
|
|
55
57
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -75,6 +77,7 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
75
77
|
transaction_quantity: number;
|
|
76
78
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
77
79
|
description?: string | null | undefined;
|
|
80
|
+
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
78
81
|
order_number?: number | null | undefined;
|
|
79
82
|
stock_price?: number | null | undefined;
|
|
80
83
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -64,7 +64,6 @@ exports.TenantInventoryDepartmentTransactionsSchema = new mongoose_1.Schema({
|
|
|
64
64
|
type: String,
|
|
65
65
|
required: true,
|
|
66
66
|
enum: constants_1.ALL_INVENTORY_TRANSACTION_CATEGORIES,
|
|
67
|
-
immutable: true,
|
|
68
67
|
},
|
|
69
68
|
stock_price: {
|
|
70
69
|
type: Number,
|
|
@@ -84,6 +83,10 @@ exports.TenantInventoryDepartmentTransactionsSchema = new mongoose_1.Schema({
|
|
|
84
83
|
required: false,
|
|
85
84
|
immutable: true,
|
|
86
85
|
},
|
|
86
|
+
ref_id: {
|
|
87
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
88
|
+
required: false,
|
|
89
|
+
},
|
|
87
90
|
description: {
|
|
88
91
|
type: String,
|
|
89
92
|
required: false,
|