@managesome/eposmatic-toolkit 0.2.446 → 0.2.448
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/common-warehouse-sale-order-rfq-actions.d.ts +2 -2
- package/lib/schemas/models/warehouse_sale_orders.d.ts +13 -12
- package/lib/schemas/models/warehouse_sale_orders.js +1 -1
- package/lib/schemas/types/index.d.ts +0 -1
- package/lib/schemas/types/index.js +0 -1
- package/lib/schemas/types/warehouse_sale_order_rfqs.d.ts +33 -4
- package/lib/schemas/types/warehouse_sale_orders.d.ts +33 -4
- package/package.json +1 -1
|
@@ -24,8 +24,8 @@ interface IGetVoidItemsWithReasonSaleOrderRfq {
|
|
|
24
24
|
previousCategories: IWarehouseSaleOrderRFQCategory[];
|
|
25
25
|
}
|
|
26
26
|
export declare function getVoidItemsWithReasonWarehouseSaleOrderRfq({ currentCategories, iterationsFromFrontend, previousCategories, }: IGetVoidItemsWithReasonSaleOrderRfq): {
|
|
27
|
-
newIterationCategories:
|
|
28
|
-
voidOrderItems:
|
|
27
|
+
newIterationCategories: IWarehouseSaleOrderRFQCategory[];
|
|
28
|
+
voidOrderItems: IWarehouseSaleOrderRFQItem[];
|
|
29
29
|
hasNewItems: boolean;
|
|
30
30
|
};
|
|
31
31
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
+
import { WAREHOUSE_SALES_ORDER_STATUS_ENUM } from '../../constants';
|
|
2
3
|
export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
4
|
timestamps: true;
|
|
4
5
|
versionKey: false;
|
|
@@ -153,7 +154,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
153
154
|
price: number;
|
|
154
155
|
order_number: number;
|
|
155
156
|
special_instructions: string;
|
|
156
|
-
order_status:
|
|
157
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
157
158
|
tax_number: string;
|
|
158
159
|
amount_earned: number;
|
|
159
160
|
grand_total: number;
|
|
@@ -300,7 +301,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
300
301
|
}>;
|
|
301
302
|
price: number;
|
|
302
303
|
special_instructions: string;
|
|
303
|
-
order_status:
|
|
304
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
304
305
|
tax_number: string;
|
|
305
306
|
amount_earned: number;
|
|
306
307
|
grand_total: number;
|
|
@@ -456,7 +457,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
456
457
|
}>;
|
|
457
458
|
price: number;
|
|
458
459
|
special_instructions: string;
|
|
459
|
-
order_status:
|
|
460
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
460
461
|
tax_number: string;
|
|
461
462
|
amount_earned: number;
|
|
462
463
|
grand_total: number;
|
|
@@ -612,7 +613,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
612
613
|
}>;
|
|
613
614
|
price: number;
|
|
614
615
|
special_instructions: string;
|
|
615
|
-
order_status:
|
|
616
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
616
617
|
tax_number: string;
|
|
617
618
|
amount_earned: number;
|
|
618
619
|
grand_total: number;
|
|
@@ -797,7 +798,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
797
798
|
price: number;
|
|
798
799
|
order_number: number;
|
|
799
800
|
special_instructions: string;
|
|
800
|
-
order_status:
|
|
801
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
801
802
|
tax_number: string;
|
|
802
803
|
amount_earned: number;
|
|
803
804
|
grand_total: number;
|
|
@@ -944,7 +945,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
944
945
|
}>;
|
|
945
946
|
price: number;
|
|
946
947
|
special_instructions: string;
|
|
947
|
-
order_status:
|
|
948
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
948
949
|
tax_number: string;
|
|
949
950
|
amount_earned: number;
|
|
950
951
|
grand_total: number;
|
|
@@ -1100,7 +1101,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1100
1101
|
}>;
|
|
1101
1102
|
price: number;
|
|
1102
1103
|
special_instructions: string;
|
|
1103
|
-
order_status:
|
|
1104
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1104
1105
|
tax_number: string;
|
|
1105
1106
|
amount_earned: number;
|
|
1106
1107
|
grand_total: number;
|
|
@@ -1256,7 +1257,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1256
1257
|
}>;
|
|
1257
1258
|
price: number;
|
|
1258
1259
|
special_instructions: string;
|
|
1259
|
-
order_status:
|
|
1260
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1260
1261
|
tax_number: string;
|
|
1261
1262
|
amount_earned: number;
|
|
1262
1263
|
grand_total: number;
|
|
@@ -1441,7 +1442,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1441
1442
|
price: number;
|
|
1442
1443
|
order_number: number;
|
|
1443
1444
|
special_instructions: string;
|
|
1444
|
-
order_status:
|
|
1445
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1445
1446
|
tax_number: string;
|
|
1446
1447
|
amount_earned: number;
|
|
1447
1448
|
grand_total: number;
|
|
@@ -1588,7 +1589,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1588
1589
|
}>;
|
|
1589
1590
|
price: number;
|
|
1590
1591
|
special_instructions: string;
|
|
1591
|
-
order_status:
|
|
1592
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1592
1593
|
tax_number: string;
|
|
1593
1594
|
amount_earned: number;
|
|
1594
1595
|
grand_total: number;
|
|
@@ -1744,7 +1745,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1744
1745
|
}>;
|
|
1745
1746
|
price: number;
|
|
1746
1747
|
special_instructions: string;
|
|
1747
|
-
order_status:
|
|
1748
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1748
1749
|
tax_number: string;
|
|
1749
1750
|
amount_earned: number;
|
|
1750
1751
|
grand_total: number;
|
|
@@ -1900,7 +1901,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1900
1901
|
}>;
|
|
1901
1902
|
price: number;
|
|
1902
1903
|
special_instructions: string;
|
|
1903
|
-
order_status:
|
|
1904
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1904
1905
|
tax_number: string;
|
|
1905
1906
|
amount_earned: number;
|
|
1906
1907
|
grand_total: number;
|
|
@@ -212,7 +212,7 @@ exports.SaleOrdersSchema = new mongoose_1.Schema({
|
|
|
212
212
|
order_status: {
|
|
213
213
|
type: String,
|
|
214
214
|
enum: constants_1.ALL_WAREHOUSE_SALES_ORDER_STATUS_NAMES,
|
|
215
|
-
|
|
215
|
+
default: constants_1.WAREHOUSE_SALES_ORDER_STATUS_ENUM.DRAFT,
|
|
216
216
|
},
|
|
217
217
|
tax_number: {
|
|
218
218
|
type: String,
|
|
@@ -81,7 +81,6 @@ export * from './warehouse_purchase_order_vendor_returns';
|
|
|
81
81
|
export * from './warehouse_purchase_orders';
|
|
82
82
|
export * from './warehouse_sale_deliveries';
|
|
83
83
|
export * from './warehouse_sale_invoices';
|
|
84
|
-
export * from './warehouse_sale_order_common';
|
|
85
84
|
export * from './warehouse_sale_order_rfqs';
|
|
86
85
|
export * from './warehouse_sale_orders';
|
|
87
86
|
export * from './warehouse_staffs';
|
|
@@ -97,7 +97,6 @@ __exportStar(require("./warehouse_purchase_order_vendor_returns"), exports);
|
|
|
97
97
|
__exportStar(require("./warehouse_purchase_orders"), exports);
|
|
98
98
|
__exportStar(require("./warehouse_sale_deliveries"), exports);
|
|
99
99
|
__exportStar(require("./warehouse_sale_invoices"), exports);
|
|
100
|
-
__exportStar(require("./warehouse_sale_order_common"), exports);
|
|
101
100
|
__exportStar(require("./warehouse_sale_order_rfqs"), exports);
|
|
102
101
|
__exportStar(require("./warehouse_sale_orders"), exports);
|
|
103
102
|
__exportStar(require("./warehouse_staffs"), exports);
|
|
@@ -1,8 +1,37 @@
|
|
|
1
1
|
import { WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM } from '../../constants';
|
|
2
|
-
import {
|
|
3
|
-
export type IWarehouseSaleOrderRFQItem =
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { IStaffDetails } from './orders';
|
|
3
|
+
export type IWarehouseSaleOrderRFQItem = {
|
|
4
|
+
_id: string;
|
|
5
|
+
item_id: string;
|
|
6
|
+
is_ready?: boolean;
|
|
7
|
+
void_reason?: string | null;
|
|
8
|
+
name: string;
|
|
9
|
+
price: number;
|
|
10
|
+
subtotal: number;
|
|
11
|
+
quantity: number;
|
|
12
|
+
_net_amount: number;
|
|
13
|
+
_gross_amount: number;
|
|
14
|
+
_gst_amount: number;
|
|
15
|
+
_discount_amount: number;
|
|
16
|
+
special_instructions: string;
|
|
17
|
+
};
|
|
18
|
+
export type IWarehouseSaleOrderRFQCategory = {
|
|
19
|
+
name: string;
|
|
20
|
+
category_id: string;
|
|
21
|
+
items: IWarehouseSaleOrderRFQItem[];
|
|
22
|
+
};
|
|
23
|
+
export interface IWarehouseSaleOrderRFQIteration {
|
|
24
|
+
categories: IWarehouseSaleOrderRFQCategory[];
|
|
25
|
+
staff_details: IStaffDetails;
|
|
26
|
+
is_gst_inclusive?: boolean;
|
|
27
|
+
gst?: number | null;
|
|
28
|
+
gst_amount?: number | null;
|
|
29
|
+
special_instructions: string;
|
|
30
|
+
price: number;
|
|
31
|
+
amount_earned: number;
|
|
32
|
+
grand_total: number;
|
|
33
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
34
|
+
updatedAt: Date;
|
|
6
35
|
tax_number: string;
|
|
7
36
|
}
|
|
8
37
|
export interface IWarehouseSaleOrderRFQ extends IWarehouseSaleOrderRFQIteration {
|
|
@@ -1,8 +1,37 @@
|
|
|
1
1
|
import { WAREHOUSE_SALES_ORDER_STATUS_ENUM } from '../../constants';
|
|
2
|
-
import {
|
|
3
|
-
export type IWarehouseSaleOrderItem =
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { IStaffDetails } from './orders';
|
|
3
|
+
export type IWarehouseSaleOrderItem = {
|
|
4
|
+
_id: string;
|
|
5
|
+
item_id: string;
|
|
6
|
+
is_ready?: boolean;
|
|
7
|
+
void_reason?: string | null;
|
|
8
|
+
name: string;
|
|
9
|
+
price: number;
|
|
10
|
+
subtotal: number;
|
|
11
|
+
quantity: number;
|
|
12
|
+
_net_amount: number;
|
|
13
|
+
_gross_amount: number;
|
|
14
|
+
_gst_amount: number;
|
|
15
|
+
_discount_amount: number;
|
|
16
|
+
special_instructions: string;
|
|
17
|
+
};
|
|
18
|
+
export type IWarehouseSaleOrderCategory = {
|
|
19
|
+
name: string;
|
|
20
|
+
category_id: string;
|
|
21
|
+
items: IWarehouseSaleOrderItem[];
|
|
22
|
+
};
|
|
23
|
+
export interface IWarehouseSaleOrderIteration {
|
|
24
|
+
categories: IWarehouseSaleOrderCategory[];
|
|
25
|
+
staff_details: IStaffDetails;
|
|
26
|
+
is_gst_inclusive?: boolean;
|
|
27
|
+
gst?: number | null;
|
|
28
|
+
gst_amount?: number | null;
|
|
29
|
+
special_instructions: string;
|
|
30
|
+
price: number;
|
|
31
|
+
amount_earned: number;
|
|
32
|
+
grand_total: number;
|
|
33
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
34
|
+
updatedAt: Date;
|
|
6
35
|
tax_number: string;
|
|
7
36
|
}
|
|
8
37
|
export interface IWarehouseSaleOrder extends IWarehouseSaleOrderIteration {
|