@managesome/eposmatic-toolkit 0.2.236 → 0.2.238

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 (87) hide show
  1. package/lib/constants/REPORT_WEBVIEW.d.ts +28 -0
  2. package/lib/constants/REPORT_WEBVIEW.js +31 -0
  3. package/lib/constants/index.d.ts +1 -0
  4. package/lib/constants/index.js +1 -0
  5. package/lib/helpers/store/cart-actions.js +1 -1
  6. package/lib/helpers/types/index.d.ts +1 -0
  7. package/lib/helpers/types/index.js +1 -0
  8. package/lib/helpers/types/report-webview.d.ts +130 -0
  9. package/lib/helpers/utils/item-report-helpers.js +8 -8
  10. package/lib/helpers/utils/receipt-engine.js +1 -1
  11. package/package.json +1 -1
  12. package/lib/helpers/store/warehouse-cart-actions.d.ts +0 -54
  13. package/lib/helpers/store/warehouse-cart-actions.js +0 -486
  14. package/lib/helpers/store/warehouse-catalog-actions.d.ts +0 -4
  15. package/lib/helpers/store/warehouse-catalog-actions.js +0 -46
  16. package/lib/helpers/types/printer-settings.d.ts +0 -11
  17. package/lib/helpers/types/printer-settings.js +0 -3
  18. package/lib/helpers/types/usable-offers.d.ts +0 -27
  19. package/lib/helpers/types/warehouse-cart-actions.d.ts +0 -51
  20. package/lib/helpers/types/warehouse-cart-actions.js +0 -2
  21. package/lib/helpers/utils/comparison-report-helpers.d.ts +0 -27
  22. package/lib/helpers/utils/comparison-report-helpers.js +0 -802
  23. package/lib/helpers/utils/comparitive-report-helpers.d.ts +0 -7
  24. package/lib/helpers/utils/comparitive-report-helpers.js +0 -826
  25. package/lib/helpers/utils/short-inventory.d.ts +0 -3
  26. package/lib/helpers/utils/short-inventory.js +0 -26
  27. package/lib/helpers/utils/simplified-warehouse-catalog.d.ts +0 -10
  28. package/lib/helpers/utils/simplified-warehouse-catalog.js +0 -108
  29. package/lib/helpers/utils/stock-details.d.ts +0 -3
  30. package/lib/helpers/utils/stock-details.js +0 -26
  31. package/lib/helpers/utils/stock-wastage.d.ts +0 -3
  32. package/lib/helpers/utils/stock-wastage.js +0 -26
  33. package/lib/helpers/utils/warehouse-order-engine.d.ts +0 -9
  34. package/lib/helpers/utils/warehouse-order-engine.js +0 -34
  35. package/lib/schemas/models/drivers.d.ts +0 -55
  36. package/lib/schemas/models/drivers.js +0 -60
  37. package/lib/schemas/models/internal_expense_details.d.ts +0 -55
  38. package/lib/schemas/models/internal_expense_details.js +0 -63
  39. package/lib/schemas/models/internal_restaurant_details.d.ts +0 -64
  40. package/lib/schemas/models/internal_restaurant_details.js +0 -77
  41. package/lib/schemas/models/platform.d.ts +0 -34
  42. package/lib/schemas/models/platform.js +0 -30
  43. package/lib/schemas/models/short_inventory.d.ts +0 -65
  44. package/lib/schemas/models/short_inventory.js +0 -46
  45. package/lib/schemas/models/stock_consumption.d.ts +0 -77
  46. package/lib/schemas/models/stock_consumption.js +0 -64
  47. package/lib/schemas/models/stock_entry.d.ts +0 -65
  48. package/lib/schemas/models/stock_entry.js +0 -46
  49. package/lib/schemas/models/stock_wastage.d.ts +0 -71
  50. package/lib/schemas/models/stock_wastage.js +0 -54
  51. package/lib/schemas/models/tenant_shift_sessions.d.ts +0 -146
  52. package/lib/schemas/models/tenant_shift_sessions.js +0 -125
  53. package/lib/schemas/models/warehouse_settings.d.ts +0 -40
  54. package/lib/schemas/models/warehouse_settings.js +0 -40
  55. package/lib/schemas/types/drivers.d.ts +0 -13
  56. package/lib/schemas/types/drivers.js +0 -2
  57. package/lib/schemas/types/internal_expense_details.d.ts +0 -14
  58. package/lib/schemas/types/internal_expense_details.js +0 -2
  59. package/lib/schemas/types/internal_restaurant_details.d.ts +0 -17
  60. package/lib/schemas/types/internal_restaurant_details.js +0 -2
  61. package/lib/schemas/types/marketing.d.ts +0 -10
  62. package/lib/schemas/types/marketing.js +0 -2
  63. package/lib/schemas/types/platform.d.ts +0 -6
  64. package/lib/schemas/types/platform.js +0 -2
  65. package/lib/schemas/types/pos_days.d.ts +0 -29
  66. package/lib/schemas/types/pos_days.js +0 -2
  67. package/lib/schemas/types/pos_shifts.d.ts +0 -33
  68. package/lib/schemas/types/pos_shifts.js +0 -2
  69. package/lib/schemas/types/short_inventory.d.ts +0 -9
  70. package/lib/schemas/types/short_inventory.js +0 -2
  71. package/lib/schemas/types/split_bill.d.ts +0 -18
  72. package/lib/schemas/types/split_bill.js +0 -2
  73. package/lib/schemas/types/stock_consumption.d.ts +0 -13
  74. package/lib/schemas/types/stock_consumption.js +0 -2
  75. package/lib/schemas/types/stock_entry.d.ts +0 -9
  76. package/lib/schemas/types/stock_entry.js +0 -2
  77. package/lib/schemas/types/stock_wastage.d.ts +0 -11
  78. package/lib/schemas/types/stock_wastage.js +0 -2
  79. package/lib/schemas/types/tenant_shift_sessions.d.ts +0 -33
  80. package/lib/schemas/types/tenant_shift_sessions.js +0 -2
  81. package/lib/schemas/types/third_party_payments.d.ts +0 -41
  82. package/lib/schemas/types/third_party_payments.js +0 -2
  83. package/lib/schemas/types/used_ingredients.d.ts +0 -8
  84. package/lib/schemas/types/used_ingredients.js +0 -2
  85. package/lib/schemas/types/warehouse_settings.d.ts +0 -8
  86. package/lib/schemas/types/warehouse_settings.js +0 -2
  87. /package/lib/helpers/types/{usable-offers.js → report-webview.js} +0 -0
@@ -0,0 +1,28 @@
1
+ export declare const WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT = "WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT";
2
+ export declare const WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF = "WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF";
3
+ export declare const WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE = "WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE";
4
+ export declare const WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT = "WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT";
5
+ export declare const WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT = "WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT";
6
+ export declare const WEBVIEW_RA_GET_REPORT_SUMMARY_PDF = "WEBVIEW_RA_GET_REPORT_SUMMARY_PDF";
7
+ export declare const WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE = "WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE";
8
+ export declare const WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT = "WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT";
9
+ export declare const WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT = "WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT";
10
+ export declare const WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF = "WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF";
11
+ export declare const WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE = "WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE";
12
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT = "WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT";
13
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_PDF = "WEBVIEW_RA_GET_REPORT_X_REPORT_PDF";
14
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE = "WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE";
15
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_CSV = "WEBVIEW_RA_GET_REPORT_X_REPORT_CSV";
16
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT = "WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT";
17
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT = "WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT";
18
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_PDF = "WEBVIEW_RA_GET_REPORT_RIDER_PDF";
19
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_IMAGE = "WEBVIEW_RA_GET_REPORT_RIDER_IMAGE";
20
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_CSV = "WEBVIEW_RA_GET_REPORT_RIDER_CSV";
21
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_PRINT = "WEBVIEW_RA_GET_REPORT_RIDER_PRINT";
22
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT";
23
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF";
24
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE";
25
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV";
26
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT";
27
+ export declare const WEBVIEW_RA_GET_REPORT_COSTING_PDF = "WEBVIEW_RA_GET_REPORT_COSTING_PDF";
28
+ export declare const WEBVIEW_RA_GET_REPORT_COSTING_IMAGE = "WEBVIEW_RA_GET_REPORT_COSTING_IMAGE";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WEBVIEW_RA_GET_REPORT_COSTING_IMAGE = exports.WEBVIEW_RA_GET_REPORT_COSTING_PDF = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_RIDER_PRINT = exports.WEBVIEW_RA_GET_REPORT_RIDER_CSV = exports.WEBVIEW_RA_GET_REPORT_RIDER_IMAGE = exports.WEBVIEW_RA_GET_REPORT_RIDER_PDF = exports.WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_CSV = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_PDF = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE = exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF = exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT = exports.WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE = exports.WEBVIEW_RA_GET_REPORT_SUMMARY_PDF = exports.WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT = exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE = exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF = exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT = void 0;
4
+ exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT = 'WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT';
5
+ exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF = 'WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF';
6
+ exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE = 'WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE';
7
+ exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT = 'WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT';
8
+ exports.WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT = 'WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT';
9
+ exports.WEBVIEW_RA_GET_REPORT_SUMMARY_PDF = 'WEBVIEW_RA_GET_REPORT_SUMMARY_PDF';
10
+ exports.WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE = 'WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE';
11
+ exports.WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT = 'WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT';
12
+ exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT = 'WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT';
13
+ exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF = 'WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF';
14
+ exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE = 'WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE';
15
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT = 'WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT';
16
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_PDF = 'WEBVIEW_RA_GET_REPORT_X_REPORT_PDF';
17
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE = 'WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE';
18
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_CSV = 'WEBVIEW_RA_GET_REPORT_X_REPORT_CSV';
19
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT = 'WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT';
20
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT = 'WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT';
21
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_PDF = 'WEBVIEW_RA_GET_REPORT_RIDER_PDF';
22
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_IMAGE = 'WEBVIEW_RA_GET_REPORT_RIDER_IMAGE';
23
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_CSV = 'WEBVIEW_RA_GET_REPORT_RIDER_CSV';
24
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_PRINT = 'WEBVIEW_RA_GET_REPORT_RIDER_PRINT';
25
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT';
26
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF';
27
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE';
28
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV';
29
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT';
30
+ exports.WEBVIEW_RA_GET_REPORT_COSTING_PDF = 'WEBVIEW_RA_GET_REPORT_COSTING_PDF';
31
+ exports.WEBVIEW_RA_GET_REPORT_COSTING_IMAGE = 'WEBVIEW_RA_GET_REPORT_COSTING_IMAGE';
@@ -8,6 +8,7 @@ export * from './NOTIFICATIONS';
8
8
  export * from './ORDER';
9
9
  export * from './PRA_ENUMS';
10
10
  export * from './PURCHASE_ORDER';
11
+ export * from './REPORT_WEBVIEW';
11
12
  export * from './SMARTPAY_ENUMS';
12
13
  export * from './SOCKET';
13
14
  export * from './SRB_ENUMS';
@@ -24,6 +24,7 @@ __exportStar(require("./NOTIFICATIONS"), exports);
24
24
  __exportStar(require("./ORDER"), exports);
25
25
  __exportStar(require("./PRA_ENUMS"), exports);
26
26
  __exportStar(require("./PURCHASE_ORDER"), exports);
27
+ __exportStar(require("./REPORT_WEBVIEW"), exports);
27
28
  __exportStar(require("./SMARTPAY_ENUMS"), exports);
28
29
  __exportStar(require("./SOCKET"), exports);
29
30
  __exportStar(require("./SRB_ENUMS"), exports);
@@ -495,7 +495,7 @@ function calculateCartOrderInfoAndSyncData(data, courses, listnerSettings, calcu
495
495
  }
496
496
  }
497
497
  grand_total += delivery_cost;
498
- // Add packaging fee to grand_total
498
+ // Add packaging charges to grand_total
499
499
  grand_total += packaging_charges;
500
500
  // Add adjustment amount (can be positive or negative)
501
501
  grand_total += data.adjustment_amount ?? 0;
@@ -15,6 +15,7 @@ export * from './marketing';
15
15
  export * from './order-engine';
16
16
  export * from './pra-generate-invoice';
17
17
  export * from './purchase-order-cart-actions';
18
+ export * from './report-webview';
18
19
  export * from './reports';
19
20
  export * from './smartpay-apis';
20
21
  export * from './split_bill';
@@ -31,6 +31,7 @@ __exportStar(require("./marketing"), exports);
31
31
  __exportStar(require("./order-engine"), exports);
32
32
  __exportStar(require("./pra-generate-invoice"), exports);
33
33
  __exportStar(require("./purchase-order-cart-actions"), exports);
34
+ __exportStar(require("./report-webview"), exports);
34
35
  __exportStar(require("./reports"), exports);
35
36
  __exportStar(require("./smartpay-apis"), exports);
36
37
  __exportStar(require("./split_bill"), exports);
@@ -0,0 +1,130 @@
1
+ import type { IItemReportProps } from '../utils/item-report-helpers';
2
+ import type { IRidersReportProps } from '../utils/riders-report-helpers';
3
+ import type { ISaleOverViewReportProps } from '../utils/sales-overview-report-helpers';
4
+ import type { ISummaryReportProps } from '../utils/sales-summary-report-helpers';
5
+ import type { IVoidationsSummaryReportProps } from '../utils/voidations-summary-report-helpers';
6
+ import type { IXReportProps } from '../utils/x-report-helpers';
7
+ export interface IWebviewGetReportOverviewReceipt extends ISaleOverViewReportProps {
8
+ request_id: string;
9
+ target: string;
10
+ }
11
+ export interface IWebviewGetReportOverviewPDF extends ISaleOverViewReportProps {
12
+ request_id: string;
13
+ }
14
+ export interface IWebviewGetReportOverviewImage extends ISaleOverViewReportProps {
15
+ request_id: string;
16
+ }
17
+ export interface IWebviewGetReportOverviewPrint extends ISaleOverViewReportProps {
18
+ request_id: string;
19
+ }
20
+ export interface IWebviewGetReportSummaryReceipt extends ISummaryReportProps {
21
+ request_id: string;
22
+ target: string;
23
+ }
24
+ export interface IWebviewGetReportSummaryPDF extends ISummaryReportProps {
25
+ request_id: string;
26
+ }
27
+ export interface IWebviewGetReportSummaryImage extends ISummaryReportProps {
28
+ request_id: string;
29
+ }
30
+ export interface IWebviewGetReportSummaryPrint extends ISummaryReportProps {
31
+ request_id: string;
32
+ }
33
+ export interface IWebviewGetReportVoidationSummaryReceipt extends IVoidationsSummaryReportProps {
34
+ request_id: string;
35
+ target: string;
36
+ }
37
+ export interface IWebviewGetReportVoidationSummaryPDF extends IVoidationsSummaryReportProps {
38
+ request_id: string;
39
+ }
40
+ export interface IWebviewGetReportVoidationSummaryImage extends IVoidationsSummaryReportProps {
41
+ request_id: string;
42
+ }
43
+ export interface IWebviewGetReportXReportReceipt extends IXReportProps {
44
+ request_id: string;
45
+ target: string;
46
+ }
47
+ export interface IWebviewGetReportXReportPDF extends IXReportProps {
48
+ request_id: string;
49
+ }
50
+ export interface IWebviewGetReportXReportImage extends IXReportProps {
51
+ request_id: string;
52
+ }
53
+ export interface IWebviewGetReportXReportCSV extends IXReportProps {
54
+ request_id: string;
55
+ }
56
+ export interface IWebviewGetReportXReportPrint extends IXReportProps {
57
+ request_id: string;
58
+ }
59
+ export interface IWebviewGetReportRiderReceipt extends IRidersReportProps {
60
+ request_id: string;
61
+ target: string;
62
+ }
63
+ export interface IWebviewGetReportRiderPDF extends IRidersReportProps {
64
+ request_id: string;
65
+ }
66
+ export interface IWebviewGetReportRiderImage extends IRidersReportProps {
67
+ request_id: string;
68
+ }
69
+ export interface IWebviewGetReportRiderCSV extends IRidersReportProps {
70
+ request_id: string;
71
+ }
72
+ export interface IWebviewGetReportRiderPrint extends IRidersReportProps {
73
+ request_id: string;
74
+ }
75
+ export interface IWebviewGetReportItemsSaleReceipt extends IItemReportProps {
76
+ request_id: string;
77
+ target: string;
78
+ }
79
+ export interface IWebviewGetReportItemsSalePDF extends IItemReportProps {
80
+ request_id: string;
81
+ }
82
+ export interface IWebviewGetReportItemsSaleImage extends IItemReportProps {
83
+ request_id: string;
84
+ }
85
+ export interface IWebviewGetReportItemsSaleCSV extends IItemReportProps {
86
+ request_id: string;
87
+ }
88
+ export interface IWebviewGetReportItemsSalePrint extends IItemReportProps {
89
+ request_id: string;
90
+ }
91
+ export interface IWebviewCostingReportItem {
92
+ item_name: string;
93
+ category_name: string;
94
+ total_transactions: number;
95
+ quantity_consumed: number;
96
+ cost_price: number;
97
+ selling_price: number;
98
+ profit: number;
99
+ markup_percentage: number;
100
+ profit_margin: number;
101
+ }
102
+ export interface IWebviewCostingReportMetrics {
103
+ total_transactions: number;
104
+ quantity_consumed: number;
105
+ selling_price: number;
106
+ cost_price: number;
107
+ profit: number;
108
+ markup_percentage: number;
109
+ profit_margin: number;
110
+ }
111
+ export interface IWebviewGetReportCostingPDF {
112
+ request_id: string;
113
+ from: Date | null;
114
+ to: Date | null;
115
+ data: IWebviewCostingReportItem[];
116
+ metrics: IWebviewCostingReportMetrics;
117
+ currency_symbol: string | undefined;
118
+ tenantName: string;
119
+ isFilterApplied: boolean;
120
+ }
121
+ export interface IWebviewGetReportCostingImage {
122
+ request_id: string;
123
+ from: Date | null;
124
+ to: Date | null;
125
+ data: IWebviewCostingReportItem[];
126
+ metrics: IWebviewCostingReportMetrics;
127
+ currency_symbol: string | undefined;
128
+ tenantName: string;
129
+ isFilterApplied: boolean;
130
+ }
@@ -425,8 +425,8 @@ const getLegacyItemReportHead = ({ monochrome, width, zeroPadding }) => {
425
425
  box-sizing: inherit;
426
426
  display: flex;
427
427
  flex-direction: row;
428
- -webkit-box-align: center;
429
- align-items: center;
428
+ -webkit-box-align: start;
429
+ align-items: flex-start;
430
430
  margin: 0;
431
431
  }
432
432
 
@@ -1378,8 +1378,8 @@ const getNewItemReportHead = ({ zeroPadding, monochrome }) => {
1378
1378
  box-sizing: inherit;
1379
1379
  display: flex;
1380
1380
  flex-direction: row;
1381
- -webkit-box-align: center;
1382
- align-items: center;
1381
+ -webkit-box-align: start;
1382
+ align-items: flex-start;
1383
1383
  margin: 0;
1384
1384
  }
1385
1385
 
@@ -1810,8 +1810,8 @@ const getNewItemReportHead = ({ zeroPadding, monochrome }) => {
1810
1810
  box-sizing: inherit;
1811
1811
  display: flex;
1812
1812
  flex-direction: row;
1813
- -webkit-box-align: center;
1814
- align-items: center;
1813
+ -webkit-box-align: start;
1814
+ align-items: flex-start;
1815
1815
  margin: 0px;
1816
1816
  }
1817
1817
 
@@ -1860,8 +1860,8 @@ const getNewItemReportHead = ({ zeroPadding, monochrome }) => {
1860
1860
  box-sizing: inherit;
1861
1861
  display: flex;
1862
1862
  flex-direction: row;
1863
- -webkit-box-align: center;
1864
- align-items: center;
1863
+ -webkit-box-align: start;
1864
+ align-items: flex-start;
1865
1865
  }
1866
1866
 
1867
1867
  .css-zfkluz{
@@ -178,7 +178,7 @@ function getReceiptEngineFooterDetails(order, settings) {
178
178
  right,
179
179
  });
180
180
  }
181
- // 12. Packaging Fee
181
+ // 12. Packaging charges
182
182
  if (order.packaging_charges) {
183
183
  const right = (0, common_1.localeAmount)(currencySymbol, order.packaging_charges);
184
184
  details.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.236",
3
+ "version": "0.2.238",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,54 +0,0 @@
1
- import { PURCHASE_ORDER_STATUS_ENUM } from '../../constants';
2
- import { IPurchaseOrder, IPurchaseOrderCategory, IPurchaseOrderItem, IPurchaseOrderIteration } from '../../schemas';
3
- export declare function calculateCartPurchaseOrderInfoAndSyncData<T extends IPurchaseOrder | Partial<IPurchaseOrder>>(data: T, calculateItemMetadata?: boolean): T;
4
- export declare const getPurchaseOrderItemComaparableData: (item: IPurchaseOrderItem) => Partial<IPurchaseOrderItem>;
5
- export declare function getUpdatedWarehouseCartInfoOnInit(data: Partial<IPurchaseOrder>, order: Partial<IPurchaseOrder>): {
6
- _id?: string | undefined;
7
- warehouse_id?: string | undefined;
8
- vendor_id?: string | undefined;
9
- iterations?: IPurchaseOrderIteration[] | undefined;
10
- amount_collected?: number | undefined;
11
- order_number?: number | null | undefined;
12
- delete_reason?: string | null;
13
- cancel_reason?: string | null;
14
- is_deleted?: boolean | undefined;
15
- order_status_updated_at?: Date | undefined;
16
- is_reopened?: boolean;
17
- order_settled_at?: Date | undefined;
18
- order_settled_at_mins?: number | undefined;
19
- createdAt_mins?: number | undefined;
20
- createdAt?: Date | undefined;
21
- categories?: IPurchaseOrderCategory[] | undefined;
22
- payments?: import("../../schemas").IOrderPayment[] | undefined;
23
- staff_details?: import("../../schemas").IStaffDetails | undefined;
24
- is_gst_inclusive?: boolean;
25
- gst?: number;
26
- gst_amount?: number;
27
- special_instructions?: string | undefined;
28
- order_status?: PURCHASE_ORDER_STATUS_ENUM | undefined;
29
- price?: number | undefined;
30
- amount_earned?: number | undefined;
31
- grand_total?: number | undefined;
32
- tax_number?: string | undefined;
33
- updatedAt?: Date | undefined;
34
- };
35
- export declare function getRemoveItemFromWarehouseCartData(data: Partial<IPurchaseOrder>, payload: {
36
- _id: string;
37
- void_reason?: string;
38
- }): Partial<IPurchaseOrder>;
39
- export declare function getUpdateWarehouseCartInfoData(data: Partial<IPurchaseOrder>, payload: Partial<IPurchaseOrder>): Partial<IPurchaseOrder>;
40
- export interface ISetAddItemToWarehouseCartActionPayload {
41
- name: string;
42
- category_id: string;
43
- item: IPurchaseOrderItem;
44
- replace_id?: string;
45
- }
46
- export declare function getAddItemToWarehouseCartData(data: Partial<IPurchaseOrder>, payload: ISetAddItemToWarehouseCartActionPayload): Partial<IPurchaseOrder>;
47
- export declare function getUpdateItemInWarehouseCartData(data: Partial<IPurchaseOrder>, payload: Partial<IPurchaseOrderItem>): Partial<IPurchaseOrder>;
48
- export declare function getUpdateItemsInWarehouseCartData(data: Partial<IPurchaseOrder>, payload: Partial<IPurchaseOrderItem>[]): Partial<IPurchaseOrder>;
49
- export interface IGetSplitWarehouseCartItemToTwo {
50
- data: Partial<IPurchaseOrder>;
51
- orderItemId: string;
52
- }
53
- export declare function getSplitWarehouseCartItemToTwo({ data, orderItemId, }: IGetSplitWarehouseCartItemToTwo): Partial<IPurchaseOrder>;
54
- export declare function getAddItemsToWarehouseCartData(data: Partial<IPurchaseOrder>, payload: ISetAddItemToWarehouseCartActionPayload[]): Partial<IPurchaseOrder>;