@managesome/eposmatic-toolkit 0.3.8 → 0.3.9

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 (436) hide show
  1. package/esm/constants/ANALYTICS.js +146 -0
  2. package/esm/constants/API_ERRORS.js +6 -0
  3. package/esm/constants/COMMON.js +369 -0
  4. package/esm/constants/DELIVERY.js +45 -0
  5. package/esm/constants/DIALER_ENUMS.js +11 -0
  6. package/esm/constants/ENUMS.js +1988 -0
  7. package/esm/constants/FBR_ENUMS.js +18 -0
  8. package/esm/constants/HUBRISE_ENUMS.js +179 -0
  9. package/esm/constants/INTERNAL_ENUMS.js +49 -0
  10. package/esm/constants/NOTIFICATIONS.js +6 -0
  11. package/esm/constants/ORDER.js +251 -0
  12. package/esm/constants/PRA_ENUMS.js +18 -0
  13. package/esm/constants/REPORT_WEBVIEW.js +28 -0
  14. package/esm/constants/RFQ_GO.js +83 -0
  15. package/esm/constants/SMARTPAY_ENUMS.js +55 -0
  16. package/esm/constants/SOCKET.js +149 -0
  17. package/esm/constants/SRB_ENUMS.js +13 -0
  18. package/esm/constants/SWITCHPAY.js +28 -0
  19. package/esm/constants/TENANT_ENUMS.js +90 -0
  20. package/esm/constants/TENANT_PURCHASE_ORDER.js +91 -0
  21. package/esm/constants/WALLET.js +51 -0
  22. package/esm/constants/WAREHOUSE_ANALYTICS.js +28 -0
  23. package/esm/constants/WAREHOUSE_ENUMS.js +420 -0
  24. package/esm/constants/WAREHOUSE_PURCHASE_ORDER.js +97 -0
  25. package/esm/constants/WEBVIEW.js +43 -0
  26. package/esm/constants/WORKER_ENDPOINTS.js +79 -0
  27. package/esm/constants/index.js +27 -0
  28. package/esm/constants/types.js +2 -0
  29. package/esm/helpers/fbr/generate-invoice.js +94 -0
  30. package/esm/helpers/fbr/index.js +1 -0
  31. package/esm/helpers/hubrise/hubrise-catalog.js +304 -0
  32. package/esm/helpers/hubrise/index.js +1 -0
  33. package/esm/helpers/index.js +9 -0
  34. package/esm/helpers/kpra/generate-invoice.js +26 -0
  35. package/esm/helpers/kpra/index.js +1 -0
  36. package/esm/helpers/order/generate-order.js +508 -0
  37. package/esm/helpers/order/generate-warehouse-internal-movement.js +71 -0
  38. package/esm/helpers/order/generate-warehouse-purchase-order-rfq.js +176 -0
  39. package/esm/helpers/order/generate-warehouse-purchase-order.js +187 -0
  40. package/esm/helpers/order/generate-warehouse-sale-order-rfq.js +176 -0
  41. package/esm/helpers/order/generate-warehouse-sale-order.js +149 -0
  42. package/esm/helpers/order/index.js +6 -0
  43. package/esm/helpers/pra/generate-invoice.js +94 -0
  44. package/esm/helpers/pra/index.js +1 -0
  45. package/esm/helpers/srb/generate-invoice.js +68 -0
  46. package/esm/helpers/srb/index.js +1 -0
  47. package/esm/helpers/store/all-orders-actions.js +17 -0
  48. package/esm/helpers/store/all-tenant-purchase-orders-actions.js +45 -0
  49. package/esm/helpers/store/all-warehouse-purchase-order-rfqs-actions.js +66 -0
  50. package/esm/helpers/store/all-warehouse-purchase-order-vendor-return-actions.js +50 -0
  51. package/esm/helpers/store/all-warehouse-purchase-orders-actions.js +49 -0
  52. package/esm/helpers/store/all-warehouse-sale-order-invoices-actions.js +132 -0
  53. package/esm/helpers/store/all-warehouse-sale-order-rfqs-actions.js +66 -0
  54. package/esm/helpers/store/all-warehouse-sale-orders-actions.js +72 -0
  55. package/esm/helpers/store/cart-actions.js +3563 -0
  56. package/esm/helpers/store/catalog-actions.js +379 -0
  57. package/esm/helpers/store/common-order-actions.js +937 -0
  58. package/esm/helpers/store/common-tenant-purchase-order-actions.js +440 -0
  59. package/esm/helpers/store/common-warehouse-internal-movement-actions.js +95 -0
  60. package/esm/helpers/store/common-warehouse-purchase-order-actions.js +530 -0
  61. package/esm/helpers/store/common-warehouse-purchase-order-receipt-actions.js +33 -0
  62. package/esm/helpers/store/common-warehouse-purchase-order-rfq-actions.js +523 -0
  63. package/esm/helpers/store/common-warehouse-purchase-order-vendor-return-actions.js +25 -0
  64. package/esm/helpers/store/common-warehouse-sale-order-actions.js +483 -0
  65. package/esm/helpers/store/common-warehouse-sale-order-invoice-actions.js +54 -0
  66. package/esm/helpers/store/common-warehouse-sale-order-rfq-actions.js +523 -0
  67. package/esm/helpers/store/index.js +26 -0
  68. package/esm/helpers/store/offline-ordering.js +251 -0
  69. package/esm/helpers/store/tenant-purchase-orders-cart-actions.js +379 -0
  70. package/esm/helpers/store/warehouse-purchase-order-rfq-cart-actions.js +360 -0
  71. package/esm/helpers/store/warehouse-purchase-orders-cart-actions.js +470 -0
  72. package/esm/helpers/store/warehouse-sale-order-rfq-cart-actions.js +359 -0
  73. package/esm/helpers/store/warehouse-sale-orders-cart-actions.js +456 -0
  74. package/esm/helpers/types/api-types.js +1 -0
  75. package/esm/helpers/types/cart-actions.js +1 -0
  76. package/esm/helpers/types/cart-helpers.js +1 -0
  77. package/esm/helpers/types/catalog.js +1 -0
  78. package/esm/helpers/types/common.js +1 -0
  79. package/esm/helpers/types/deliverect_menu.js +1 -0
  80. package/esm/helpers/types/email-templates.js +1 -0
  81. package/esm/helpers/types/fbr-generate-invoice.js +1 -0
  82. package/esm/helpers/types/halfhalf.js +1 -0
  83. package/esm/helpers/types/hubrise_catalog.js +1 -0
  84. package/esm/helpers/types/hubrise_customers.js +1 -0
  85. package/esm/helpers/types/hubrise_deliveries.js +1 -0
  86. package/esm/helpers/types/hubrise_location.js +1 -0
  87. package/esm/helpers/types/hubrise_orders.js +1 -0
  88. package/esm/helpers/types/index.js +33 -0
  89. package/esm/helpers/types/internal-leads.js +1 -0
  90. package/esm/helpers/types/inventory-catalog.js +1 -0
  91. package/esm/helpers/types/kpra-generate-invoice.js +1 -0
  92. package/esm/helpers/types/marketing.js +1 -0
  93. package/esm/helpers/types/order-engine.js +1 -0
  94. package/esm/helpers/types/pra-generate-invoice.js +1 -0
  95. package/esm/helpers/types/report-webview.js +1 -0
  96. package/esm/helpers/types/reports.js +1 -0
  97. package/esm/helpers/types/smartpay-apis.js +2 -0
  98. package/esm/helpers/types/specials.js +1 -0
  99. package/esm/helpers/types/split_bill.js +1 -0
  100. package/esm/helpers/types/srb-generate-invoice.js +1 -0
  101. package/esm/helpers/types/switchpay.js +1 -0
  102. package/esm/helpers/types/tenant-purchase-order-cart-actions.js +1 -0
  103. package/esm/helpers/types/warehouse-catalog.js +1 -0
  104. package/esm/helpers/types/warehouse-purchase-order-cart-actions.js +1 -0
  105. package/esm/helpers/types/warehouse-purchase-order-rfq-cart-actions.js +1 -0
  106. package/esm/helpers/types/warehouse-sale-order-cart-actions.js +1 -0
  107. package/esm/helpers/types/warehouse-sale-order-rfq-cart-actions.js +1 -0
  108. package/esm/helpers/types/workers.js +1 -0
  109. package/esm/helpers/utils/asaanbill-identifier-helpers.js +31 -0
  110. package/esm/helpers/utils/business-day-helpers.js +201 -0
  111. package/esm/helpers/utils/cart-helpers.js +156 -0
  112. package/esm/helpers/utils/catalog-conversion.js +129 -0
  113. package/esm/helpers/utils/code-redemption-helpers.js +452 -0
  114. package/esm/helpers/utils/color-helpers.js +31 -0
  115. package/esm/helpers/utils/common.js +368 -0
  116. package/esm/helpers/utils/crypt.js +40 -0
  117. package/esm/helpers/utils/customers-helpers.js +15 -0
  118. package/esm/helpers/utils/delivery-area-helpers.js +42 -0
  119. package/esm/helpers/utils/delivery-helpers.js +87 -0
  120. package/esm/helpers/utils/denominations-helpers.js +53 -0
  121. package/esm/helpers/utils/dinein.js +39 -0
  122. package/esm/helpers/utils/discount-helpers.js +55 -0
  123. package/esm/helpers/utils/email-helpers.js +111 -0
  124. package/esm/helpers/utils/error-helpers.js +14 -0
  125. package/esm/helpers/utils/expense.js +26 -0
  126. package/esm/helpers/utils/getFormFieldsDiff.js +15 -0
  127. package/esm/helpers/utils/gift-card-helpers.js +258 -0
  128. package/esm/helpers/utils/halfhalf-setup-helpers.js +779 -0
  129. package/esm/helpers/utils/hourly-comparison-report-helpers.js +851 -0
  130. package/esm/helpers/utils/hr-helpers.js +62 -0
  131. package/esm/helpers/utils/hubrise-utils.js +32 -0
  132. package/esm/helpers/utils/image-helpers.js +95 -0
  133. package/esm/helpers/utils/image-url-helpers.js +96 -0
  134. package/esm/helpers/utils/index.js +96 -0
  135. package/esm/helpers/utils/ingredients.js +26 -0
  136. package/esm/helpers/utils/internal-amount-helpers.js +49 -0
  137. package/esm/helpers/utils/inventory.js +123 -0
  138. package/esm/helpers/utils/inventory_entries.js +91 -0
  139. package/esm/helpers/utils/inventory_transactions.js +91 -0
  140. package/esm/helpers/utils/item-report-helpers.js +2603 -0
  141. package/esm/helpers/utils/items-comparison-report-helpers.js +1057 -0
  142. package/esm/helpers/utils/kds-helpers.js +43 -0
  143. package/esm/helpers/utils/location-helpers.js +13 -0
  144. package/esm/helpers/utils/menu-helpers.js +44 -0
  145. package/esm/helpers/utils/minified-catalog.js +428 -0
  146. package/esm/helpers/utils/offer-apply-helpers.js +613 -0
  147. package/esm/helpers/utils/offers-helpers.js +3351 -0
  148. package/esm/helpers/utils/operational-roles-helpers.js +33 -0
  149. package/esm/helpers/utils/order-engine.js +1409 -0
  150. package/esm/helpers/utils/order-history.js +208 -0
  151. package/esm/helpers/utils/payment-comparison-report-helpers.js +873 -0
  152. package/esm/helpers/utils/payment-helpers.js +302 -0
  153. package/esm/helpers/utils/pdf-generator.js +110 -0
  154. package/esm/helpers/utils/platform-catalog.js +306 -0
  155. package/esm/helpers/utils/platform-num.js +188 -0
  156. package/esm/helpers/utils/platform-specific-tenant-shifts.js +19 -0
  157. package/esm/helpers/utils/price-conversion.js +24 -0
  158. package/esm/helpers/utils/printer-helpers.js +319 -0
  159. package/esm/helpers/utils/public-holidays-helpers.js +8 -0
  160. package/esm/helpers/utils/ratings-comparison-report-helpers.js +1187 -0
  161. package/esm/helpers/utils/receipt-engine.js +1050 -0
  162. package/esm/helpers/utils/review-helpers.js +391 -0
  163. package/esm/helpers/utils/rider-tracking.js +12 -0
  164. package/esm/helpers/utils/riders-report-helpers.js +1590 -0
  165. package/esm/helpers/utils/sales-comparison-report-helpers.js +1259 -0
  166. package/esm/helpers/utils/sales-comparitive-report-helpers.js +939 -0
  167. package/esm/helpers/utils/sales-overview-report-helpers.js +1046 -0
  168. package/esm/helpers/utils/sales-summary-report-helpers.js +877 -0
  169. package/esm/helpers/utils/scan-code-helpers.js +31 -0
  170. package/esm/helpers/utils/selection-model.js +68 -0
  171. package/esm/helpers/utils/shift-window-helpers.js +148 -0
  172. package/esm/helpers/utils/simplified-catalog.js +107 -0
  173. package/esm/helpers/utils/simplified-halfhalf.js +101 -0
  174. package/esm/helpers/utils/simplified-specials.js +107 -0
  175. package/esm/helpers/utils/simplified-tenant.js +411 -0
  176. package/esm/helpers/utils/specials-helpers.js +727 -0
  177. package/esm/helpers/utils/tenant-calendar-helpers.js +67 -0
  178. package/esm/helpers/utils/tenant-cash-drawer-sessions-helpers.js +248 -0
  179. package/esm/helpers/utils/tenant-cash-drawers-helpers.js +31 -0
  180. package/esm/helpers/utils/tenant-cash-in-out-helpers.js +47 -0
  181. package/esm/helpers/utils/tenant-day-sessions-helpers.js +167 -0
  182. package/esm/helpers/utils/tenant-instore-shift-sessions-helpers.js +227 -0
  183. package/esm/helpers/utils/tenant-staff-helpers.js +19 -0
  184. package/esm/helpers/utils/tenant_cash_in_hand_transactions.js +31 -0
  185. package/esm/helpers/utils/time-helpers.js +142 -0
  186. package/esm/helpers/utils/void-items-report-helpers.js +529 -0
  187. package/esm/helpers/utils/void-order-items-helpers.js +32 -0
  188. package/esm/helpers/utils/voidations-summary-report-helpers.js +800 -0
  189. package/esm/helpers/utils/wallet-helpers.js +22 -0
  190. package/esm/helpers/utils/wallet-redemption-helpers.js +46 -0
  191. package/esm/helpers/utils/warehouse-catalog-conversion.js +117 -0
  192. package/esm/helpers/utils/warehouse-inventory.js +59 -0
  193. package/esm/helpers/utils/warehouse-purchase-order-engine.js +27 -0
  194. package/esm/helpers/utils/warehouse-purchase-order-receipt-engine.js +205 -0
  195. package/esm/helpers/utils/warehouse-purchase-order-x-report-helpers.js +1432 -0
  196. package/esm/helpers/utils/warehouse-sale-order-engine.js +27 -0
  197. package/esm/helpers/utils/warehouse-sale-order-receipt-engine.js +207 -0
  198. package/esm/helpers/utils/warehouse-sale-order-x-report-helpers.js +1 -0
  199. package/esm/helpers/utils/warehouse-sale-x-report-helpers.js +1434 -0
  200. package/esm/helpers/utils/warehouse-settings-helpers.js +37 -0
  201. package/esm/helpers/utils/warehouse-void-purchase-order-items-helpers.js +34 -0
  202. package/esm/helpers/utils/warehouse-void-purchase-order-items-report-helpers.js +18 -0
  203. package/esm/helpers/utils/warehouse-void-sale-order-items-helpers.js +34 -0
  204. package/esm/helpers/utils/warehouse-void-sale-order-items-report-helpers.js +18 -0
  205. package/esm/helpers/utils/warehouse_inventory_transactions.js +91 -0
  206. package/esm/helpers/utils/x-report-helpers.js +1850 -0
  207. package/esm/index.js +3 -0
  208. package/esm/schemas/index.js +2 -0
  209. package/esm/schemas/models/app_configs.js +36 -0
  210. package/esm/schemas/models/applied_order_discounts.js +103 -0
  211. package/esm/schemas/models/brands.js +56 -0
  212. package/esm/schemas/models/categories.js +74 -0
  213. package/esm/schemas/models/close_dates.js +63 -0
  214. package/esm/schemas/models/common-models.js +449 -0
  215. package/esm/schemas/models/courses.js +62 -0
  216. package/esm/schemas/models/customer_redemptions.js +82 -0
  217. package/esm/schemas/models/customers.js +269 -0
  218. package/esm/schemas/models/deliveries.js +137 -0
  219. package/esm/schemas/models/delivery_areas.js +97 -0
  220. package/esm/schemas/models/dinein_floors.js +55 -0
  221. package/esm/schemas/models/dinein_tables.js +97 -0
  222. package/esm/schemas/models/dinein_tables_fingerprints.js +96 -0
  223. package/esm/schemas/models/discounts.js +87 -0
  224. package/esm/schemas/models/expense_categories.js +61 -0
  225. package/esm/schemas/models/expense_details.js +130 -0
  226. package/esm/schemas/models/gift_cards.js +342 -0
  227. package/esm/schemas/models/halfhalf_setup.js +142 -0
  228. package/esm/schemas/models/index.js +111 -0
  229. package/esm/schemas/models/internal_customers.js +139 -0
  230. package/esm/schemas/models/internal_invoices.js +119 -0
  231. package/esm/schemas/models/internal_leads.js +78 -0
  232. package/esm/schemas/models/internal_operational_roles.js +85 -0
  233. package/esm/schemas/models/internal_staffs.js +65 -0
  234. package/esm/schemas/models/inventories.js +103 -0
  235. package/esm/schemas/models/inventory_categories.js +52 -0
  236. package/esm/schemas/models/inventory_transactions.js +143 -0
  237. package/esm/schemas/models/item_transactions.js +117 -0
  238. package/esm/schemas/models/items.js +341 -0
  239. package/esm/schemas/models/marketing_fingerprints.js +92 -0
  240. package/esm/schemas/models/menus.js +66 -0
  241. package/esm/schemas/models/messaging_devices.js +99 -0
  242. package/esm/schemas/models/modifier_extras.js +120 -0
  243. package/esm/schemas/models/offers.js +470 -0
  244. package/esm/schemas/models/offers_fingerprints.js +61 -0
  245. package/esm/schemas/models/operational_roles.js +155 -0
  246. package/esm/schemas/models/orders.js +1051 -0
  247. package/esm/schemas/models/printer_settings.js +245 -0
  248. package/esm/schemas/models/public_holidays.js +58 -0
  249. package/esm/schemas/models/reservations.js +127 -0
  250. package/esm/schemas/models/reviews.js +145 -0
  251. package/esm/schemas/models/rewards_usage.js +61 -0
  252. package/esm/schemas/models/riders.js +75 -0
  253. package/esm/schemas/models/specials.js +169 -0
  254. package/esm/schemas/models/staff_shifts.js +66 -0
  255. package/esm/schemas/models/tenant-activity-logs.js +126 -0
  256. package/esm/schemas/models/tenant_active_jobs.js +77 -0
  257. package/esm/schemas/models/tenant_calendar.js +89 -0
  258. package/esm/schemas/models/tenant_cash_drawer_sessions.js +208 -0
  259. package/esm/schemas/models/tenant_cash_drawers.js +60 -0
  260. package/esm/schemas/models/tenant_cash_in_hand_transactions.js +69 -0
  261. package/esm/schemas/models/tenant_cash_in_out.js +104 -0
  262. package/esm/schemas/models/tenant_clients.js +66 -0
  263. package/esm/schemas/models/tenant_day_sessions.js +166 -0
  264. package/esm/schemas/models/tenant_hr_attendance_records.js +87 -0
  265. package/esm/schemas/models/tenant_hr_biometric_enrollments.js +69 -0
  266. package/esm/schemas/models/tenant_hr_departments.js +42 -0
  267. package/esm/schemas/models/tenant_hr_documents.js +71 -0
  268. package/esm/schemas/models/tenant_hr_employees.js +172 -0
  269. package/esm/schemas/models/tenant_hr_leave_requests.js +80 -0
  270. package/esm/schemas/models/tenant_hr_payrolls.js +131 -0
  271. package/esm/schemas/models/tenant_hr_performance_reviews.js +58 -0
  272. package/esm/schemas/models/tenant_hr_policies.js +57 -0
  273. package/esm/schemas/models/tenant_hr_positions.js +48 -0
  274. package/esm/schemas/models/tenant_hr_shift_schedules.js +84 -0
  275. package/esm/schemas/models/tenant_hr_shifts.js +64 -0
  276. package/esm/schemas/models/tenant_instore_shift_sessions.js +204 -0
  277. package/esm/schemas/models/tenant_instore_shifts.js +63 -0
  278. package/esm/schemas/models/tenant_inventory_department_transactions.js +116 -0
  279. package/esm/schemas/models/tenant_inventory_department_utilities.js +85 -0
  280. package/esm/schemas/models/tenant_inventory_departments.js +55 -0
  281. package/esm/schemas/models/tenant_inventory_entries.js +131 -0
  282. package/esm/schemas/models/tenant_metadata.js +88 -0
  283. package/esm/schemas/models/tenant_order_item_instructions.js +66 -0
  284. package/esm/schemas/models/tenant_purchase_order_vendor_returns.js +80 -0
  285. package/esm/schemas/models/tenant_purchase_orders.js +158 -0
  286. package/esm/schemas/models/tenant_shifts.js +57 -0
  287. package/esm/schemas/models/tenant_staffs.js +129 -0
  288. package/esm/schemas/models/tenant_vendors.js +99 -0
  289. package/esm/schemas/models/tenants.js +811 -0
  290. package/esm/schemas/models/terminal_devices.js +63 -0
  291. package/esm/schemas/models/tokens.js +73 -0
  292. package/esm/schemas/models/track_order_numbers.js +42 -0
  293. package/esm/schemas/models/void_order_items.js +210 -0
  294. package/esm/schemas/models/vouchers.js +101 -0
  295. package/esm/schemas/models/wallet_transactions.js +128 -0
  296. package/esm/schemas/models/wallets.js +44 -0
  297. package/esm/schemas/models/warehouse-activity-logs.js +144 -0
  298. package/esm/schemas/models/warehouse_categories.js +83 -0
  299. package/esm/schemas/models/warehouse_clients.js +81 -0
  300. package/esm/schemas/models/warehouse_communications.js +226 -0
  301. package/esm/schemas/models/warehouse_internal_movements.js +463 -0
  302. package/esm/schemas/models/warehouse_inventory_entries.js +125 -0
  303. package/esm/schemas/models/warehouse_inventory_lot_serial_numbers.js +188 -0
  304. package/esm/schemas/models/warehouse_inventory_transactions.js +133 -0
  305. package/esm/schemas/models/warehouse_item_transactions.js +97 -0
  306. package/esm/schemas/models/warehouse_items.js +173 -0
  307. package/esm/schemas/models/warehouse_operational_roles.js +87 -0
  308. package/esm/schemas/models/warehouse_purchase_order_receipts.js +163 -0
  309. package/esm/schemas/models/warehouse_purchase_order_rfqs.js +339 -0
  310. package/esm/schemas/models/warehouse_purchase_order_vendor_returns.js +199 -0
  311. package/esm/schemas/models/warehouse_purchase_orders.js +334 -0
  312. package/esm/schemas/models/warehouse_sale_deliveries.js +155 -0
  313. package/esm/schemas/models/warehouse_sale_invoices.js +229 -0
  314. package/esm/schemas/models/warehouse_sale_order_rfqs.js +340 -0
  315. package/esm/schemas/models/warehouse_sale_orders.js +322 -0
  316. package/esm/schemas/models/warehouse_staffs.js +104 -0
  317. package/esm/schemas/models/warehouse_track_order_numbers.js +73 -0
  318. package/esm/schemas/models/warehouse_vendors.js +99 -0
  319. package/esm/schemas/models/warehouse_void_purchase_order_items.js +174 -0
  320. package/esm/schemas/models/warehouse_void_sale_order_items.js +174 -0
  321. package/esm/schemas/models/warehouses.js +253 -0
  322. package/esm/schemas/types/app_configs.js +1 -0
  323. package/esm/schemas/types/applied_order_discounts.js +1 -0
  324. package/esm/schemas/types/brands.js +1 -0
  325. package/esm/schemas/types/categories.js +1 -0
  326. package/esm/schemas/types/close_dates.js +1 -0
  327. package/esm/schemas/types/common.js +1 -0
  328. package/esm/schemas/types/courses.js +1 -0
  329. package/esm/schemas/types/customer_redemptions.js +1 -0
  330. package/esm/schemas/types/customers.js +1 -0
  331. package/esm/schemas/types/deliveries.js +1 -0
  332. package/esm/schemas/types/delivery_areas.js +1 -0
  333. package/esm/schemas/types/dinein_floors.js +1 -0
  334. package/esm/schemas/types/dinein_tables.js +1 -0
  335. package/esm/schemas/types/dinein_tables_fingerprints.js +1 -0
  336. package/esm/schemas/types/discounts.js +1 -0
  337. package/esm/schemas/types/expense_categories.js +1 -0
  338. package/esm/schemas/types/expense_details.js +1 -0
  339. package/esm/schemas/types/gift_cards.js +1 -0
  340. package/esm/schemas/types/halfhalf_setup.js +1 -0
  341. package/esm/schemas/types/index.js +113 -0
  342. package/esm/schemas/types/internal_customers.js +1 -0
  343. package/esm/schemas/types/internal_invoices.js +1 -0
  344. package/esm/schemas/types/internal_leads.js +1 -0
  345. package/esm/schemas/types/internal_operational_roles.js +16 -0
  346. package/esm/schemas/types/internal_staffs.js +1 -0
  347. package/esm/schemas/types/inventories.js +1 -0
  348. package/esm/schemas/types/inventory_categories.js +1 -0
  349. package/esm/schemas/types/inventory_department_transactions.js +1 -0
  350. package/esm/schemas/types/inventory_department_utilities.js +1 -0
  351. package/esm/schemas/types/inventory_departments.js +1 -0
  352. package/esm/schemas/types/inventory_transactions.js +1 -0
  353. package/esm/schemas/types/item_transactions.js +1 -0
  354. package/esm/schemas/types/items.js +1 -0
  355. package/esm/schemas/types/marketing_fingerprints.js +1 -0
  356. package/esm/schemas/types/menus.js +1 -0
  357. package/esm/schemas/types/messaging_devices.js +1 -0
  358. package/esm/schemas/types/modifier_extras.js +1 -0
  359. package/esm/schemas/types/multi_tenants.js +1 -0
  360. package/esm/schemas/types/offers.js +1 -0
  361. package/esm/schemas/types/offers_fingerprints.js +1 -0
  362. package/esm/schemas/types/operational_roles.js +15 -0
  363. package/esm/schemas/types/orders.js +1 -0
  364. package/esm/schemas/types/printer_settings.js +1 -0
  365. package/esm/schemas/types/public_holidays.js +1 -0
  366. package/esm/schemas/types/reservations.js +1 -0
  367. package/esm/schemas/types/reviews.js +1 -0
  368. package/esm/schemas/types/rewards_usage.js +1 -0
  369. package/esm/schemas/types/riders.js +1 -0
  370. package/esm/schemas/types/specials.js +1 -0
  371. package/esm/schemas/types/staff_shifts.js +1 -0
  372. package/esm/schemas/types/tenant-activity-logs.js +1 -0
  373. package/esm/schemas/types/tenant_active_jobs.js +1 -0
  374. package/esm/schemas/types/tenant_calendar.js +1 -0
  375. package/esm/schemas/types/tenant_cash_drawer_sessions.js +1 -0
  376. package/esm/schemas/types/tenant_cash_drawers.js +1 -0
  377. package/esm/schemas/types/tenant_cash_in_hand_transactions.js +1 -0
  378. package/esm/schemas/types/tenant_cash_in_out.js +1 -0
  379. package/esm/schemas/types/tenant_clients.js +1 -0
  380. package/esm/schemas/types/tenant_day_sessions.js +1 -0
  381. package/esm/schemas/types/tenant_hr_attendance_records.js +1 -0
  382. package/esm/schemas/types/tenant_hr_biometric_enrollments.js +1 -0
  383. package/esm/schemas/types/tenant_hr_departments.js +1 -0
  384. package/esm/schemas/types/tenant_hr_documents.js +1 -0
  385. package/esm/schemas/types/tenant_hr_employees.js +1 -0
  386. package/esm/schemas/types/tenant_hr_leave_requests.js +1 -0
  387. package/esm/schemas/types/tenant_hr_payrolls.js +1 -0
  388. package/esm/schemas/types/tenant_hr_performance_reviews.js +1 -0
  389. package/esm/schemas/types/tenant_hr_policies.js +1 -0
  390. package/esm/schemas/types/tenant_hr_positions.js +1 -0
  391. package/esm/schemas/types/tenant_hr_shift_schedules.js +1 -0
  392. package/esm/schemas/types/tenant_hr_shifts.js +1 -0
  393. package/esm/schemas/types/tenant_instore_shift_sessions.js +1 -0
  394. package/esm/schemas/types/tenant_instore_shifts.js +1 -0
  395. package/esm/schemas/types/tenant_inventory_entries.js +1 -0
  396. package/esm/schemas/types/tenant_metadata.js +1 -0
  397. package/esm/schemas/types/tenant_order_item_instructions.js +1 -0
  398. package/esm/schemas/types/tenant_purchase_order_vendor_returns.js +1 -0
  399. package/esm/schemas/types/tenant_purchase_orders.js +1 -0
  400. package/esm/schemas/types/tenant_shifts.js +1 -0
  401. package/esm/schemas/types/tenant_staffs.js +1 -0
  402. package/esm/schemas/types/tenant_vendors.js +1 -0
  403. package/esm/schemas/types/tenants.js +1 -0
  404. package/esm/schemas/types/terminal_devices.js +1 -0
  405. package/esm/schemas/types/tokens.js +1 -0
  406. package/esm/schemas/types/track_order_numbers.js +1 -0
  407. package/esm/schemas/types/void_order_items.js +1 -0
  408. package/esm/schemas/types/vouchers.js +1 -0
  409. package/esm/schemas/types/wallet_transactions.js +1 -0
  410. package/esm/schemas/types/wallets.js +1 -0
  411. package/esm/schemas/types/warehouse-activity-logs.js +1 -0
  412. package/esm/schemas/types/warehouse_categories.js +1 -0
  413. package/esm/schemas/types/warehouse_clients.js +1 -0
  414. package/esm/schemas/types/warehouse_communications.js +1 -0
  415. package/esm/schemas/types/warehouse_internal_movements.js +1 -0
  416. package/esm/schemas/types/warehouse_inventory_entries.js +1 -0
  417. package/esm/schemas/types/warehouse_inventory_lot_serial_numbers.js +1 -0
  418. package/esm/schemas/types/warehouse_inventory_transactions.js +1 -0
  419. package/esm/schemas/types/warehouse_item_transactions.js +1 -0
  420. package/esm/schemas/types/warehouse_items.js +1 -0
  421. package/esm/schemas/types/warehouse_operational_roles.js +15 -0
  422. package/esm/schemas/types/warehouse_purchase_order_receipts.js +18 -0
  423. package/esm/schemas/types/warehouse_purchase_order_rfqs.js +1 -0
  424. package/esm/schemas/types/warehouse_purchase_order_vendor_returns.js +1 -0
  425. package/esm/schemas/types/warehouse_purchase_orders.js +1 -0
  426. package/esm/schemas/types/warehouse_sale_deliveries.js +1 -0
  427. package/esm/schemas/types/warehouse_sale_invoices.js +1 -0
  428. package/esm/schemas/types/warehouse_sale_order_rfqs.js +1 -0
  429. package/esm/schemas/types/warehouse_sale_orders.js +1 -0
  430. package/esm/schemas/types/warehouse_staffs.js +1 -0
  431. package/esm/schemas/types/warehouse_track_order_numbers.js +1 -0
  432. package/esm/schemas/types/warehouse_vendors.js +1 -0
  433. package/esm/schemas/types/warehouse_void_purchase_order_items.js +1 -0
  434. package/esm/schemas/types/warehouse_void_sale_order_items.js +1 -0
  435. package/esm/schemas/types/warehouses.js +1 -0
  436. package/package.json +6 -3
@@ -0,0 +1,1046 @@
1
+ import moment from 'moment';
2
+ import { PAYMENT_TYPE_ENUM } from '../../constants';
3
+ import { localeAmount } from './common';
4
+ const getHead = (monochrome) => {
5
+ const palette = monochrome
6
+ ? {
7
+ headingText: '#000000',
8
+ colorBlue: '#000000',
9
+ colorRed: '#000000',
10
+ colorOrange: '#000000',
11
+ colorGreen: '#000000',
12
+ text: '#000000',
13
+ textFaded: '#000000',
14
+ border: '#000000',
15
+ greyBorder: '#000000',
16
+ whiteBackground: ' #FFFFFF',
17
+ boxShadow: '#000000',
18
+ containerBackground: '#FFFFFF',
19
+ }
20
+ : {
21
+ headingText: '#FFFFFF',
22
+ colorBlue: '#0000ff',
23
+ colorRed: '#ff0000',
24
+ colorOrange: '#ff5e0e',
25
+ colorGreen: '#008000',
26
+ text: '#333333',
27
+ textFaded: '#777777',
28
+ border: '#FFFFFF',
29
+ greyBorder: '#dcdcdc',
30
+ whiteBackground: ' #FFFFFF',
31
+ boxShadow: 'rgba(99, 99, 99, 0.2)',
32
+ containerBackground: '#F5F5F5',
33
+ };
34
+ const fontLink = monochrome
35
+ ? `<link
36
+ rel="stylesheet"
37
+ href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;700&display=swap"
38
+ crossorigin="anonymous"
39
+ />`
40
+ : `<link
41
+ rel="stylesheet"
42
+ href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&amp;display=swap"
43
+ crossorigin="anonymous"
44
+ />`;
45
+ return `
46
+ <head>
47
+ <meta charset="UTF-8" />
48
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
49
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
50
+ ${fontLink}
51
+ <style>
52
+ .cssc-1qeq10-kjlask {
53
+ display: flex;
54
+ flex-direction: column;
55
+ align-items: center;
56
+ justify-content: center;
57
+ text-align: center;
58
+ gap: 4px;
59
+ margin-top: 8px;
60
+ margin-bottom: 8px;
61
+
62
+ .cssc-1gb95rg-oilkj {
63
+ -webkit-font-smoothing: antialiased;
64
+ -webkit-text-size-adjust: 100%;
65
+ box-sizing: inherit;
66
+ margin: 0;
67
+ font-weight: 500;
68
+ line-height: 1.25rem;
69
+ font-size: 1.25rem;
70
+ text-align: center;
71
+ flex: 1;
72
+ }
73
+
74
+ -webkit-text-size-adjust: 100%;
75
+ color: ${palette.text};
76
+ box-sizing: inherit;
77
+ margin: 0;
78
+ font-size: 0.875rem;
79
+ line-height: 1.15rem;
80
+ font-family: Roboto, Public Sans, sans-serif;
81
+ font-weight: 400;
82
+ }
83
+
84
+ .cssc-1ebo3of-oilkj {
85
+ -webkit-font-smoothing: antialiased;
86
+ -webkit-text-size-adjust: 100%;
87
+
88
+ border-collapse: collapse;
89
+ border-spacing: 0;
90
+ text-align: left;
91
+ color: ${palette.text};
92
+ box-sizing: inherit;
93
+ margin: 0;
94
+ line-height: 1.1375rem;
95
+ font-size: 0.875rem;
96
+ font-family: Roboto, Public Sans, sans-serif;
97
+ font-weight: 400;
98
+ }
99
+ .css-overview-container {
100
+ -webkit-font-smoothing: antialiased;
101
+ -webkit-text-size-adjust: 100%;
102
+ color: ${palette.text};
103
+ background-color: ${palette.containerBackground};
104
+ line-height: 1.15rem;
105
+ font-size: 1rem;
106
+ font-family: Roboto, Public Sans, sans-serif;
107
+ font-weight: 400;
108
+ box-sizing: inherit;
109
+ display: flex;
110
+ flex-direction: column;
111
+ overflow: hidden;
112
+ overflow-y: auto;
113
+ padding: 20px;
114
+ flex: 1;
115
+ scrollbar-width: none;
116
+ }
117
+
118
+ .css-overview-asjqqe {
119
+ -webkit-font-smoothing: antialiased;
120
+ -webkit-text-size-adjust: 100%;
121
+ color: ${palette.text};
122
+ line-height: 1.15rem;
123
+ font-size: 1rem;
124
+ font-family: Roboto, Public Sans, sans-serif;
125
+ font-weight: 400;
126
+ box-sizing: inherit;
127
+ padding: 14px;
128
+ display: flex;
129
+ flex: 1;
130
+ gap: 20px;
131
+ height: auto;
132
+ min-height: 60px;
133
+ background-color: ${palette.whiteBackground};
134
+ border: 1px solid ${palette.boxShadow};
135
+ border-radius: 8px;
136
+ flex-wrap: wrap;
137
+ justify-content: space-between;
138
+ }
139
+ .css-overview-qsacnoq {
140
+ -webkit-font-smoothing: antialiased;
141
+ -webkit-text-size-adjust: 100%;
142
+ color: ${palette.text};
143
+ line-height: 1.15rem;
144
+ font-size: 1rem;
145
+ font-family: Roboto, Public Sans, sans-serif;
146
+ font-weight: 400;
147
+ box-sizing: inherit;
148
+ display: flex;
149
+ flex-direction: column;
150
+ -webkit-box-pack: justify;
151
+ justify-content: space-between;
152
+ }
153
+ .css-overview-aqowahs {
154
+ -webkit-font-smoothing: antialiased;
155
+ -webkit-text-size-adjust: 100%;
156
+ box-sizing: inherit;
157
+ margin: 0;
158
+ font-weight: 700;
159
+ line-height: 1.625rem;
160
+ font-family: Roboto, Public Sans, sans-serif;
161
+ color: ${palette.colorBlue};
162
+ font-size: 1.75rem;
163
+ }
164
+ .css-overview-qncahaq {
165
+ -webkit-font-smoothing: antialiased;
166
+ -webkit-text-size-adjust: 100%;
167
+ color: ${palette.text};
168
+ line-height: 1.15rem;
169
+ font-size: 1rem;
170
+ font-family: Roboto, Public Sans, sans-serif;
171
+ font-weight: 400;
172
+ box-sizing: inherit;
173
+ display: flex;
174
+ flex-direction: column;
175
+ -webkit-box-pack: justify;
176
+ justify-content: space-between;
177
+ }
178
+ .css-overview-bcjakqee {
179
+ -webkit-font-smoothing: antialiased;
180
+ -webkit-text-size-adjust: 100%;
181
+ box-sizing: inherit;
182
+ font-weight: 700;
183
+ line-height: 1.625rem;
184
+ font-family: Roboto, Public Sans, sans-serif;
185
+ color: ${palette.colorOrange};
186
+ font-size: 1.75rem;
187
+ margin: 0;
188
+ margin-top: 8px;
189
+ }
190
+ .css-overview-ahqepoi {
191
+ -webkit-font-smoothing: antialiased;
192
+ -webkit-text-size-adjust: 100%;
193
+ color: ${palette.text};
194
+ line-height: 1.15rem;
195
+ font-size: 1rem;
196
+ font-family: Roboto, Public Sans, sans-serif;
197
+ font-weight: 400;
198
+ box-sizing: inherit;
199
+ display: flex;
200
+ flex-direction: column;
201
+ // flex: 1;
202
+ -webkit-box-pack: justify;
203
+ justify-content: space-between;
204
+ }
205
+ .css-overview-asncjqloqp {
206
+ -webkit-font-smoothing: antialiased;
207
+ -webkit-text-size-adjust: 100%;
208
+ box-sizing: inherit;
209
+ line-height: 1.15rem;
210
+ font-size: 1rem;
211
+ font-family: Roboto, Public Sans, sans-serif;
212
+ font-weight: 400;
213
+ color: ${palette.textFaded};
214
+ margin: 0;
215
+ }
216
+ .css-overview-namqpoiu {
217
+ -webkit-font-smoothing: antialiased;
218
+ -webkit-text-size-adjust: 100%;
219
+ box-sizing: inherit;
220
+ font-weight: 700;
221
+ line-height: 1.625rem;
222
+ font-family: Roboto, Public Sans, sans-serif;
223
+ color: ${palette.colorGreen};
224
+ font-size: 1.75rem;
225
+ margin: 0;
226
+ margin-top: 8px;
227
+ }
228
+ .css-overview-ansjqios {
229
+ -webkit-font-smoothing: antialiased;
230
+ -webkit-text-size-adjust: 100%;
231
+ color: ${palette.text};
232
+ line-height: 1.15rem;
233
+ font-size: 1rem;
234
+ font-family: Roboto, Public Sans, sans-serif;
235
+ font-weight: 400;
236
+ box-sizing: inherit;
237
+ display: flex;
238
+ flex-direction: row;
239
+ -webkit-box-align: center;
240
+ align-items: center;
241
+ margin: 0;
242
+ gap: 5px;
243
+ }
244
+ .css-overview-tyupqoccs {
245
+ -webkit-font-smoothing: antialiased;
246
+ -webkit-text-size-adjust: 100%;
247
+ box-sizing: inherit;
248
+ font-weight: 500;
249
+ line-height: 1.15rem;
250
+ font-size: 1rem;
251
+ font-family: Roboto, Public Sans, sans-serif;
252
+ color: ${palette.colorBlue};
253
+ margin: 0;
254
+ }
255
+ .css-overview-nvmasqwqq {
256
+ -webkit-font-smoothing: antialiased;
257
+ -webkit-text-size-adjust: 100%;
258
+ box-sizing: inherit;
259
+ font-weight: 500;
260
+ line-height: 1.15rem;
261
+ font-size: 1rem;
262
+ font-family: Roboto, Public Sans, sans-serif;
263
+ color: ${palette.text};
264
+ margin: 0;
265
+ }
266
+
267
+ .css-overview-cbahqjlaissa {
268
+ -webkit-font-smoothing: antialiased;
269
+ -webkit-text-size-adjust: 100%;
270
+ box-sizing: inherit;
271
+ font-weight: 700;
272
+ line-height: 1.625rem;
273
+ font-family: Roboto, Public Sans, sans-serif;
274
+ color: ${palette.colorRed};
275
+ font-size: 1.75rem;
276
+ margin: 0;
277
+ margin-top: 8px;
278
+ }
279
+ .css-overview-abscjqkisal {
280
+ -webkit-font-smoothing: antialiased;
281
+ -webkit-text-size-adjust: 100%;
282
+ color: ${palette.text};
283
+ line-height: 1.15rem;
284
+ font-size: 1rem;
285
+ font-family: Roboto, Public Sans, sans-serif;
286
+ font-weight: 400;
287
+ box-sizing: inherit;
288
+ display: flex;
289
+ flex-direction: column;
290
+ margin: 0;
291
+ margin-top: 16px;
292
+ }
293
+ .css-overview-allqiwqpoi {
294
+ -webkit-font-smoothing: antialiased;
295
+ -webkit-text-size-adjust: 100%;
296
+ color: ${palette.text};
297
+ box-sizing: inherit;
298
+ font-weight: 500;
299
+ line-height: 1.4625000000000001rem;
300
+ font-family: Roboto, Public Sans, sans-serif;
301
+ font-size: 1.5rem;
302
+ margin: 0;
303
+ }
304
+
305
+ .css-overview-nvbasjqlww {
306
+ -webkit-font-smoothing: antialiased;
307
+ -webkit-text-size-adjust: 100%;
308
+ color: ${palette.text};
309
+ line-height: 1.15rem;
310
+ font-size: 1rem;
311
+ font-family: Roboto, Public Sans, sans-serif;
312
+ font-weight: 400;
313
+ box-sizing: inherit;
314
+ display: flex;
315
+ flex-direction: column;
316
+ margin: 0;
317
+ margin-top: 14px;
318
+ }
319
+ .css-overview-asbbqwkqw {
320
+ -webkit-font-smoothing: antialiased;
321
+ -webkit-text-size-adjust: 100%;
322
+ color: ${palette.text};
323
+ line-height: 1.15rem;
324
+ font-size: 1rem;
325
+ font-family: Roboto, Public Sans, sans-serif;
326
+ font-weight: 400;
327
+ --Grid-columns: 12;
328
+ --Grid-columnSpacing: 16px;
329
+ --Grid-rowSpacing: 16px;
330
+ box-sizing: border-box;
331
+ display: flex;
332
+ flex-wrap: wrap;
333
+ gap: 8px;
334
+ }
335
+ .css-overview-abcakfsqxq {
336
+ -webkit-font-smoothing: antialiased;
337
+ -webkit-text-size-adjust: 100%;
338
+ color: ${palette.text};
339
+ line-height: 1.15rem;
340
+ font-size: 1rem;
341
+ font-family: Roboto, Public Sans, sans-serif;
342
+ font-weight: 400;
343
+ box-sizing: border-box;
344
+ flex: 1;
345
+ min-width: 150px;
346
+ max-width: calc(50% - 5px)
347
+ }
348
+
349
+ .css-overview-bhcaloiqqw {
350
+ -webkit-font-smoothing: antialiased;
351
+ -webkit-text-size-adjust: 100%;
352
+ color: ${palette.text};
353
+ line-height: 1.15rem;
354
+ font-size: 1rem;
355
+ font-family: Roboto, Public Sans, sans-serif;
356
+ font-weight: 400;
357
+ box-sizing: inherit;
358
+ padding: 10px;
359
+ display: flex;
360
+ flex-direction: column;
361
+ gap: 8px;
362
+ height: 100%;
363
+ background-color: ${palette.whiteBackground};
364
+ border: 1px solid ${palette.boxShadow};
365
+ border-radius: 8px;
366
+ position: relative;
367
+ // width: 250px;
368
+ min-width: max-content;
369
+ }
370
+ .css-overview-asbchqlwie {
371
+ -webkit-font-smoothing: antialiased;
372
+ -webkit-text-size-adjust: 100%;
373
+ color: ${palette.text};
374
+ line-height: 1.15rem;
375
+ font-size: 1rem;
376
+ font-family: Roboto, Public Sans, sans-serif;
377
+ font-weight: 400;
378
+ box-sizing: inherit;
379
+ display: flex;
380
+ flex-direction: column;
381
+ -webkit-box-pack: justify;
382
+ justify-content: space-between;
383
+ }
384
+
385
+ .css-f9q4nd-MuiTypography-root32d {
386
+ -webkit-font-smoothing: antialiased;
387
+ -webkit-text-size-adjust: 100%;
388
+ box-sizing: inherit;
389
+ font-weight: 500;
390
+ line-height: 1.15rem;
391
+ font-size: 1rem;
392
+ font-family: Roboto, Public Sans, sans-serif;
393
+ color: ${palette.colorRed};
394
+ margin: 0;
395
+ }
396
+ .css-18rcx6o-MuiTypography-rootdasda {
397
+ -webkit-font-smoothing: antialiased;
398
+ -webkit-text-size-adjust: 100%;
399
+ box-sizing: inherit;
400
+ font-weight: 500;
401
+ line-height: 1.38125rem;
402
+ font-family: Roboto, Public Sans, sans-serif;
403
+ color: ${palette.colorRed};
404
+ text-decoration: none;
405
+ font-size: 1.125rem;
406
+ margin: 0;
407
+ margin-top: 6px;
408
+ }
409
+ .css-overview-asbchqkww {
410
+ -webkit-font-smoothing: antialiased;
411
+ -webkit-text-size-adjust: 100%;
412
+ color: ${palette.text};
413
+ line-height: 1.15rem;
414
+ font-size: 1rem;
415
+ font-family: Roboto, Public Sans, sans-serif;
416
+ font-weight: 400;
417
+ min-width: 300px;
418
+ box-sizing: border-box;
419
+ -webkit-box-flex: 0;
420
+ flex-grow: 0;
421
+ flex: 1;
422
+ flex-basis: auto;
423
+ }
424
+ .css-overview-vbhasqwds{
425
+ -webkit-font-smoothing: antialiased;
426
+ -webkit-text-size-adjust: 100%;
427
+ color: ${palette.text};
428
+ line-height: 1.15rem;
429
+ font-size: 1rem;
430
+ font-family: Roboto, Public Sans, sans-serif;
431
+ font-weight: 400;
432
+ box-sizing: inherit;
433
+ display: flex;
434
+ flex-direction: column;
435
+ gap: 8px;
436
+ background-color:${palette.whiteBackground};
437
+ border-radius: 8px;
438
+ border: 1px solid ${palette.boxShadow};
439
+ position: relative;
440
+ }
441
+
442
+ .css-4yyxib-MuiStack-rootdas3dsd {
443
+ -webkit-font-smoothing: antialiased;
444
+ -webkit-text-size-adjust: 100%;
445
+ color: ${palette.text};
446
+ line-height: 1.15rem;
447
+ font-size: 1rem;
448
+ font-family: Roboto, Public Sans, sans-serif;
449
+ font-weight: 400;
450
+ box-sizing: inherit;
451
+ display: flex;
452
+ flex-direction: row;
453
+ -webkit-box-pack: justify;
454
+ justify-content: space-between;
455
+ -webkit-box-align: center;
456
+ align-items: center;
457
+ padding: 10px;
458
+ border-top-left-radius: 8px;
459
+ border-top-right-radius: 8px;
460
+ background-color: ${palette.whiteBackground};
461
+ border-bottom: 1px solid ${palette.greyBorder};
462
+ }
463
+ .css-lh1q0c-MuiStack-rootdas6d {
464
+ -webkit-font-smoothing: antialiased;
465
+ -webkit-text-size-adjust: 100%;
466
+ color: ${palette.text};
467
+ line-height: 1.15rem;
468
+ font-size: 1rem;
469
+ font-family: Roboto, Public Sans, sans-serif;
470
+ font-weight: 400;
471
+ box-sizing: inherit;
472
+ display: flex;
473
+ flex-direction: column;
474
+ gap: 8px;
475
+ padding: 10px;
476
+ }
477
+ .css-1aua8yd-MuiStack-rootdas4asd {
478
+ -webkit-font-smoothing: antialiased;
479
+ -webkit-text-size-adjust: 100%;
480
+ color: ${palette.text};
481
+ line-height: 1.15rem;
482
+ font-size: 1rem;
483
+ font-family: Roboto, Public Sans, sans-serif;
484
+ font-weight: 400;
485
+ box-sizing: inherit;
486
+ display: flex;
487
+ flex-direction: row;
488
+ align-items: flex-start;
489
+ -webkit-box-pack: justify;
490
+ justify-content: space-between;
491
+ }
492
+ .css-1eeo5n-MuiTypography-rootdds3s {
493
+ -webkit-font-smoothing: antialiased;
494
+ -webkit-text-size-adjust: 100%;
495
+ color: ${palette.text};
496
+ line-height: 1.15rem;
497
+ font-size: 1rem;
498
+ font-family: Roboto, Public Sans, sans-serif;
499
+ font-weight: 400;
500
+
501
+ box-sizing: inherit;
502
+ border-radius: 5px;
503
+ margin: 0;
504
+ white-space: nowrap;
505
+ }
506
+
507
+ .css-1t7714r-MuiTypography-rootcas3das {
508
+ -webkit-font-smoothing: antialiased;
509
+ -webkit-text-size-adjust: 100%;
510
+ box-sizing: inherit;
511
+ font-weight: 500;
512
+ line-height: 1.38125rem;
513
+ font-family: Roboto, Public Sans, sans-serif;
514
+ color: ${palette.colorGreen};
515
+ font-size: 1.125rem;
516
+ margin: 0;
517
+ margin-left: 16px;
518
+ }
519
+ .css-1oxswqj-MuiStack-rootcds {
520
+ -webkit-font-smoothing: antialiased;
521
+ -webkit-text-size-adjust: 100%;
522
+ color: ${palette.text};
523
+ line-height: 1.15rem;
524
+ font-size: 1rem;
525
+ font-family: Roboto, Public Sans, sans-serif;
526
+ font-weight: 400;
527
+ box-sizing: inherit;
528
+ display: flex;
529
+ flex-direction: row;
530
+ gap: 8px;
531
+ }
532
+ .css-overview-ascbjqwqwui {
533
+ -webkit-font-smoothing: antialiased;
534
+ -webkit-text-size-adjust: 100%;
535
+ color: ${palette.text};
536
+ line-height: 1.15rem;
537
+ font-size: 1rem;
538
+ font-family: Roboto, Public Sans, sans-serif;
539
+ font-weight: 400;
540
+ box-sizing: inherit;
541
+ height: 100%;
542
+ min-height: 25px;
543
+ border-left: 1px solid ${palette.greyBorder};
544
+ border-bottom: 1px solid ${palette.greyBorder};
545
+ width: 20px;
546
+ margin-left: 0px;
547
+ }
548
+ .css-p9qkyz-MuiStack-rootasd {
549
+ -webkit-font-smoothing: antialiased;
550
+ -webkit-text-size-adjust: 100%;
551
+ color: ${palette.text};
552
+ line-height: 1.15rem;
553
+ font-size: 1rem;
554
+ font-family: Roboto, Public Sans, sans-serif;
555
+ font-weight: 400;
556
+ box-sizing: inherit;
557
+ display: flex;
558
+ flex-direction: row;
559
+ -webkit-box-align: center;
560
+ align-items: center;
561
+ -webkit-box-pack: justify;
562
+ justify-content: space-between;
563
+ width: 100%;
564
+ padding-top: 8px;
565
+ }
566
+ .css-1eg2ah8-MuiTypography-rootasas {
567
+ -webkit-font-smoothing: antialiased;
568
+ -webkit-text-size-adjust: 100%;
569
+ color: ${palette.text};
570
+ box-sizing: inherit;
571
+ font-weight: 500;
572
+ line-height: 1.15rem;
573
+ font-size: 1rem;
574
+ font-family: Roboto, Public Sans, sans-serif;
575
+ margin: 0;
576
+ margin-left: 16px;
577
+ }
578
+
579
+ ${monochrome
580
+ ? `
581
+ /* Receipt Printer Optimized Styles - Monochrome */
582
+
583
+ .cssc-1qeq10-kjlask {
584
+ display: flex !important;
585
+ flex-direction: column !important;
586
+ gap: 1px !important;
587
+ margin-top: 2px !important;
588
+ margin-bottom: 2px !important;
589
+ align-items: center !important;
590
+ justify-content: center !important;
591
+ text-align: center !important;
592
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
593
+ }
594
+
595
+ .cssc-1gb95rg-oilkj {
596
+ font-size: 24px !important;
597
+ line-height: 26px !important;
598
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
599
+ }
600
+
601
+ .cssc-1iy4zoj-oilkj {
602
+ font-size: 17px !important;
603
+ line-height: 19px !important;
604
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
605
+ }
606
+
607
+ .cssc-1ebo3of-oilkj {
608
+ font-size: 17px !important;
609
+ line-height: 19px !important;
610
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
611
+ }
612
+
613
+ .css-1n63ry-MuiTypography-root12 {
614
+ font-size: 22px !important;
615
+ line-height: 24px !important;
616
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
617
+ }
618
+
619
+ .css-1n63ry-MuiTypography-root1asd {
620
+ font-size: 17px !important;
621
+ line-height: 19px !important;
622
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
623
+ }
624
+
625
+ .css-1n63ry-MuiTypography-subtitleas {
626
+ font-size: 16px !important;
627
+ line-height: 18px !important;
628
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
629
+ }
630
+
631
+ .css-1owvoyj-asbq {
632
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
633
+ }
634
+
635
+ .css-1xflghj-Paper {
636
+ padding: 2px !important;
637
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
638
+ }
639
+
640
+ .css-16cvru6-MuiStack-rootsss {
641
+ gap: 2px !important;
642
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
643
+ }
644
+
645
+ .css-1bbyf0h {
646
+ padding: 2px 0px !important;
647
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
648
+ }
649
+
650
+ .css-p9qkyz-MuiStack-rootasd {
651
+ padding-top: 4px !important;
652
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
653
+ }
654
+
655
+ .css-1eg2ah8-MuiTypography-rootasas {
656
+ font-size: 17px !important;
657
+ line-height: 19px !important;
658
+ margin-left: 8px !important;
659
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
660
+ }
661
+
662
+ .css-1ialerq {
663
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
664
+ }
665
+
666
+ .css-gmwslw-kjlask {
667
+ font-size: 17px !important;
668
+ line-height: 19px !important;
669
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
670
+ }
671
+
672
+ .css-gmwslw-kjlask-for-card {
673
+ font-size: 17px !important;
674
+ line-height: 19px !important;
675
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
676
+ }
677
+
678
+ .css-13sv1r4-oilkj {
679
+ font-size: 17px !important;
680
+ line-height: 19px !important;
681
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
682
+ }
683
+
684
+ .css-1ebo3of-gaplas-akas {
685
+ width: 10px !important;
686
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
687
+ }
688
+
689
+ /* Sales Overview Specific - Larger Fonts for Receipt */
690
+ .css-overview-container {
691
+ font-size: 17px !important;
692
+ line-height: 19px !important;
693
+ padding: 2px !important;
694
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
695
+ }
696
+
697
+ .css-overview-asjqqe {
698
+ padding: 4px !important;
699
+ gap: 8px !important;
700
+ min-height: 40px !important;
701
+ height: auto !important;
702
+ font-size: 17px !important;
703
+ line-height: 19px !important;
704
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
705
+ }
706
+
707
+ .css-overview-qsacnoq,
708
+ .css-overview-qncahaq,
709
+ .css-overview-ahqepoi {
710
+ font-size: 17px !important;
711
+ line-height: 19px !important;
712
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
713
+ }
714
+
715
+ .css-overview-aqowahs,
716
+ .css-overview-bcjakqee,
717
+ .css-overview-namqpoiu,
718
+ .css-overview-cbahqjlaissa {
719
+ font-size: 20px !important;
720
+ line-height: 22px !important;
721
+ margin-top: 2px !important;
722
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
723
+ }
724
+
725
+ .css-overview-asncjqloqp {
726
+ font-size: 16px !important;
727
+ line-height: 18px !important;
728
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
729
+ }
730
+
731
+ .css-overview-ansjqios {
732
+ font-size: 17px !important;
733
+ line-height: 19px !important;
734
+ gap: 2px !important;
735
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
736
+ }
737
+
738
+ .css-overview-tyupqoccs,
739
+ .css-overview-nvmasqwqq {
740
+ font-size: 17px !important;
741
+ line-height: 19px !important;
742
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
743
+ }
744
+
745
+ .css-overview-abscjqkisal {
746
+ margin-top: 4px !important;
747
+ font-size: 17px !important;
748
+ line-height: 19px !important;
749
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
750
+ }
751
+
752
+ .css-overview-allqiwqpoi {
753
+ font-size: 20px !important;
754
+ line-height: 22px !important;
755
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
756
+ }
757
+
758
+ .css-overview-nvbasjqlww {
759
+ margin-top: 4px !important;
760
+ font-size: 17px !important;
761
+ line-height: 19px !important;
762
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
763
+ }
764
+
765
+ .css-overview-asbbqwkqw {
766
+ gap: 4px !important;
767
+ font-size: 17px !important;
768
+ line-height: 19px !important;
769
+ flex-direction: column !important;
770
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
771
+ }
772
+
773
+ .css-overview-abcakfsqxq {
774
+ font-size: 17px !important;
775
+ line-height: 19px !important;
776
+ max-width: 100% !important;
777
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
778
+ }
779
+
780
+ .css-overview-bhcaloiqqw {
781
+ padding: 4px !important;
782
+ gap: 4px !important;
783
+ font-size: 17px !important;
784
+ line-height: 19px !important;
785
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
786
+ }
787
+
788
+ .css-overview-asbchqlwie {
789
+ font-size: 17px !important;
790
+ line-height: 19px !important;
791
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
792
+ }
793
+
794
+ .css-f9q4nd-MuiTypography-root32d {
795
+ font-size: 17px !important;
796
+ line-height: 19px !important;
797
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
798
+ }
799
+
800
+ .css-18rcx6o-MuiTypography-rootdasda {
801
+ font-size: 18px !important;
802
+ line-height: 20px !important;
803
+ margin-top: 2px !important;
804
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
805
+ }
806
+
807
+ .css-overview-asbchqkww {
808
+ min-width: 100% !important;
809
+ width: 100% !important;
810
+ flex: 1 1 100% !important;
811
+ font-size: 17px !important;
812
+ line-height: 19px !important;
813
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
814
+ }
815
+
816
+ .css-overview-vbhasqwds {
817
+ gap: 4px !important;
818
+ font-size: 17px !important;
819
+ line-height: 19px !important;
820
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
821
+ }
822
+
823
+ .css-4yyxib-MuiStack-rootdas3dsd {
824
+ padding: 4px !important;
825
+ font-size: 17px !important;
826
+ line-height: 19px !important;
827
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
828
+ }
829
+
830
+ .css-lh1q0c-MuiStack-rootdas6d {
831
+ gap: 4px !important;
832
+ padding: 4px !important;
833
+ font-size: 17px !important;
834
+ line-height: 19px !important;
835
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
836
+ }
837
+
838
+ .css-1aua8yd-MuiStack-rootdas4asd {
839
+ font-size: 17px !important;
840
+ line-height: 19px !important;
841
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
842
+ }
843
+
844
+ .css-1eeo5n-MuiTypography-rootdds3s {
845
+ font-size: 17px !important;
846
+ line-height: 19px !important;
847
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
848
+ }
849
+
850
+ .css-1t7714r-MuiTypography-rootcas3das {
851
+ font-size: 18px !important;
852
+ line-height: 20px !important;
853
+ margin-left: 4px !important;
854
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
855
+ }
856
+
857
+ .css-1oxswqj-MuiStack-rootcds {
858
+ gap: 4px !important;
859
+ font-size: 17px !important;
860
+ line-height: 19px !important;
861
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
862
+ }
863
+
864
+ .css-overview-ascbjqwqwui {
865
+ min-height: 15px !important;
866
+ width: 10px !important;
867
+ font-family: "Roboto Condensed", Roboto, sans-serif !important;
868
+ }
869
+ `
870
+ : ''}
871
+ }
872
+ </style>
873
+ <title>Printer Receipt</title>
874
+ </head>`;
875
+ };
876
+ function getBody({ complimentaryData, unpaidData, paymentTypeData, channelData, collectionData, totalSales, cancelledOrders, currencySymbol, tenantName, monochrome, isFilterApplied, from, to, }) {
877
+ if (totalSales == null)
878
+ return '';
879
+ const renderAmount = (amount) => localeAmount(currencySymbol, amount ?? 0);
880
+ const renderSubChannels = (subChannels) => subChannels
881
+ .map((sub) => `
882
+ <div class="css-1oxswqj-MuiStack-rootcds">
883
+ <div class="css-overview-ascbjqwqwui" style="margin-left: ${sub.level * 30}px;"></div>
884
+ <div class="css-p9qkyz-MuiStack-rootasd">
885
+ <div class="css-overview-ansjqios">
886
+ <h6 class="css-overview-nvmasqwqq">${sub.count}</h6>
887
+ <p class="css-overview-asncjqloqp">${sub.name}</p>
888
+ </div>
889
+ ${sub.grossAmount > 0
890
+ ? `<h6 class="css-1eg2ah8-MuiTypography-rootasas">${renderAmount(sub.grossAmount)}</h6>`
891
+ : ''}
892
+ </div>
893
+ </div>`)
894
+ .join('');
895
+ const renderBreakdownBlock = (data) => data
896
+ .map((item) => `
897
+ <div class="css-overview-nvbasjqlww">
898
+ <div class="css-1aua8yd-MuiStack-rootdas4asd">
899
+ <div class="css-overview-ansjqios">
900
+ <h6 class="css-overview-tyupqoccs">${item.count}</h6>
901
+ <h6 class="css-1eeo5n-MuiTypography-rootdds3s">${item.name}</h6>
902
+ </div>
903
+ ${item.grossAmount > 0
904
+ ? `<h6 class="css-1t7714r-MuiTypography-rootcas3das">${renderAmount(item.grossAmount)}</h6>`
905
+ : ''}
906
+ </div>
907
+ ${renderSubChannels(item.subChannels)}
908
+ </div>`)
909
+ .join('');
910
+ const renderPaymentBreakdown = () => paymentTypeData
911
+ .map((payment) => {
912
+ const isComplimentary = payment._id === PAYMENT_TYPE_ENUM.COMPLIMENTARY;
913
+ const getPaymentColor = (id) => {
914
+ if (monochrome)
915
+ return '#000000';
916
+ if (id === PAYMENT_TYPE_ENUM.UNPAID)
917
+ return '#d32f2f';
918
+ if (id === PAYMENT_TYPE_ENUM.COMPLIMENTARY)
919
+ return '#ed6c02';
920
+ return '#2e7d32';
921
+ };
922
+ const textColor = getPaymentColor(payment._id);
923
+ const textDecoration = isComplimentary ? 'line-through' : 'none';
924
+ return `
925
+ <div class="css-overview-abcakfsqxq" >
926
+ <div class="css-overview-bhcaloiqqw">
927
+ <div class="css-overview-asbchqlwie">
928
+ <div class="css-overview-ansjqios">
929
+ <h6 class="css-overview-tyupqoccs">${payment.count}</h6>
930
+ <h6 class="css-f9q4nd-MuiTypography-root32d" style="color: ${textColor};">${payment.name}</h6>
931
+ </div>
932
+ <h6 class="css-18rcx6o-MuiTypography-rootdasda" style="text-decoration: ${textDecoration}; color: ${textColor};">
933
+ ${renderAmount(payment.grossAmount)}
934
+ </h6>
935
+ </div>
936
+ </div>
937
+ </div>`;
938
+ })
939
+ .join('');
940
+ const amountCollected = totalSales.grossAmount - (unpaidData?.grossAmount ?? 0) - (complimentaryData?.grossAmount ?? 0);
941
+ const salesAmount = totalSales.grossAmount - (complimentaryData?.grossAmount ?? 0);
942
+ return `
943
+ <div class="css-overview-container">
944
+ <div class="cssc-1qeq10-kjlask">
945
+ <h5 class="cssc-1gb95rg-oilkj" style="color: #000000">Sales Overview Report</h5>
946
+ <p class="cssc-1iy4zoj-oilkj">${moment(from).format('dddd MMM DD, YYYY')}</p>
947
+ <p class="cssc-1ebo3of-oilkj">${moment(from).format('hh:mm a, MMM DD')} - ${moment(to).format('hh:mm a, MMM DD')}</p>
948
+ </div>
949
+ <div class="css-overview-nvbasjqlww">
950
+ <div class="css-overview-asjqqe" >
951
+ <div class="css-overview-qsacnoq">
952
+ <p class="css-overview-asncjqloqp">Total Orders</p>
953
+ <h4 class="css-overview-aqowahs">${totalSales.count}</h4>
954
+ </div>
955
+ ${unpaidData?.grossAmount > 0
956
+ ? `<div class="css-overview-qncahaq">
957
+ <p class="css-overview-asncjqloqp">Amount Collected</p>
958
+ <h4 class="css-overview-bcjakqee">${renderAmount(amountCollected)}</h4>
959
+ </div>`
960
+ : ''}
961
+ <div class="css-overview-ahqepoi">
962
+ <p class="css-overview-asncjqloqp">Sales Amount</p>
963
+ <h4 class="css-overview-namqpoiu">${renderAmount(salesAmount)}</h4>
964
+ </div>
965
+ ${cancelledOrders?.count > 0
966
+ ? `<div class="css-overview-qncahaq">
967
+ <div class="css-overview-ansjqios">
968
+ <h6 class="css-overview-tyupqoccs">${cancelledOrders.count}</h6>
969
+ <h6 class="css-overview-nvmasqwqq">Cancelled Orders</h6>
970
+ </div>
971
+ <h4 class="css-overview-cbahqjlaissa">${renderAmount(cancelledOrders.grossAmount)}</h4>
972
+ </div>`
973
+ : ''}
974
+ </div>
975
+ </div>
976
+
977
+ <div class="css-overview-abscjqkisal">
978
+ <h5 class="css-overview-allqiwqpoi" >Payments Breakdown</h5>
979
+ <div class="css-overview-nvbasjqlww" >
980
+ <div class="css-overview-asbbqwkqw">${renderPaymentBreakdown()}</div>
981
+ </div>
982
+ </div>
983
+
984
+ <div class="css-overview-nvbasjqlww">
985
+ <div class="css-overview-asbbqwkqw">
986
+ <div class="css-overview-asbchqkww">
987
+ <div class="css-overview-vbhasqwds">
988
+ <div class="css-4yyxib-MuiStack-rootdas3dsd">
989
+ <h5 class="css-overview-allqiwqpoi">Breakdown by Channel</h5>
990
+ </div>
991
+ <div class="css-lh1q0c-MuiStack-rootdas6d">${renderBreakdownBlock(channelData)}</div>
992
+ </div>
993
+ </div>
994
+
995
+ <div class="css-overview-asbchqkww">
996
+ <div class="css-overview-vbhasqwds">
997
+ <div class="css-4yyxib-MuiStack-rootdas3dsd">
998
+ <h5 class="css-overview-allqiwqpoi">Breakdown by Collection</h5>
999
+ </div>
1000
+ <div class="css-lh1q0c-MuiStack-rootdas6d">${renderBreakdownBlock(collectionData)}</div>
1001
+ </div>
1002
+ </div>
1003
+ </div>
1004
+ </div>
1005
+ <div class="cssc-1qeq10-kjlask" style="margin-top: 20px;">
1006
+ <h5 class="cssc-1gb95rg-oilkj" style="color: #000000">${tenantName}</h5>
1007
+ <p class="cssc-1iy4zoj-oilkj">
1008
+ Exported on ${moment().format('dddd MMM DD, YYYY [at] hh:mm a')}
1009
+ </p>
1010
+ ${isFilterApplied
1011
+ ? `<p class="cssc-1iy4zoj-oilkj"
1012
+ style="text-align: center; font-weight: bold; ${monochrome ? 'color: #000000' : 'color: #FF0000'}"
1013
+ >
1014
+ Note: This report is filtered. Please ensure to tally the data on your end.
1015
+ </p>`
1016
+ : ''}
1017
+ </div>
1018
+ </div>`;
1019
+ }
1020
+ export function getSaleOverviewReportHTMl({ width, monochrome, complimentaryData, unpaidData, paymentTypeData, channelData, collectionData, totalSales, cancelledOrders, currencySymbol, tenantName, isFilterApplied, from, to, }) {
1021
+ const style = width ? `style=width: ${width}px; max-width: ${width}px;` : '';
1022
+ const html = `
1023
+ <html lang="en" ${style}>
1024
+ ${getHead(monochrome)}
1025
+ <body translate="no"
1026
+ ${style}
1027
+ >
1028
+ ${getBody({
1029
+ complimentaryData,
1030
+ unpaidData,
1031
+ paymentTypeData,
1032
+ channelData,
1033
+ collectionData,
1034
+ totalSales,
1035
+ cancelledOrders,
1036
+ currencySymbol,
1037
+ tenantName,
1038
+ monochrome,
1039
+ isFilterApplied,
1040
+ from,
1041
+ to,
1042
+ })}
1043
+ </body>
1044
+ </html>`;
1045
+ return html;
1046
+ }