@managesome/eposmatic-toolkit 0.2.437 → 0.2.439

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.
@@ -24,8 +24,8 @@ interface IGetVoidItemsWithReasonPurchaseOrder {
24
24
  previousCategories: IWarehousePurchaseOrderCategory[];
25
25
  }
26
26
  export declare function getVoidItemsWithReasonWarehousePurchaseOrder({ currentCategories, iterationsFromFrontend, previousCategories, }: IGetVoidItemsWithReasonPurchaseOrder): {
27
- newIterationCategories: import("../../schemas").IWarehousePurchaseOrderCommonCategoryByCategoryId[];
28
- voidOrderItems: import("../../schemas").IWarehousePurchaseOrderCommonItem[];
27
+ newIterationCategories: IWarehousePurchaseOrderCategory[];
28
+ voidOrderItems: IWarehousePurchaseOrderItem[];
29
29
  hasNewItems: boolean;
30
30
  };
31
31
  export {};
@@ -1,5 +1,5 @@
1
1
  import { WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM } from '../../constants';
2
- import { IWarehousePurchaseOrder, IWarehousePurchaseOrderItem, IWarehousePurchaseOrderIteration } from '../../schemas';
2
+ import { IWarehousePurchaseOrder, IWarehousePurchaseOrderCategory, IWarehousePurchaseOrderItem, IWarehousePurchaseOrderIteration } from '../../schemas';
3
3
  export declare function calculateCartWarehousePurchaseOrderInfoAndSyncData<T extends IWarehousePurchaseOrder | Partial<IWarehousePurchaseOrder>>(data: T, calculateItemMetadata?: boolean): T;
4
4
  export declare const getWarehousePurchaseOrderItemComaparableData: (item: IWarehousePurchaseOrderItem) => Partial<IWarehousePurchaseOrderItem>;
5
5
  export declare function getUpdatedWarehousePurchaseOrderCartInfoOnInit(data: Partial<IWarehousePurchaseOrder>, order: Partial<IWarehousePurchaseOrder>): {
@@ -21,9 +21,7 @@ export declare function getUpdatedWarehousePurchaseOrderCartInfoOnInit(data: Par
21
21
  order_settled_at_mins?: number | undefined;
22
22
  createdAt_mins?: number | undefined;
23
23
  createdAt?: Date | undefined;
24
- payments?: import("../../schemas").IOrderPayment[] | undefined;
25
- tax_number?: string | undefined;
26
- categories?: import("../../schemas").IWarehousePurchaseOrderCommonCategoryByCategoryId[] | undefined;
24
+ categories?: IWarehousePurchaseOrderCategory[] | undefined;
27
25
  staff_details?: import("../../schemas").IStaffDetails | undefined;
28
26
  is_gst_inclusive?: boolean;
29
27
  gst?: number | null;
@@ -34,6 +32,8 @@ export declare function getUpdatedWarehousePurchaseOrderCartInfoOnInit(data: Par
34
32
  grand_total?: number | undefined;
35
33
  order_status?: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM | undefined;
36
34
  updatedAt?: Date | undefined;
35
+ payments?: import("../../schemas").IOrderPayment[] | undefined;
36
+ tax_number?: string | undefined;
37
37
  };
38
38
  export declare function getRemoveItemFromWarehousePurchaseOrderCartData(data: Partial<IWarehousePurchaseOrder>, payload: {
39
39
  _id: string;
@@ -50,6 +50,7 @@ export * from './tenant_days';
50
50
  export * from './tenant_metadata';
51
51
  export * from './tenant_shifts';
52
52
  export * from './tenant_staffs';
53
+ export * from './tenant_vendors';
53
54
  export * from './tenants';
54
55
  export * from './terminal_devices';
55
56
  export * from './tokens';
@@ -66,6 +66,7 @@ __exportStar(require("./tenant_days"), exports);
66
66
  __exportStar(require("./tenant_metadata"), exports);
67
67
  __exportStar(require("./tenant_shifts"), exports);
68
68
  __exportStar(require("./tenant_staffs"), exports);
69
+ __exportStar(require("./tenant_vendors"), exports);
69
70
  __exportStar(require("./tenants"), exports);
70
71
  __exportStar(require("./terminal_devices"), exports);
71
72
  __exportStar(require("./tokens"), exports);
@@ -0,0 +1,89 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const TenantVendorsSchema: 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
+ subtitle: string;
16
+ active: boolean;
17
+ sort_id: number;
18
+ included_categories: import("mongoose").Types.DocumentArray<{
19
+ category_id: import("mongoose").Types.ObjectId;
20
+ excluded_items: import("mongoose").Types.ObjectId[];
21
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
22
+ category_id: import("mongoose").Types.ObjectId;
23
+ excluded_items: import("mongoose").Types.ObjectId[];
24
+ }> & {
25
+ category_id: import("mongoose").Types.ObjectId;
26
+ excluded_items: import("mongoose").Types.ObjectId[];
27
+ }>;
28
+ phone_number: string;
29
+ uid: string;
30
+ email: string;
31
+ tax_business_number: string;
32
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
33
+ createdAt: NativeDate;
34
+ updatedAt: NativeDate;
35
+ } & {
36
+ _id: import("mongoose").Types.ObjectId;
37
+ name: string;
38
+ tenant_id: string;
39
+ createdAt: NativeDate;
40
+ updatedAt: NativeDate;
41
+ subtitle: string;
42
+ active: boolean;
43
+ sort_id: number;
44
+ included_categories: import("mongoose").Types.DocumentArray<{
45
+ category_id: import("mongoose").Types.ObjectId;
46
+ excluded_items: import("mongoose").Types.ObjectId[];
47
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
48
+ category_id: import("mongoose").Types.ObjectId;
49
+ excluded_items: import("mongoose").Types.ObjectId[];
50
+ }> & {
51
+ category_id: import("mongoose").Types.ObjectId;
52
+ excluded_items: import("mongoose").Types.ObjectId[];
53
+ }>;
54
+ phone_number: string;
55
+ uid: string;
56
+ email: string;
57
+ tax_business_number: string;
58
+ }>> & import("mongoose").FlatRecord<{
59
+ createdAt: NativeDate;
60
+ updatedAt: NativeDate;
61
+ } & {
62
+ _id: import("mongoose").Types.ObjectId;
63
+ name: string;
64
+ tenant_id: string;
65
+ createdAt: NativeDate;
66
+ updatedAt: NativeDate;
67
+ subtitle: string;
68
+ active: boolean;
69
+ sort_id: number;
70
+ included_categories: import("mongoose").Types.DocumentArray<{
71
+ category_id: import("mongoose").Types.ObjectId;
72
+ excluded_items: import("mongoose").Types.ObjectId[];
73
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
74
+ category_id: import("mongoose").Types.ObjectId;
75
+ excluded_items: import("mongoose").Types.ObjectId[];
76
+ }> & {
77
+ category_id: import("mongoose").Types.ObjectId;
78
+ excluded_items: import("mongoose").Types.ObjectId[];
79
+ }>;
80
+ phone_number: string;
81
+ uid: string;
82
+ email: string;
83
+ tax_business_number: string;
84
+ }> & Required<{
85
+ _id: import("mongoose").Types.ObjectId;
86
+ }> & {
87
+ __v: number;
88
+ }>;
89
+ export declare const VENDORS_COLLECTION_NAME = "tenant_vendors";
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VENDORS_COLLECTION_NAME = exports.TenantVendorsSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const common_models_1 = require("./common-models");
6
+ exports.TenantVendorsSchema = new mongoose_1.Schema({
7
+ _id: {
8
+ type: mongoose_1.Schema.Types.ObjectId,
9
+ required: true,
10
+ immutable: true,
11
+ },
12
+ tenant_id: {
13
+ type: String,
14
+ required: true,
15
+ immutable: true,
16
+ ref: 'tenants',
17
+ },
18
+ uid: {
19
+ type: String,
20
+ required: true,
21
+ immutable: true,
22
+ },
23
+ phone_number: {
24
+ type: String,
25
+ required: true,
26
+ minlength: 10,
27
+ immutable: true,
28
+ },
29
+ email: {
30
+ type: String,
31
+ default: null,
32
+ },
33
+ name: {
34
+ type: String,
35
+ required: true,
36
+ },
37
+ subtitle: {
38
+ type: String,
39
+ required: true,
40
+ },
41
+ sort_id: {
42
+ type: Number,
43
+ required: true,
44
+ },
45
+ active: {
46
+ type: Boolean,
47
+ required: true,
48
+ },
49
+ tax_business_number: {
50
+ type: String,
51
+ default: '',
52
+ },
53
+ included_categories: {
54
+ type: [common_models_1.IncludedCategoriesSchema],
55
+ default: [],
56
+ },
57
+ createdAt: {
58
+ type: mongoose_1.Schema.Types.Date,
59
+ required: true,
60
+ default: () => new Date(),
61
+ immutable: true,
62
+ },
63
+ updatedAt: {
64
+ type: mongoose_1.Schema.Types.Date,
65
+ required: true,
66
+ default: () => new Date(),
67
+ },
68
+ }, {
69
+ timestamps: true,
70
+ versionKey: false,
71
+ minimize: false,
72
+ });
73
+ exports.VENDORS_COLLECTION_NAME = 'tenant_vendors';
@@ -18,6 +18,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
18
18
  quantity: number;
19
19
  item_name: string;
20
20
  received_qty: number;
21
+ unit_price?: number | null | undefined;
21
22
  notes?: string | null | undefined;
22
23
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
23
24
  _id: import("mongoose").Types.ObjectId;
@@ -26,6 +27,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
26
27
  quantity: number;
27
28
  item_name: string;
28
29
  received_qty: number;
30
+ unit_price?: number | null | undefined;
29
31
  notes?: string | null | undefined;
30
32
  }> & {
31
33
  _id: import("mongoose").Types.ObjectId;
@@ -34,6 +36,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
34
36
  quantity: number;
35
37
  item_name: string;
36
38
  received_qty: number;
39
+ unit_price?: number | null | undefined;
37
40
  notes?: string | null | undefined;
38
41
  }>;
39
42
  status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
@@ -133,6 +136,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
133
136
  quantity: number;
134
137
  item_name: string;
135
138
  received_qty: number;
139
+ unit_price?: number | null | undefined;
136
140
  notes?: string | null | undefined;
137
141
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
138
142
  _id: import("mongoose").Types.ObjectId;
@@ -141,6 +145,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
141
145
  quantity: number;
142
146
  item_name: string;
143
147
  received_qty: number;
148
+ unit_price?: number | null | undefined;
144
149
  notes?: string | null | undefined;
145
150
  }> & {
146
151
  _id: import("mongoose").Types.ObjectId;
@@ -149,6 +154,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
149
154
  quantity: number;
150
155
  item_name: string;
151
156
  received_qty: number;
157
+ unit_price?: number | null | undefined;
152
158
  notes?: string | null | undefined;
153
159
  }>;
154
160
  status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
@@ -248,6 +254,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
248
254
  quantity: number;
249
255
  item_name: string;
250
256
  received_qty: number;
257
+ unit_price?: number | null | undefined;
251
258
  notes?: string | null | undefined;
252
259
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
253
260
  _id: import("mongoose").Types.ObjectId;
@@ -256,6 +263,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
256
263
  quantity: number;
257
264
  item_name: string;
258
265
  received_qty: number;
266
+ unit_price?: number | null | undefined;
259
267
  notes?: string | null | undefined;
260
268
  }> & {
261
269
  _id: import("mongoose").Types.ObjectId;
@@ -264,6 +272,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
264
272
  quantity: number;
265
273
  item_name: string;
266
274
  received_qty: number;
275
+ unit_price?: number | null | undefined;
267
276
  notes?: string | null | undefined;
268
277
  }>;
269
278
  status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
@@ -50,6 +50,11 @@ const WarehouseInternalMovementItemSchema = new mongoose_1.Schema({
50
50
  required: true,
51
51
  default: 0,
52
52
  },
53
+ unit_price: {
54
+ type: Number,
55
+ min: 0,
56
+ required: false,
57
+ },
53
58
  notes: {
54
59
  type: String,
55
60
  required: false,
@@ -1,4 +1,5 @@
1
1
  import { Schema } from 'mongoose';
2
+ import { WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM } from '../../constants';
2
3
  export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
3
4
  timestamps: true;
4
5
  versionKey: false;
@@ -214,7 +215,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
214
215
  note?: string | null | undefined;
215
216
  }>;
216
217
  special_instructions: string;
217
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
218
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
218
219
  tax_number: string;
219
220
  amount_earned: number;
220
221
  grand_total: number;
@@ -422,7 +423,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
422
423
  note?: string | null | undefined;
423
424
  }>;
424
425
  special_instructions: string;
425
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
426
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
426
427
  tax_number: string;
427
428
  amount_earned: number;
428
429
  grand_total: number;
@@ -639,7 +640,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
639
640
  note?: string | null | undefined;
640
641
  }>;
641
642
  special_instructions: string;
642
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
643
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
643
644
  tax_number: string;
644
645
  amount_earned: number;
645
646
  grand_total: number;
@@ -856,7 +857,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
856
857
  note?: string | null | undefined;
857
858
  }>;
858
859
  special_instructions: string;
859
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
860
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
860
861
  tax_number: string;
861
862
  amount_earned: number;
862
863
  grand_total: number;
@@ -1103,7 +1104,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
1103
1104
  note?: string | null | undefined;
1104
1105
  }>;
1105
1106
  special_instructions: string;
1106
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1107
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1107
1108
  tax_number: string;
1108
1109
  amount_earned: number;
1109
1110
  grand_total: number;
@@ -1311,7 +1312,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
1311
1312
  note?: string | null | undefined;
1312
1313
  }>;
1313
1314
  special_instructions: string;
1314
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1315
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1315
1316
  tax_number: string;
1316
1317
  amount_earned: number;
1317
1318
  grand_total: number;
@@ -1528,7 +1529,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
1528
1529
  note?: string | null | undefined;
1529
1530
  }>;
1530
1531
  special_instructions: string;
1531
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1532
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1532
1533
  tax_number: string;
1533
1534
  amount_earned: number;
1534
1535
  grand_total: number;
@@ -1745,7 +1746,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
1745
1746
  note?: string | null | undefined;
1746
1747
  }>;
1747
1748
  special_instructions: string;
1748
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1749
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1749
1750
  tax_number: string;
1750
1751
  amount_earned: number;
1751
1752
  grand_total: number;
@@ -1992,7 +1993,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
1992
1993
  note?: string | null | undefined;
1993
1994
  }>;
1994
1995
  special_instructions: string;
1995
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1996
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
1996
1997
  tax_number: string;
1997
1998
  amount_earned: number;
1998
1999
  grand_total: number;
@@ -2200,7 +2201,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
2200
2201
  note?: string | null | undefined;
2201
2202
  }>;
2202
2203
  special_instructions: string;
2203
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
2204
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
2204
2205
  tax_number: string;
2205
2206
  amount_earned: number;
2206
2207
  grand_total: number;
@@ -2417,7 +2418,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
2417
2418
  note?: string | null | undefined;
2418
2419
  }>;
2419
2420
  special_instructions: string;
2420
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
2421
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
2421
2422
  tax_number: string;
2422
2423
  amount_earned: number;
2423
2424
  grand_total: number;
@@ -2634,7 +2635,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
2634
2635
  note?: string | null | undefined;
2635
2636
  }>;
2636
2637
  special_instructions: string;
2637
- order_status: import("../../constants").WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
2638
+ order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
2638
2639
  tax_number: string;
2639
2640
  amount_earned: number;
2640
2641
  grand_total: number;
@@ -4,9 +4,9 @@ exports.WAREHOUSE_PURCHASE_ORDER_COLLECTION_NAME = exports.PurchaseOrderSchema =
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  const common_models_1 = require("./common-models");
7
- const warehouse_purchase_order_rfqs_1 = require("./warehouse_purchase_order_rfqs");
8
7
  const warehouse_categories_1 = require("./warehouse_categories");
9
8
  const warehouse_items_1 = require("./warehouse_items");
9
+ const warehouse_purchase_order_rfqs_1 = require("./warehouse_purchase_order_rfqs");
10
10
  const warehouse_vendors_1 = require("./warehouse_vendors");
11
11
  const warehouses_1 = require("./warehouses");
12
12
  const StaffDetailsSchema = new mongoose_1.Schema({
@@ -218,7 +218,7 @@ exports.PurchaseOrderSchema = new mongoose_1.Schema({
218
218
  order_status: {
219
219
  type: String,
220
220
  enum: constants_1.ALL_WAREHOUSE_PURCHASE_ORDER_STATUS_NAMES,
221
- required: true,
221
+ default: constants_1.WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM.DRAFT,
222
222
  },
223
223
  tax_number: {
224
224
  type: String,
@@ -53,6 +53,7 @@ export * from './tenant_days';
53
53
  export * from './tenant_metadata';
54
54
  export * from './tenant_shifts';
55
55
  export * from './tenant_staffs';
56
+ export * from './tenant_vendors';
56
57
  export * from './tenants';
57
58
  export * from './terminal_devices';
58
59
  export * from './tokens';
@@ -72,7 +73,6 @@ export * from './warehouse_invoices';
72
73
  export * from './warehouse_item_transactions';
73
74
  export * from './warehouse_items';
74
75
  export * from './warehouse_operational_roles';
75
- export * from './warehouse_purchase_order_common';
76
76
  export * from './warehouse_purchase_order_receipts';
77
77
  export * from './warehouse_purchase_order_rfqs';
78
78
  export * from './warehouse_purchase_order_vendor_returns';
@@ -69,6 +69,7 @@ __exportStar(require("./tenant_days"), exports);
69
69
  __exportStar(require("./tenant_metadata"), exports);
70
70
  __exportStar(require("./tenant_shifts"), exports);
71
71
  __exportStar(require("./tenant_staffs"), exports);
72
+ __exportStar(require("./tenant_vendors"), exports);
72
73
  __exportStar(require("./tenants"), exports);
73
74
  __exportStar(require("./terminal_devices"), exports);
74
75
  __exportStar(require("./tokens"), exports);
@@ -88,7 +89,6 @@ __exportStar(require("./warehouse_invoices"), exports);
88
89
  __exportStar(require("./warehouse_item_transactions"), exports);
89
90
  __exportStar(require("./warehouse_items"), exports);
90
91
  __exportStar(require("./warehouse_operational_roles"), exports);
91
- __exportStar(require("./warehouse_purchase_order_common"), exports);
92
92
  __exportStar(require("./warehouse_purchase_order_receipts"), exports);
93
93
  __exportStar(require("./warehouse_purchase_order_rfqs"), exports);
94
94
  __exportStar(require("./warehouse_purchase_order_vendor_returns"), exports);
@@ -0,0 +1,16 @@
1
+ import { IIncludedCategory } from './courses';
2
+ export interface ITenantVendor {
3
+ _id: string;
4
+ tenant_id: string;
5
+ uid: string;
6
+ phone_number: string;
7
+ email: string | null;
8
+ name: string;
9
+ subtitle: string;
10
+ sort_id: number;
11
+ active: boolean;
12
+ tax_business_number: string;
13
+ included_categories: IIncludedCategory[];
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,6 +10,7 @@ export interface IWarehouseInternalMovementItem {
10
10
  item_name: string;
11
11
  quantity: number;
12
12
  received_qty: number;
13
+ unit_price?: number;
13
14
  notes?: string | null;
14
15
  }
15
16
  export interface IWarehouseInternalMovementStatusMeta {
@@ -1,8 +1,37 @@
1
1
  import { WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM, WAREHOUSE_RFQ_VENDOR_STATUS_ENUM } from '../../constants';
2
- import { IWarehousePurchaseOrderCommonCategoryByCategoryId, IWarehousePurchaseOrderCommonItem, IWarehousePurchaseOrderCommonIterationBase } from './warehouse_purchase_order_common';
3
- export type IWarehousePurchaseOrderRFQItem = IWarehousePurchaseOrderCommonItem;
4
- export type IWarehousePurchaseOrderRFQCategory = IWarehousePurchaseOrderCommonCategoryByCategoryId;
5
- export interface IWarehousePurchaseOrderRFQIteration extends IWarehousePurchaseOrderCommonIterationBase<IWarehousePurchaseOrderRFQCategory, WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM | string> {
2
+ import { IStaffDetails } from './orders';
3
+ export type IWarehousePurchaseOrderRFQItem = {
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 IWarehousePurchaseOrderRFQCategory = {
19
+ name: string;
20
+ category_id: string;
21
+ items: IWarehousePurchaseOrderRFQItem[];
22
+ };
23
+ export interface IWarehousePurchaseOrderRFQIteration {
24
+ categories: IWarehousePurchaseOrderRFQCategory[];
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_PURCHASE_ORDER_RFQ_STATUS_ENUM;
34
+ updatedAt: Date;
6
35
  tax_number: string;
7
36
  }
8
37
  export interface IWarehouseRFQVendorEntry {
@@ -1,9 +1,37 @@
1
1
  import { WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM } from '../../constants';
2
- import { IOrderPayment } from './orders';
3
- import { IWarehousePurchaseOrderCommonCategoryByCategoryId, IWarehousePurchaseOrderCommonItem, IWarehousePurchaseOrderCommonIterationBase } from './warehouse_purchase_order_common';
4
- export type IWarehousePurchaseOrderItem = IWarehousePurchaseOrderCommonItem;
5
- export type IWarehousePurchaseOrderCategory = IWarehousePurchaseOrderCommonCategoryByCategoryId;
6
- export interface IWarehousePurchaseOrderIteration extends IWarehousePurchaseOrderCommonIterationBase<IWarehousePurchaseOrderCategory, WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM> {
2
+ import { IOrderPayment, IStaffDetails } from './orders';
3
+ export type IWarehousePurchaseOrderItem = {
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 IWarehousePurchaseOrderCategory = {
19
+ name: string;
20
+ category_id: string;
21
+ items: IWarehousePurchaseOrderItem[];
22
+ };
23
+ export interface IWarehousePurchaseOrderIteration {
24
+ categories: IWarehousePurchaseOrderCategory[];
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_PURCHASE_ORDER_STATUS_ENUM;
34
+ updatedAt: Date;
7
35
  payments: IOrderPayment[];
8
36
  tax_number: string;
9
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.437",
3
+ "version": "0.2.439",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",