@managesome/eposmatic-toolkit 0.2.438 → 0.2.440

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.
Files changed (27) hide show
  1. package/lib/constants/TENANT_ENUMS.d.ts +17 -0
  2. package/lib/constants/TENANT_ENUMS.js +24 -0
  3. package/lib/constants/TENANT_PURCHASE_ORDER.d.ts +16 -0
  4. package/lib/constants/TENANT_PURCHASE_ORDER.js +94 -0
  5. package/lib/constants/index.d.ts +3 -1
  6. package/lib/constants/index.js +3 -1
  7. package/lib/helpers/store/common-warehouse-purchase-order-actions.d.ts +2 -2
  8. package/lib/helpers/store/warehouse-purchase-orders-cart-actions.d.ts +4 -4
  9. package/lib/schemas/models/index.d.ts +2 -0
  10. package/lib/schemas/models/index.js +2 -0
  11. package/lib/schemas/models/tenant_purchase_order_vendor_returns.d.ts +219 -0
  12. package/lib/schemas/models/tenant_purchase_order_vendor_returns.js +83 -0
  13. package/lib/schemas/models/tenant_purchase_orders.d.ts +2783 -0
  14. package/lib/schemas/models/tenant_purchase_orders.js +138 -0
  15. package/lib/schemas/models/warehouse_purchase_order_receipts.d.ts +9 -9
  16. package/lib/schemas/models/warehouse_purchase_order_vendor_returns.d.ts +12 -12
  17. package/lib/schemas/models/warehouse_purchase_orders.d.ts +13 -12
  18. package/lib/schemas/models/warehouse_purchase_orders.js +2 -2
  19. package/lib/schemas/types/index.d.ts +2 -1
  20. package/lib/schemas/types/index.js +2 -1
  21. package/lib/schemas/types/tenant_purchase_order_vendor_returns.d.ts +46 -0
  22. package/lib/schemas/types/tenant_purchase_order_vendor_returns.js +2 -0
  23. package/lib/schemas/types/tenant_purchase_orders.d.ts +61 -0
  24. package/lib/schemas/types/tenant_purchase_orders.js +2 -0
  25. package/lib/schemas/types/warehouse_purchase_order_rfqs.d.ts +33 -4
  26. package/lib/schemas/types/warehouse_purchase_orders.d.ts +33 -5
  27. package/package.json +1 -1
@@ -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.438",
3
+ "version": "0.2.440",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",