@managesome/eposmatic-toolkit 0.2.212

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 (640) hide show
  1. package/LICENSE +13 -0
  2. package/lib/constants/ANALYTICS.d.ts +477 -0
  3. package/lib/constants/ANALYTICS.js +148 -0
  4. package/lib/constants/COMMON.d.ts +72 -0
  5. package/lib/constants/COMMON.js +334 -0
  6. package/lib/constants/DELIVERY.d.ts +14 -0
  7. package/lib/constants/DELIVERY.js +48 -0
  8. package/lib/constants/ENUMS.d.ts +1008 -0
  9. package/lib/constants/ENUMS.js +1693 -0
  10. package/lib/constants/FBR_ENUMS.d.ts +15 -0
  11. package/lib/constants/FBR_ENUMS.js +21 -0
  12. package/lib/constants/HUBRISE_ENUMS.d.ts +74 -0
  13. package/lib/constants/HUBRISE_ENUMS.js +182 -0
  14. package/lib/constants/NOTIFICATIONS.d.ts +5 -0
  15. package/lib/constants/NOTIFICATIONS.js +9 -0
  16. package/lib/constants/ORDER.d.ts +15 -0
  17. package/lib/constants/ORDER.js +242 -0
  18. package/lib/constants/PRA_ENUMS.d.ts +15 -0
  19. package/lib/constants/PRA_ENUMS.js +21 -0
  20. package/lib/constants/PURCHASE_ORDER.d.ts +14 -0
  21. package/lib/constants/PURCHASE_ORDER.js +53 -0
  22. package/lib/constants/SMARTPAY_ENUMS.d.ts +42 -0
  23. package/lib/constants/SMARTPAY_ENUMS.js +58 -0
  24. package/lib/constants/SOCKET.d.ts +95 -0
  25. package/lib/constants/SOCKET.js +135 -0
  26. package/lib/constants/SRB_ENUMS.d.ts +10 -0
  27. package/lib/constants/SRB_ENUMS.js +16 -0
  28. package/lib/constants/SWITCHPAY.d.ts +4 -0
  29. package/lib/constants/SWITCHPAY.js +8 -0
  30. package/lib/constants/WALLET.d.ts +13 -0
  31. package/lib/constants/WALLET.js +54 -0
  32. package/lib/constants/WAREHOUSE_ANALYTICS.d.ts +239 -0
  33. package/lib/constants/WAREHOUSE_ANALYTICS.js +31 -0
  34. package/lib/constants/WAREHOUSE_INVOICE.d.ts +14 -0
  35. package/lib/constants/WAREHOUSE_INVOICE.js +35 -0
  36. package/lib/constants/WEBVIEW.d.ts +44 -0
  37. package/lib/constants/WEBVIEW.js +50 -0
  38. package/lib/constants/index.d.ts +19 -0
  39. package/lib/constants/index.js +35 -0
  40. package/lib/constants/types.d.ts +408 -0
  41. package/lib/constants/types.js +3 -0
  42. package/lib/helpers/fbr/generate-invoice.d.ts +10 -0
  43. package/lib/helpers/fbr/generate-invoice.js +97 -0
  44. package/lib/helpers/fbr/index.d.ts +1 -0
  45. package/lib/helpers/fbr/index.js +17 -0
  46. package/lib/helpers/hubrise/hubrise-catalog.d.ts +43 -0
  47. package/lib/helpers/hubrise/hubrise-catalog.js +314 -0
  48. package/lib/helpers/hubrise/index.d.ts +1 -0
  49. package/lib/helpers/hubrise/index.js +17 -0
  50. package/lib/helpers/index.d.ts +9 -0
  51. package/lib/helpers/index.js +25 -0
  52. package/lib/helpers/kpra/generate-invoice.d.ts +8 -0
  53. package/lib/helpers/kpra/generate-invoice.js +29 -0
  54. package/lib/helpers/kpra/index.d.ts +1 -0
  55. package/lib/helpers/kpra/index.js +17 -0
  56. package/lib/helpers/order/generate-order.d.ts +12 -0
  57. package/lib/helpers/order/generate-order.js +409 -0
  58. package/lib/helpers/order/generate-purchase-order.d.ts +11 -0
  59. package/lib/helpers/order/generate-purchase-order.js +196 -0
  60. package/lib/helpers/order/generate-warehouse-invoice.d.ts +11 -0
  61. package/lib/helpers/order/generate-warehouse-invoice.js +196 -0
  62. package/lib/helpers/order/index.d.ts +3 -0
  63. package/lib/helpers/order/index.js +19 -0
  64. package/lib/helpers/pra/generate-invoice.d.ts +10 -0
  65. package/lib/helpers/pra/generate-invoice.js +97 -0
  66. package/lib/helpers/pra/index.d.ts +1 -0
  67. package/lib/helpers/pra/index.js +17 -0
  68. package/lib/helpers/srb/generate-invoice.d.ts +13 -0
  69. package/lib/helpers/srb/generate-invoice.js +48 -0
  70. package/lib/helpers/srb/index.d.ts +1 -0
  71. package/lib/helpers/srb/index.js +17 -0
  72. package/lib/helpers/store/all-orders-actions.d.ts +5 -0
  73. package/lib/helpers/store/all-orders-actions.js +23 -0
  74. package/lib/helpers/store/all-purchase-orders-actions.d.ts +13 -0
  75. package/lib/helpers/store/all-purchase-orders-actions.js +56 -0
  76. package/lib/helpers/store/all-warehouse-invoice-actions.d.ts +13 -0
  77. package/lib/helpers/store/all-warehouse-invoice-actions.js +58 -0
  78. package/lib/helpers/store/cart-actions.d.ts +159 -0
  79. package/lib/helpers/store/cart-actions.js +2070 -0
  80. package/lib/helpers/store/catalog-actions.d.ts +23 -0
  81. package/lib/helpers/store/catalog-actions.js +216 -0
  82. package/lib/helpers/store/common-order-actions.d.ts +36 -0
  83. package/lib/helpers/store/common-order-actions.js +878 -0
  84. package/lib/helpers/store/common-purchase-order-actions.d.ts +31 -0
  85. package/lib/helpers/store/common-purchase-order-actions.js +543 -0
  86. package/lib/helpers/store/common-warehouse-invoice-actions.d.ts +31 -0
  87. package/lib/helpers/store/common-warehouse-invoice-actions.js +545 -0
  88. package/lib/helpers/store/index.d.ts +11 -0
  89. package/lib/helpers/store/index.js +27 -0
  90. package/lib/helpers/store/offline-ordering.d.ts +15 -0
  91. package/lib/helpers/store/offline-ordering.js +258 -0
  92. package/lib/helpers/store/purchase-orders-cart-actions.d.ts +56 -0
  93. package/lib/helpers/store/purchase-orders-cart-actions.js +486 -0
  94. package/lib/helpers/store/warehouse-cart-actions.d.ts +54 -0
  95. package/lib/helpers/store/warehouse-cart-actions.js +486 -0
  96. package/lib/helpers/store/warehouse-catalog-actions.d.ts +4 -0
  97. package/lib/helpers/store/warehouse-catalog-actions.js +46 -0
  98. package/lib/helpers/store/warehouse-invoice-cart-actions.d.ts +56 -0
  99. package/lib/helpers/store/warehouse-invoice-cart-actions.js +486 -0
  100. package/lib/helpers/types/cart-actions.d.ts +33 -0
  101. package/lib/helpers/types/cart-actions.js +2 -0
  102. package/lib/helpers/types/cart-helpers.d.ts +7 -0
  103. package/lib/helpers/types/cart-helpers.js +2 -0
  104. package/lib/helpers/types/catalog.d.ts +149 -0
  105. package/lib/helpers/types/catalog.js +2 -0
  106. package/lib/helpers/types/common.d.ts +69 -0
  107. package/lib/helpers/types/common.js +2 -0
  108. package/lib/helpers/types/deliverect_menu.d.ts +51 -0
  109. package/lib/helpers/types/deliverect_menu.js +2 -0
  110. package/lib/helpers/types/email-templates.d.ts +173 -0
  111. package/lib/helpers/types/email-templates.js +2 -0
  112. package/lib/helpers/types/fbr-generate-invoice.d.ts +40 -0
  113. package/lib/helpers/types/fbr-generate-invoice.js +2 -0
  114. package/lib/helpers/types/hubrise_catalog.d.ts +123 -0
  115. package/lib/helpers/types/hubrise_catalog.js +2 -0
  116. package/lib/helpers/types/hubrise_customers.d.ts +36 -0
  117. package/lib/helpers/types/hubrise_customers.js +2 -0
  118. package/lib/helpers/types/hubrise_deliveries.d.ts +19 -0
  119. package/lib/helpers/types/hubrise_deliveries.js +2 -0
  120. package/lib/helpers/types/hubrise_location.d.ts +31 -0
  121. package/lib/helpers/types/hubrise_location.js +2 -0
  122. package/lib/helpers/types/hubrise_orders.d.ts +86 -0
  123. package/lib/helpers/types/hubrise_orders.js +2 -0
  124. package/lib/helpers/types/index.d.ts +25 -0
  125. package/lib/helpers/types/index.js +41 -0
  126. package/lib/helpers/types/internal-leads.d.ts +11 -0
  127. package/lib/helpers/types/internal-leads.js +2 -0
  128. package/lib/helpers/types/kpra-generate-invoice.d.ts +6 -0
  129. package/lib/helpers/types/kpra-generate-invoice.js +2 -0
  130. package/lib/helpers/types/marketing.d.ts +12 -0
  131. package/lib/helpers/types/marketing.js +2 -0
  132. package/lib/helpers/types/order-engine.d.ts +39 -0
  133. package/lib/helpers/types/order-engine.js +2 -0
  134. package/lib/helpers/types/pra-generate-invoice.d.ts +40 -0
  135. package/lib/helpers/types/pra-generate-invoice.js +2 -0
  136. package/lib/helpers/types/printer-settings.d.ts +11 -0
  137. package/lib/helpers/types/printer-settings.js +3 -0
  138. package/lib/helpers/types/purchase-order-cart-actions.d.ts +26 -0
  139. package/lib/helpers/types/purchase-order-cart-actions.js +2 -0
  140. package/lib/helpers/types/reports.d.ts +150 -0
  141. package/lib/helpers/types/reports.js +2 -0
  142. package/lib/helpers/types/smartpay-apis.d.ts +170 -0
  143. package/lib/helpers/types/smartpay-apis.js +3 -0
  144. package/lib/helpers/types/split_bill.d.ts +20 -0
  145. package/lib/helpers/types/split_bill.js +2 -0
  146. package/lib/helpers/types/srb-generate-invoice.d.ts +27 -0
  147. package/lib/helpers/types/srb-generate-invoice.js +2 -0
  148. package/lib/helpers/types/switchpay.d.ts +10 -0
  149. package/lib/helpers/types/switchpay.js +2 -0
  150. package/lib/helpers/types/usable-offers.d.ts +27 -0
  151. package/lib/helpers/types/usable-offers.js +2 -0
  152. package/lib/helpers/types/warehouse-cart-actions.d.ts +51 -0
  153. package/lib/helpers/types/warehouse-cart-actions.js +2 -0
  154. package/lib/helpers/types/warehouse-catalog.d.ts +4 -0
  155. package/lib/helpers/types/warehouse-catalog.js +2 -0
  156. package/lib/helpers/types/warehouse-invoice-cart-actions.d.ts +26 -0
  157. package/lib/helpers/types/warehouse-invoice-cart-actions.js +2 -0
  158. package/lib/helpers/types/workers.d.ts +256 -0
  159. package/lib/helpers/types/workers.js +2 -0
  160. package/lib/helpers/utils/cart-helpers.d.ts +48 -0
  161. package/lib/helpers/utils/cart-helpers.js +151 -0
  162. package/lib/helpers/utils/catalog-conversion.d.ts +9 -0
  163. package/lib/helpers/utils/catalog-conversion.js +123 -0
  164. package/lib/helpers/utils/color-helpers.d.ts +3 -0
  165. package/lib/helpers/utils/color-helpers.js +36 -0
  166. package/lib/helpers/utils/common.d.ts +36 -0
  167. package/lib/helpers/utils/common.js +332 -0
  168. package/lib/helpers/utils/comparison-report-helpers.d.ts +27 -0
  169. package/lib/helpers/utils/comparison-report-helpers.js +802 -0
  170. package/lib/helpers/utils/comparitive-report-helpers.d.ts +7 -0
  171. package/lib/helpers/utils/comparitive-report-helpers.js +826 -0
  172. package/lib/helpers/utils/crypt.d.ts +4 -0
  173. package/lib/helpers/utils/crypt.js +49 -0
  174. package/lib/helpers/utils/customers-helpers.d.ts +2 -0
  175. package/lib/helpers/utils/customers-helpers.js +17 -0
  176. package/lib/helpers/utils/delivery-area-helpers.d.ts +4 -0
  177. package/lib/helpers/utils/delivery-area-helpers.js +47 -0
  178. package/lib/helpers/utils/delivery-helpers.d.ts +2 -0
  179. package/lib/helpers/utils/delivery-helpers.js +15 -0
  180. package/lib/helpers/utils/dinein.d.ts +10 -0
  181. package/lib/helpers/utils/dinein.js +47 -0
  182. package/lib/helpers/utils/discount-helpers.d.ts +8 -0
  183. package/lib/helpers/utils/discount-helpers.js +59 -0
  184. package/lib/helpers/utils/email-helpers.d.ts +17 -0
  185. package/lib/helpers/utils/email-helpers.js +99 -0
  186. package/lib/helpers/utils/error-helpers.d.ts +9 -0
  187. package/lib/helpers/utils/error-helpers.js +18 -0
  188. package/lib/helpers/utils/expense.d.ts +4 -0
  189. package/lib/helpers/utils/expense.js +42 -0
  190. package/lib/helpers/utils/getFormFieldsDiff.d.ts +3 -0
  191. package/lib/helpers/utils/getFormFieldsDiff.js +18 -0
  192. package/lib/helpers/utils/halfhalf-setup-helpers.d.ts +22 -0
  193. package/lib/helpers/utils/halfhalf-setup-helpers.js +133 -0
  194. package/lib/helpers/utils/hourly-comparison-report-helpers.d.ts +50 -0
  195. package/lib/helpers/utils/hourly-comparison-report-helpers.js +861 -0
  196. package/lib/helpers/utils/hubrise-utils.d.ts +11 -0
  197. package/lib/helpers/utils/hubrise-utils.js +38 -0
  198. package/lib/helpers/utils/image-helpers.d.ts +3 -0
  199. package/lib/helpers/utils/image-helpers.js +100 -0
  200. package/lib/helpers/utils/index.d.ts +68 -0
  201. package/lib/helpers/utils/index.js +84 -0
  202. package/lib/helpers/utils/ingredients.d.ts +3 -0
  203. package/lib/helpers/utils/ingredients.js +30 -0
  204. package/lib/helpers/utils/inventory.d.ts +4 -0
  205. package/lib/helpers/utils/inventory.js +122 -0
  206. package/lib/helpers/utils/inventory_transactions.d.ts +3 -0
  207. package/lib/helpers/utils/inventory_transactions.js +95 -0
  208. package/lib/helpers/utils/invoice-x-report-helpers.d.ts +58 -0
  209. package/lib/helpers/utils/invoice-x-report-helpers.js +1432 -0
  210. package/lib/helpers/utils/item-report-helpers.d.ts +28 -0
  211. package/lib/helpers/utils/item-report-helpers.js +2494 -0
  212. package/lib/helpers/utils/items-comparison-report-helpers.d.ts +30 -0
  213. package/lib/helpers/utils/items-comparison-report-helpers.js +1066 -0
  214. package/lib/helpers/utils/kds-helpers.d.ts +8 -0
  215. package/lib/helpers/utils/kds-helpers.js +46 -0
  216. package/lib/helpers/utils/location-helpers.d.ts +1 -0
  217. package/lib/helpers/utils/location-helpers.js +16 -0
  218. package/lib/helpers/utils/menu-helpers.d.ts +8 -0
  219. package/lib/helpers/utils/menu-helpers.js +48 -0
  220. package/lib/helpers/utils/minified-catalog.d.ts +17 -0
  221. package/lib/helpers/utils/minified-catalog.js +440 -0
  222. package/lib/helpers/utils/offers-helpers.d.ts +47 -0
  223. package/lib/helpers/utils/offers-helpers.js +899 -0
  224. package/lib/helpers/utils/operational-roles-helpers.d.ts +2 -0
  225. package/lib/helpers/utils/operational-roles-helpers.js +36 -0
  226. package/lib/helpers/utils/order-engine.d.ts +48 -0
  227. package/lib/helpers/utils/order-engine.js +754 -0
  228. package/lib/helpers/utils/order-history.d.ts +15 -0
  229. package/lib/helpers/utils/order-history.js +211 -0
  230. package/lib/helpers/utils/payment-comparison-report-helpers.d.ts +16 -0
  231. package/lib/helpers/utils/payment-comparison-report-helpers.js +882 -0
  232. package/lib/helpers/utils/payment-helpers.d.ts +38 -0
  233. package/lib/helpers/utils/payment-helpers.js +285 -0
  234. package/lib/helpers/utils/pdf-generator.d.ts +19 -0
  235. package/lib/helpers/utils/pdf-generator.js +115 -0
  236. package/lib/helpers/utils/platform-catalog.d.ts +11 -0
  237. package/lib/helpers/utils/platform-catalog.js +234 -0
  238. package/lib/helpers/utils/platform-num.d.ts +9 -0
  239. package/lib/helpers/utils/platform-num.js +128 -0
  240. package/lib/helpers/utils/platform-specific-tenant-shifts.d.ts +8 -0
  241. package/lib/helpers/utils/platform-specific-tenant-shifts.js +22 -0
  242. package/lib/helpers/utils/price-conversion.d.ts +6 -0
  243. package/lib/helpers/utils/price-conversion.js +32 -0
  244. package/lib/helpers/utils/printer-helpers.d.ts +3 -0
  245. package/lib/helpers/utils/printer-helpers.js +74 -0
  246. package/lib/helpers/utils/public-holidays-helpers.d.ts +2 -0
  247. package/lib/helpers/utils/public-holidays-helpers.js +11 -0
  248. package/lib/helpers/utils/purchase-order-engine.d.ts +9 -0
  249. package/lib/helpers/utils/purchase-order-engine.js +34 -0
  250. package/lib/helpers/utils/purchase-order-receipt-engine.d.ts +149 -0
  251. package/lib/helpers/utils/purchase-order-receipt-engine.js +214 -0
  252. package/lib/helpers/utils/purchase-order-x-report-helpers.d.ts +58 -0
  253. package/lib/helpers/utils/purchase-order-x-report-helpers.js +1440 -0
  254. package/lib/helpers/utils/ratings-comparison-report-helpers.d.ts +37 -0
  255. package/lib/helpers/utils/ratings-comparison-report-helpers.js +1194 -0
  256. package/lib/helpers/utils/receipt-engine.d.ts +165 -0
  257. package/lib/helpers/utils/receipt-engine.js +856 -0
  258. package/lib/helpers/utils/review-helpers.d.ts +9 -0
  259. package/lib/helpers/utils/review-helpers.js +398 -0
  260. package/lib/helpers/utils/rider-tracking.d.ts +1 -0
  261. package/lib/helpers/utils/rider-tracking.js +16 -0
  262. package/lib/helpers/utils/riders-report-helpers.d.ts +62 -0
  263. package/lib/helpers/utils/riders-report-helpers.js +1598 -0
  264. package/lib/helpers/utils/sales-comparison-report-helpers.d.ts +31 -0
  265. package/lib/helpers/utils/sales-comparison-report-helpers.js +1266 -0
  266. package/lib/helpers/utils/sales-comparitive-report-helpers.d.ts +7 -0
  267. package/lib/helpers/utils/sales-comparitive-report-helpers.js +945 -0
  268. package/lib/helpers/utils/sales-overview-report-helpers.d.ts +30 -0
  269. package/lib/helpers/utils/sales-overview-report-helpers.js +1052 -0
  270. package/lib/helpers/utils/sales-summary-report-helpers.d.ts +30 -0
  271. package/lib/helpers/utils/sales-summary-report-helpers.js +883 -0
  272. package/lib/helpers/utils/short-inventory.d.ts +3 -0
  273. package/lib/helpers/utils/short-inventory.js +26 -0
  274. package/lib/helpers/utils/simplified-catalog.d.ts +8 -0
  275. package/lib/helpers/utils/simplified-catalog.js +115 -0
  276. package/lib/helpers/utils/simplified-tenant.d.ts +255 -0
  277. package/lib/helpers/utils/simplified-tenant.js +337 -0
  278. package/lib/helpers/utils/simplified-warehouse-catalog.d.ts +10 -0
  279. package/lib/helpers/utils/simplified-warehouse-catalog.js +108 -0
  280. package/lib/helpers/utils/specials-helpers.d.ts +42 -0
  281. package/lib/helpers/utils/specials-helpers.js +216 -0
  282. package/lib/helpers/utils/stock-details.d.ts +3 -0
  283. package/lib/helpers/utils/stock-details.js +26 -0
  284. package/lib/helpers/utils/stock-wastage.d.ts +3 -0
  285. package/lib/helpers/utils/stock-wastage.js +26 -0
  286. package/lib/helpers/utils/tenant-staff-helpers.d.ts +2 -0
  287. package/lib/helpers/utils/tenant-staff-helpers.js +22 -0
  288. package/lib/helpers/utils/terminal-devices-helpers.d.ts +2 -0
  289. package/lib/helpers/utils/terminal-devices-helpers.js +13 -0
  290. package/lib/helpers/utils/time-helpers.d.ts +16 -0
  291. package/lib/helpers/utils/time-helpers.js +57 -0
  292. package/lib/helpers/utils/void-items-report-helpers.d.ts +13 -0
  293. package/lib/helpers/utils/void-items-report-helpers.js +526 -0
  294. package/lib/helpers/utils/void-order-items-helpers.d.ts +3 -0
  295. package/lib/helpers/utils/void-order-items-helpers.js +36 -0
  296. package/lib/helpers/utils/voidations-summary-report-helpers.d.ts +24 -0
  297. package/lib/helpers/utils/voidations-summary-report-helpers.js +807 -0
  298. package/lib/helpers/utils/wallet-helpers.d.ts +2 -0
  299. package/lib/helpers/utils/wallet-helpers.js +25 -0
  300. package/lib/helpers/utils/warehouse-catalog-conversion.d.ts +7 -0
  301. package/lib/helpers/utils/warehouse-catalog-conversion.js +89 -0
  302. package/lib/helpers/utils/warehouse-inventory.d.ts +2 -0
  303. package/lib/helpers/utils/warehouse-inventory.js +53 -0
  304. package/lib/helpers/utils/warehouse-invoice-order-engine.d.ts +11 -0
  305. package/lib/helpers/utils/warehouse-invoice-order-engine.js +39 -0
  306. package/lib/helpers/utils/warehouse-order-engine.d.ts +9 -0
  307. package/lib/helpers/utils/warehouse-order-engine.js +34 -0
  308. package/lib/helpers/utils/warehouse-settings-helpers.d.ts +2 -0
  309. package/lib/helpers/utils/warehouse-settings-helpers.js +30 -0
  310. package/lib/helpers/utils/warehouse_inventory_transactions.d.ts +3 -0
  311. package/lib/helpers/utils/warehouse_inventory_transactions.js +95 -0
  312. package/lib/helpers/utils/x-report-helpers.d.ts +65 -0
  313. package/lib/helpers/utils/x-report-helpers.js +1858 -0
  314. package/lib/index.d.ts +3 -0
  315. package/lib/index.js +19 -0
  316. package/lib/schemas/index.d.ts +2 -0
  317. package/lib/schemas/index.js +18 -0
  318. package/lib/schemas/models/app_configs.d.ts +34 -0
  319. package/lib/schemas/models/app_configs.js +39 -0
  320. package/lib/schemas/models/applied-order-discounts.d.ts +80 -0
  321. package/lib/schemas/models/applied-order-discounts.js +106 -0
  322. package/lib/schemas/models/brand.d.ts +45 -0
  323. package/lib/schemas/models/brand.js +45 -0
  324. package/lib/schemas/models/cash_drawer_sessions.d.ts +107 -0
  325. package/lib/schemas/models/cash_drawer_sessions.js +78 -0
  326. package/lib/schemas/models/cash_drawers.d.ts +44 -0
  327. package/lib/schemas/models/cash_drawers.js +46 -0
  328. package/lib/schemas/models/cash_in_out.d.ts +110 -0
  329. package/lib/schemas/models/cash_in_out.js +81 -0
  330. package/lib/schemas/models/category.d.ts +60 -0
  331. package/lib/schemas/models/category.js +67 -0
  332. package/lib/schemas/models/close_dates.d.ts +50 -0
  333. package/lib/schemas/models/close_dates.js +56 -0
  334. package/lib/schemas/models/common-models.d.ts +493 -0
  335. package/lib/schemas/models/common-models.js +444 -0
  336. package/lib/schemas/models/courses.d.ts +77 -0
  337. package/lib/schemas/models/courses.js +55 -0
  338. package/lib/schemas/models/customers.d.ts +443 -0
  339. package/lib/schemas/models/customers.js +197 -0
  340. package/lib/schemas/models/deliveries.d.ts +123 -0
  341. package/lib/schemas/models/deliveries.js +112 -0
  342. package/lib/schemas/models/delivery_areas.d.ts +263 -0
  343. package/lib/schemas/models/delivery_areas.js +100 -0
  344. package/lib/schemas/models/dinein_floors.d.ts +44 -0
  345. package/lib/schemas/models/dinein_floors.js +45 -0
  346. package/lib/schemas/models/dinein_table_fingerprints.d.ts +65 -0
  347. package/lib/schemas/models/dinein_table_fingerprints.js +85 -0
  348. package/lib/schemas/models/dinein_tables.d.ts +68 -0
  349. package/lib/schemas/models/dinein_tables.js +82 -0
  350. package/lib/schemas/models/discounts.d.ts +1254 -0
  351. package/lib/schemas/models/discounts.js +90 -0
  352. package/lib/schemas/models/drivers.d.ts +55 -0
  353. package/lib/schemas/models/drivers.js +60 -0
  354. package/lib/schemas/models/expense_category.d.ts +83 -0
  355. package/lib/schemas/models/expense_category.js +64 -0
  356. package/lib/schemas/models/expense_details.d.ts +266 -0
  357. package/lib/schemas/models/expense_details.js +113 -0
  358. package/lib/schemas/models/halfhalf_setup.d.ts +1541 -0
  359. package/lib/schemas/models/halfhalf_setup.js +109 -0
  360. package/lib/schemas/models/index.d.ts +65 -0
  361. package/lib/schemas/models/index.js +81 -0
  362. package/lib/schemas/models/instore_shift_sessions.d.ts +146 -0
  363. package/lib/schemas/models/instore_shift_sessions.js +125 -0
  364. package/lib/schemas/models/instore_shifts.d.ts +50 -0
  365. package/lib/schemas/models/instore_shifts.js +55 -0
  366. package/lib/schemas/models/internal_expense_details.d.ts +55 -0
  367. package/lib/schemas/models/internal_expense_details.js +63 -0
  368. package/lib/schemas/models/internal_leads.d.ts +69 -0
  369. package/lib/schemas/models/internal_leads.js +81 -0
  370. package/lib/schemas/models/internal_restaurant_details.d.ts +64 -0
  371. package/lib/schemas/models/internal_restaurant_details.js +77 -0
  372. package/lib/schemas/models/inventory.d.ts +99 -0
  373. package/lib/schemas/models/inventory.js +87 -0
  374. package/lib/schemas/models/inventory_categories.d.ts +50 -0
  375. package/lib/schemas/models/inventory_categories.js +55 -0
  376. package/lib/schemas/models/inventory_transactions.d.ts +83 -0
  377. package/lib/schemas/models/inventory_transactions.js +110 -0
  378. package/lib/schemas/models/item.d.ts +10822 -0
  379. package/lib/schemas/models/item.js +329 -0
  380. package/lib/schemas/models/item_transactions.d.ts +71 -0
  381. package/lib/schemas/models/item_transactions.js +95 -0
  382. package/lib/schemas/models/marketing_fingerprints.d.ts +62 -0
  383. package/lib/schemas/models/marketing_fingerprints.js +81 -0
  384. package/lib/schemas/models/menu.d.ts +905 -0
  385. package/lib/schemas/models/menu.js +69 -0
  386. package/lib/schemas/models/messaging_devices.d.ts +63 -0
  387. package/lib/schemas/models/messaging_devices.js +74 -0
  388. package/lib/schemas/models/modifier_extras.d.ts +516 -0
  389. package/lib/schemas/models/modifier_extras.js +123 -0
  390. package/lib/schemas/models/offers.d.ts +1067 -0
  391. package/lib/schemas/models/offers.js +286 -0
  392. package/lib/schemas/models/offers_fingerprints.d.ts +50 -0
  393. package/lib/schemas/models/offers_fingerprints.js +63 -0
  394. package/lib/schemas/models/operational_roles.d.ts +263 -0
  395. package/lib/schemas/models/operational_roles.js +158 -0
  396. package/lib/schemas/models/order.d.ts +15284 -0
  397. package/lib/schemas/models/order.js +819 -0
  398. package/lib/schemas/models/platform.d.ts +34 -0
  399. package/lib/schemas/models/platform.js +30 -0
  400. package/lib/schemas/models/printer_settings.d.ts +217 -0
  401. package/lib/schemas/models/printer_settings.js +234 -0
  402. package/lib/schemas/models/public_holidays.d.ts +173 -0
  403. package/lib/schemas/models/public_holidays.js +61 -0
  404. package/lib/schemas/models/purchase_orders.d.ts +2675 -0
  405. package/lib/schemas/models/purchase_orders.js +327 -0
  406. package/lib/schemas/models/reservations.d.ts +66 -0
  407. package/lib/schemas/models/reservations.js +88 -0
  408. package/lib/schemas/models/reviews.d.ts +98 -0
  409. package/lib/schemas/models/reviews.js +148 -0
  410. package/lib/schemas/models/rider.d.ts +65 -0
  411. package/lib/schemas/models/rider.js +74 -0
  412. package/lib/schemas/models/short_inventory.d.ts +65 -0
  413. package/lib/schemas/models/short_inventory.js +46 -0
  414. package/lib/schemas/models/specials.d.ts +2551 -0
  415. package/lib/schemas/models/specials.js +145 -0
  416. package/lib/schemas/models/staff_shifts.d.ts +77 -0
  417. package/lib/schemas/models/staff_shifts.js +69 -0
  418. package/lib/schemas/models/stock_consumption.d.ts +77 -0
  419. package/lib/schemas/models/stock_consumption.js +64 -0
  420. package/lib/schemas/models/stock_entry.d.ts +65 -0
  421. package/lib/schemas/models/stock_entry.js +46 -0
  422. package/lib/schemas/models/stock_wastage.d.ts +71 -0
  423. package/lib/schemas/models/stock_wastage.js +54 -0
  424. package/lib/schemas/models/tenant.d.ts +468 -0
  425. package/lib/schemas/models/tenant.js +673 -0
  426. package/lib/schemas/models/tenant_days.d.ts +134 -0
  427. package/lib/schemas/models/tenant_days.js +110 -0
  428. package/lib/schemas/models/tenant_metadata.d.ts +77 -0
  429. package/lib/schemas/models/tenant_metadata.js +91 -0
  430. package/lib/schemas/models/tenant_shift_sessions.d.ts +146 -0
  431. package/lib/schemas/models/tenant_shift_sessions.js +125 -0
  432. package/lib/schemas/models/tenant_shifts.d.ts +53 -0
  433. package/lib/schemas/models/tenant_shifts.js +60 -0
  434. package/lib/schemas/models/tenant_staff.d.ts +896 -0
  435. package/lib/schemas/models/tenant_staff.js +96 -0
  436. package/lib/schemas/models/terminal_devices.d.ts +62 -0
  437. package/lib/schemas/models/terminal_devices.js +74 -0
  438. package/lib/schemas/models/tokens.d.ts +59 -0
  439. package/lib/schemas/models/tokens.js +109 -0
  440. package/lib/schemas/models/track_order_number.d.ts +395 -0
  441. package/lib/schemas/models/track_order_number.js +45 -0
  442. package/lib/schemas/models/void_order_items.d.ts +173 -0
  443. package/lib/schemas/models/void_order_items.js +169 -0
  444. package/lib/schemas/models/wallet.d.ts +38 -0
  445. package/lib/schemas/models/wallet.js +37 -0
  446. package/lib/schemas/models/wallet_transactions.d.ts +74 -0
  447. package/lib/schemas/models/wallet_transactions.js +96 -0
  448. package/lib/schemas/models/warehouse.d.ts +156 -0
  449. package/lib/schemas/models/warehouse.js +213 -0
  450. package/lib/schemas/models/warehouse_categories.d.ts +56 -0
  451. package/lib/schemas/models/warehouse_categories.js +65 -0
  452. package/lib/schemas/models/warehouse_clients.d.ts +53 -0
  453. package/lib/schemas/models/warehouse_clients.js +61 -0
  454. package/lib/schemas/models/warehouse_inventory_transactions.d.ts +83 -0
  455. package/lib/schemas/models/warehouse_inventory_transactions.js +110 -0
  456. package/lib/schemas/models/warehouse_invoices.d.ts +2675 -0
  457. package/lib/schemas/models/warehouse_invoices.js +327 -0
  458. package/lib/schemas/models/warehouse_item_transactions.d.ts +74 -0
  459. package/lib/schemas/models/warehouse_item_transactions.js +100 -0
  460. package/lib/schemas/models/warehouse_items.d.ts +131 -0
  461. package/lib/schemas/models/warehouse_items.js +127 -0
  462. package/lib/schemas/models/warehouse_operational_roles.d.ts +77 -0
  463. package/lib/schemas/models/warehouse_operational_roles.js +90 -0
  464. package/lib/schemas/models/warehouse_settings.d.ts +40 -0
  465. package/lib/schemas/models/warehouse_settings.js +40 -0
  466. package/lib/schemas/models/warehouse_staff.d.ts +65 -0
  467. package/lib/schemas/models/warehouse_staff.js +78 -0
  468. package/lib/schemas/models/warehouse_track_order_number.d.ts +50 -0
  469. package/lib/schemas/models/warehouse_track_order_number.js +52 -0
  470. package/lib/schemas/models/warehouse_vendors.d.ts +89 -0
  471. package/lib/schemas/models/warehouse_vendors.js +73 -0
  472. package/lib/schemas/types/app_configs.d.ts +9 -0
  473. package/lib/schemas/types/app_configs.js +2 -0
  474. package/lib/schemas/types/applied-order-discounts.d.ts +22 -0
  475. package/lib/schemas/types/applied-order-discounts.js +2 -0
  476. package/lib/schemas/types/brand.d.ts +32 -0
  477. package/lib/schemas/types/brand.js +2 -0
  478. package/lib/schemas/types/cash_drawer_sessions.d.ts +18 -0
  479. package/lib/schemas/types/cash_drawer_sessions.js +2 -0
  480. package/lib/schemas/types/cash_drawers.d.ts +9 -0
  481. package/lib/schemas/types/cash_drawers.js +2 -0
  482. package/lib/schemas/types/cash_in_out.d.ts +19 -0
  483. package/lib/schemas/types/cash_in_out.js +2 -0
  484. package/lib/schemas/types/category.d.ts +15 -0
  485. package/lib/schemas/types/category.js +2 -0
  486. package/lib/schemas/types/close_dates.d.ts +12 -0
  487. package/lib/schemas/types/close_dates.js +2 -0
  488. package/lib/schemas/types/common.d.ts +34 -0
  489. package/lib/schemas/types/common.js +2 -0
  490. package/lib/schemas/types/courses.d.ts +15 -0
  491. package/lib/schemas/types/courses.js +2 -0
  492. package/lib/schemas/types/customers.d.ts +51 -0
  493. package/lib/schemas/types/customers.js +2 -0
  494. package/lib/schemas/types/deliveries.d.ts +28 -0
  495. package/lib/schemas/types/deliveries.js +2 -0
  496. package/lib/schemas/types/delivery_areas.d.ts +23 -0
  497. package/lib/schemas/types/delivery_areas.js +2 -0
  498. package/lib/schemas/types/dinein_floors.d.ts +23 -0
  499. package/lib/schemas/types/dinein_floors.js +2 -0
  500. package/lib/schemas/types/dinein_tables.d.ts +19 -0
  501. package/lib/schemas/types/dinein_tables.js +2 -0
  502. package/lib/schemas/types/dinein_tables_fingerprints.d.ts +17 -0
  503. package/lib/schemas/types/dinein_tables_fingerprints.js +2 -0
  504. package/lib/schemas/types/discounts.d.ts +21 -0
  505. package/lib/schemas/types/discounts.js +2 -0
  506. package/lib/schemas/types/drivers.d.ts +13 -0
  507. package/lib/schemas/types/drivers.js +2 -0
  508. package/lib/schemas/types/expense_category.d.ts +20 -0
  509. package/lib/schemas/types/expense_category.js +2 -0
  510. package/lib/schemas/types/expense_details.d.ts +26 -0
  511. package/lib/schemas/types/expense_details.js +2 -0
  512. package/lib/schemas/types/halfhalf_setup.d.ts +26 -0
  513. package/lib/schemas/types/halfhalf_setup.js +2 -0
  514. package/lib/schemas/types/index.d.ts +67 -0
  515. package/lib/schemas/types/index.js +83 -0
  516. package/lib/schemas/types/instore_shift_sessions.d.ts +33 -0
  517. package/lib/schemas/types/instore_shift_sessions.js +2 -0
  518. package/lib/schemas/types/instore_shifts.d.ts +11 -0
  519. package/lib/schemas/types/instore_shifts.js +2 -0
  520. package/lib/schemas/types/internal_expense_details.d.ts +14 -0
  521. package/lib/schemas/types/internal_expense_details.js +2 -0
  522. package/lib/schemas/types/internal_leads.d.ts +18 -0
  523. package/lib/schemas/types/internal_leads.js +2 -0
  524. package/lib/schemas/types/internal_restaurant_details.d.ts +17 -0
  525. package/lib/schemas/types/internal_restaurant_details.js +2 -0
  526. package/lib/schemas/types/inventory.d.ts +48 -0
  527. package/lib/schemas/types/inventory.js +2 -0
  528. package/lib/schemas/types/inventory_categories.d.ts +11 -0
  529. package/lib/schemas/types/inventory_categories.js +2 -0
  530. package/lib/schemas/types/inventory_transactions.d.ts +23 -0
  531. package/lib/schemas/types/inventory_transactions.js +2 -0
  532. package/lib/schemas/types/item.d.ts +88 -0
  533. package/lib/schemas/types/item.js +2 -0
  534. package/lib/schemas/types/item_transactions.d.ts +19 -0
  535. package/lib/schemas/types/item_transactions.js +2 -0
  536. package/lib/schemas/types/marketing.d.ts +10 -0
  537. package/lib/schemas/types/marketing.js +2 -0
  538. package/lib/schemas/types/marketing_fingerprints.d.ts +16 -0
  539. package/lib/schemas/types/marketing_fingerprints.js +2 -0
  540. package/lib/schemas/types/menu.d.ts +17 -0
  541. package/lib/schemas/types/menu.js +2 -0
  542. package/lib/schemas/types/messaging_devices.d.ts +16 -0
  543. package/lib/schemas/types/messaging_devices.js +2 -0
  544. package/lib/schemas/types/modifier_extras.d.ts +31 -0
  545. package/lib/schemas/types/modifier_extras.js +2 -0
  546. package/lib/schemas/types/multi_tenants.d.ts +24 -0
  547. package/lib/schemas/types/multi_tenants.js +2 -0
  548. package/lib/schemas/types/offers.d.ts +82 -0
  549. package/lib/schemas/types/offers.js +2 -0
  550. package/lib/schemas/types/offers_fingerprints.d.ts +11 -0
  551. package/lib/schemas/types/offers_fingerprints.js +2 -0
  552. package/lib/schemas/types/operational_roles.d.ts +41 -0
  553. package/lib/schemas/types/operational_roles.js +18 -0
  554. package/lib/schemas/types/order.d.ts +225 -0
  555. package/lib/schemas/types/order.js +2 -0
  556. package/lib/schemas/types/platform.d.ts +6 -0
  557. package/lib/schemas/types/platform.js +2 -0
  558. package/lib/schemas/types/pos_days.d.ts +29 -0
  559. package/lib/schemas/types/pos_days.js +2 -0
  560. package/lib/schemas/types/pos_shifts.d.ts +33 -0
  561. package/lib/schemas/types/pos_shifts.js +2 -0
  562. package/lib/schemas/types/printer_settings.d.ts +83 -0
  563. package/lib/schemas/types/printer_settings.js +3 -0
  564. package/lib/schemas/types/public_holidays.d.ts +14 -0
  565. package/lib/schemas/types/public_holidays.js +2 -0
  566. package/lib/schemas/types/purchase_orders.d.ts +69 -0
  567. package/lib/schemas/types/purchase_orders.js +2 -0
  568. package/lib/schemas/types/reservations.d.ts +17 -0
  569. package/lib/schemas/types/reservations.js +2 -0
  570. package/lib/schemas/types/reviews.d.ts +28 -0
  571. package/lib/schemas/types/reviews.js +2 -0
  572. package/lib/schemas/types/rider.d.ts +16 -0
  573. package/lib/schemas/types/rider.js +2 -0
  574. package/lib/schemas/types/short_inventory.d.ts +9 -0
  575. package/lib/schemas/types/short_inventory.js +2 -0
  576. package/lib/schemas/types/specials.d.ts +42 -0
  577. package/lib/schemas/types/specials.js +2 -0
  578. package/lib/schemas/types/split_bill.d.ts +18 -0
  579. package/lib/schemas/types/split_bill.js +2 -0
  580. package/lib/schemas/types/staff_shifts.d.ts +15 -0
  581. package/lib/schemas/types/staff_shifts.js +2 -0
  582. package/lib/schemas/types/stock_consumption.d.ts +13 -0
  583. package/lib/schemas/types/stock_consumption.js +2 -0
  584. package/lib/schemas/types/stock_entry.d.ts +9 -0
  585. package/lib/schemas/types/stock_entry.js +2 -0
  586. package/lib/schemas/types/stock_wastage.d.ts +11 -0
  587. package/lib/schemas/types/stock_wastage.js +2 -0
  588. package/lib/schemas/types/tenant.d.ts +175 -0
  589. package/lib/schemas/types/tenant.js +2 -0
  590. package/lib/schemas/types/tenant_days.d.ts +29 -0
  591. package/lib/schemas/types/tenant_days.js +2 -0
  592. package/lib/schemas/types/tenant_metadata.d.ts +13 -0
  593. package/lib/schemas/types/tenant_metadata.js +2 -0
  594. package/lib/schemas/types/tenant_shift_sessions.d.ts +33 -0
  595. package/lib/schemas/types/tenant_shift_sessions.js +2 -0
  596. package/lib/schemas/types/tenant_shifts.d.ts +13 -0
  597. package/lib/schemas/types/tenant_shifts.js +2 -0
  598. package/lib/schemas/types/tenant_staff.d.ts +22 -0
  599. package/lib/schemas/types/tenant_staff.js +2 -0
  600. package/lib/schemas/types/terminal_devices.d.ts +16 -0
  601. package/lib/schemas/types/terminal_devices.js +2 -0
  602. package/lib/schemas/types/third_party_payments.d.ts +41 -0
  603. package/lib/schemas/types/third_party_payments.js +2 -0
  604. package/lib/schemas/types/tokens.d.ts +15 -0
  605. package/lib/schemas/types/tokens.js +2 -0
  606. package/lib/schemas/types/track_order_number.d.ts +10 -0
  607. package/lib/schemas/types/track_order_number.js +2 -0
  608. package/lib/schemas/types/used_ingredients.d.ts +8 -0
  609. package/lib/schemas/types/used_ingredients.js +2 -0
  610. package/lib/schemas/types/void_order_items.d.ts +36 -0
  611. package/lib/schemas/types/void_order_items.js +2 -0
  612. package/lib/schemas/types/wallet.d.ts +7 -0
  613. package/lib/schemas/types/wallet.js +2 -0
  614. package/lib/schemas/types/wallet_transactions.d.ts +20 -0
  615. package/lib/schemas/types/wallet_transactions.js +2 -0
  616. package/lib/schemas/types/warehouse.d.ts +47 -0
  617. package/lib/schemas/types/warehouse.js +2 -0
  618. package/lib/schemas/types/warehouse_categories.d.ts +13 -0
  619. package/lib/schemas/types/warehouse_categories.js +2 -0
  620. package/lib/schemas/types/warehouse_clients.d.ts +13 -0
  621. package/lib/schemas/types/warehouse_clients.js +2 -0
  622. package/lib/schemas/types/warehouse_inventory_transactions.d.ts +23 -0
  623. package/lib/schemas/types/warehouse_inventory_transactions.js +2 -0
  624. package/lib/schemas/types/warehouse_invoices.d.ts +69 -0
  625. package/lib/schemas/types/warehouse_invoices.js +2 -0
  626. package/lib/schemas/types/warehouse_item_transactions.d.ts +20 -0
  627. package/lib/schemas/types/warehouse_item_transactions.js +2 -0
  628. package/lib/schemas/types/warehouse_items.d.ts +65 -0
  629. package/lib/schemas/types/warehouse_items.js +2 -0
  630. package/lib/schemas/types/warehouse_operational_roles.d.ts +22 -0
  631. package/lib/schemas/types/warehouse_operational_roles.js +18 -0
  632. package/lib/schemas/types/warehouse_settings.d.ts +8 -0
  633. package/lib/schemas/types/warehouse_settings.js +2 -0
  634. package/lib/schemas/types/warehouse_staff.d.ts +17 -0
  635. package/lib/schemas/types/warehouse_staff.js +2 -0
  636. package/lib/schemas/types/warehouse_track_order_number.d.ts +11 -0
  637. package/lib/schemas/types/warehouse_track_order_number.js +2 -0
  638. package/lib/schemas/types/warehouse_vendors.d.ts +16 -0
  639. package/lib/schemas/types/warehouse_vendors.js +2 -0
  640. package/package.json +59 -0
@@ -0,0 +1,2675 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const PurchaseOrderSchema: 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
+ createdAt_mins: number;
12
+ createdAt: NativeDate;
13
+ updatedAt: NativeDate;
14
+ categories: import("mongoose").Types.DocumentArray<{
15
+ name: string;
16
+ category_id: import("mongoose").Types.ObjectId;
17
+ items: import("mongoose").Types.DocumentArray<{
18
+ _id: import("mongoose").Types.ObjectId;
19
+ name: string;
20
+ price: number;
21
+ item_id: import("mongoose").Types.ObjectId;
22
+ quantity: number;
23
+ subtotal: number;
24
+ _gst_amount: number;
25
+ _net_amount: number;
26
+ _gross_amount: number;
27
+ _discount_amount: number;
28
+ special_instructions: string;
29
+ is_ready?: boolean | null | undefined;
30
+ void_reason?: string | null | undefined;
31
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
32
+ _id: import("mongoose").Types.ObjectId;
33
+ name: string;
34
+ price: number;
35
+ item_id: import("mongoose").Types.ObjectId;
36
+ quantity: number;
37
+ subtotal: number;
38
+ _gst_amount: number;
39
+ _net_amount: number;
40
+ _gross_amount: number;
41
+ _discount_amount: number;
42
+ special_instructions: string;
43
+ is_ready?: boolean | null | undefined;
44
+ void_reason?: string | null | undefined;
45
+ }> & {
46
+ _id: import("mongoose").Types.ObjectId;
47
+ name: string;
48
+ price: number;
49
+ item_id: import("mongoose").Types.ObjectId;
50
+ quantity: number;
51
+ subtotal: number;
52
+ _gst_amount: number;
53
+ _net_amount: number;
54
+ _gross_amount: number;
55
+ _discount_amount: number;
56
+ special_instructions: string;
57
+ is_ready?: boolean | null | undefined;
58
+ void_reason?: string | null | undefined;
59
+ }>;
60
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
61
+ name: string;
62
+ category_id: import("mongoose").Types.ObjectId;
63
+ items: import("mongoose").Types.DocumentArray<{
64
+ _id: import("mongoose").Types.ObjectId;
65
+ name: string;
66
+ price: number;
67
+ item_id: import("mongoose").Types.ObjectId;
68
+ quantity: number;
69
+ subtotal: number;
70
+ _gst_amount: number;
71
+ _net_amount: number;
72
+ _gross_amount: number;
73
+ _discount_amount: number;
74
+ special_instructions: string;
75
+ is_ready?: boolean | null | undefined;
76
+ void_reason?: string | null | undefined;
77
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
78
+ _id: import("mongoose").Types.ObjectId;
79
+ name: string;
80
+ price: number;
81
+ item_id: import("mongoose").Types.ObjectId;
82
+ quantity: number;
83
+ subtotal: number;
84
+ _gst_amount: number;
85
+ _net_amount: number;
86
+ _gross_amount: number;
87
+ _discount_amount: number;
88
+ special_instructions: string;
89
+ is_ready?: boolean | null | undefined;
90
+ void_reason?: string | null | undefined;
91
+ }> & {
92
+ _id: import("mongoose").Types.ObjectId;
93
+ name: string;
94
+ price: number;
95
+ item_id: import("mongoose").Types.ObjectId;
96
+ quantity: number;
97
+ subtotal: number;
98
+ _gst_amount: number;
99
+ _net_amount: number;
100
+ _gross_amount: number;
101
+ _discount_amount: number;
102
+ special_instructions: string;
103
+ is_ready?: boolean | null | undefined;
104
+ void_reason?: string | null | undefined;
105
+ }>;
106
+ }> & {
107
+ name: string;
108
+ category_id: import("mongoose").Types.ObjectId;
109
+ items: import("mongoose").Types.DocumentArray<{
110
+ _id: import("mongoose").Types.ObjectId;
111
+ name: string;
112
+ price: number;
113
+ item_id: import("mongoose").Types.ObjectId;
114
+ quantity: number;
115
+ subtotal: number;
116
+ _gst_amount: number;
117
+ _net_amount: number;
118
+ _gross_amount: number;
119
+ _discount_amount: number;
120
+ special_instructions: string;
121
+ is_ready?: boolean | null | undefined;
122
+ void_reason?: string | null | undefined;
123
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
124
+ _id: import("mongoose").Types.ObjectId;
125
+ name: string;
126
+ price: number;
127
+ item_id: import("mongoose").Types.ObjectId;
128
+ quantity: number;
129
+ subtotal: number;
130
+ _gst_amount: number;
131
+ _net_amount: number;
132
+ _gross_amount: number;
133
+ _discount_amount: number;
134
+ special_instructions: string;
135
+ is_ready?: boolean | null | undefined;
136
+ void_reason?: string | null | undefined;
137
+ }> & {
138
+ _id: import("mongoose").Types.ObjectId;
139
+ name: string;
140
+ price: number;
141
+ item_id: import("mongoose").Types.ObjectId;
142
+ quantity: number;
143
+ subtotal: number;
144
+ _gst_amount: number;
145
+ _net_amount: number;
146
+ _gross_amount: number;
147
+ _discount_amount: number;
148
+ special_instructions: string;
149
+ is_ready?: boolean | null | undefined;
150
+ void_reason?: string | null | undefined;
151
+ }>;
152
+ }>;
153
+ price: number;
154
+ order_number: number;
155
+ payments: import("mongoose").Types.DocumentArray<{
156
+ payment_type: string;
157
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
158
+ card_details: {
159
+ transaction_id: string;
160
+ payment_provider_linked_customer_id: string;
161
+ card_number: string;
162
+ card_type: string;
163
+ card_holder_name: string;
164
+ card_charges: number;
165
+ card_country_code: string;
166
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
167
+ };
168
+ amount_paid: number;
169
+ amount_due: number;
170
+ amount_refunded: number;
171
+ payment_id: string;
172
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
173
+ refund_reason?: string | null | undefined;
174
+ note?: string | null | undefined;
175
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
176
+ payment_type: string;
177
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
178
+ card_details: {
179
+ transaction_id: string;
180
+ payment_provider_linked_customer_id: string;
181
+ card_number: string;
182
+ card_type: string;
183
+ card_holder_name: string;
184
+ card_charges: number;
185
+ card_country_code: string;
186
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
187
+ };
188
+ amount_paid: number;
189
+ amount_due: number;
190
+ amount_refunded: number;
191
+ payment_id: string;
192
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
193
+ refund_reason?: string | null | undefined;
194
+ note?: string | null | undefined;
195
+ }> & {
196
+ payment_type: string;
197
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
198
+ card_details: {
199
+ transaction_id: string;
200
+ payment_provider_linked_customer_id: string;
201
+ card_number: string;
202
+ card_type: string;
203
+ card_holder_name: string;
204
+ card_charges: number;
205
+ card_country_code: string;
206
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
207
+ };
208
+ amount_paid: number;
209
+ amount_due: number;
210
+ amount_refunded: number;
211
+ payment_id: string;
212
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
213
+ refund_reason?: string | null | undefined;
214
+ note?: string | null | undefined;
215
+ }>;
216
+ special_instructions: string;
217
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
218
+ tax_number: string;
219
+ amount_earned: number;
220
+ grand_total: number;
221
+ staff_details: {
222
+ staff_id: string;
223
+ staff_name: string;
224
+ staff_mobile: string;
225
+ staff_email: string;
226
+ };
227
+ iterations: import("mongoose").Types.DocumentArray<{
228
+ updatedAt: NativeDate;
229
+ categories: import("mongoose").Types.DocumentArray<{
230
+ name: string;
231
+ category_id: import("mongoose").Types.ObjectId;
232
+ items: import("mongoose").Types.DocumentArray<{
233
+ _id: import("mongoose").Types.ObjectId;
234
+ name: string;
235
+ price: number;
236
+ item_id: import("mongoose").Types.ObjectId;
237
+ quantity: number;
238
+ subtotal: number;
239
+ _gst_amount: number;
240
+ _net_amount: number;
241
+ _gross_amount: number;
242
+ _discount_amount: number;
243
+ special_instructions: string;
244
+ is_ready?: boolean | null | undefined;
245
+ void_reason?: string | null | undefined;
246
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
247
+ _id: import("mongoose").Types.ObjectId;
248
+ name: string;
249
+ price: number;
250
+ item_id: import("mongoose").Types.ObjectId;
251
+ quantity: number;
252
+ subtotal: number;
253
+ _gst_amount: number;
254
+ _net_amount: number;
255
+ _gross_amount: number;
256
+ _discount_amount: number;
257
+ special_instructions: string;
258
+ is_ready?: boolean | null | undefined;
259
+ void_reason?: string | null | undefined;
260
+ }> & {
261
+ _id: import("mongoose").Types.ObjectId;
262
+ name: string;
263
+ price: number;
264
+ item_id: import("mongoose").Types.ObjectId;
265
+ quantity: number;
266
+ subtotal: number;
267
+ _gst_amount: number;
268
+ _net_amount: number;
269
+ _gross_amount: number;
270
+ _discount_amount: number;
271
+ special_instructions: string;
272
+ is_ready?: boolean | null | undefined;
273
+ void_reason?: string | null | undefined;
274
+ }>;
275
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
276
+ name: string;
277
+ category_id: import("mongoose").Types.ObjectId;
278
+ items: import("mongoose").Types.DocumentArray<{
279
+ _id: import("mongoose").Types.ObjectId;
280
+ name: string;
281
+ price: number;
282
+ item_id: import("mongoose").Types.ObjectId;
283
+ quantity: number;
284
+ subtotal: number;
285
+ _gst_amount: number;
286
+ _net_amount: number;
287
+ _gross_amount: number;
288
+ _discount_amount: number;
289
+ special_instructions: string;
290
+ is_ready?: boolean | null | undefined;
291
+ void_reason?: string | null | undefined;
292
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
293
+ _id: import("mongoose").Types.ObjectId;
294
+ name: string;
295
+ price: number;
296
+ item_id: import("mongoose").Types.ObjectId;
297
+ quantity: number;
298
+ subtotal: number;
299
+ _gst_amount: number;
300
+ _net_amount: number;
301
+ _gross_amount: number;
302
+ _discount_amount: number;
303
+ special_instructions: string;
304
+ is_ready?: boolean | null | undefined;
305
+ void_reason?: string | null | undefined;
306
+ }> & {
307
+ _id: import("mongoose").Types.ObjectId;
308
+ name: string;
309
+ price: number;
310
+ item_id: import("mongoose").Types.ObjectId;
311
+ quantity: number;
312
+ subtotal: number;
313
+ _gst_amount: number;
314
+ _net_amount: number;
315
+ _gross_amount: number;
316
+ _discount_amount: number;
317
+ special_instructions: string;
318
+ is_ready?: boolean | null | undefined;
319
+ void_reason?: string | null | undefined;
320
+ }>;
321
+ }> & {
322
+ name: string;
323
+ category_id: import("mongoose").Types.ObjectId;
324
+ items: import("mongoose").Types.DocumentArray<{
325
+ _id: import("mongoose").Types.ObjectId;
326
+ name: string;
327
+ price: number;
328
+ item_id: import("mongoose").Types.ObjectId;
329
+ quantity: number;
330
+ subtotal: number;
331
+ _gst_amount: number;
332
+ _net_amount: number;
333
+ _gross_amount: number;
334
+ _discount_amount: number;
335
+ special_instructions: string;
336
+ is_ready?: boolean | null | undefined;
337
+ void_reason?: string | null | undefined;
338
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
339
+ _id: import("mongoose").Types.ObjectId;
340
+ name: string;
341
+ price: number;
342
+ item_id: import("mongoose").Types.ObjectId;
343
+ quantity: number;
344
+ subtotal: number;
345
+ _gst_amount: number;
346
+ _net_amount: number;
347
+ _gross_amount: number;
348
+ _discount_amount: number;
349
+ special_instructions: string;
350
+ is_ready?: boolean | null | undefined;
351
+ void_reason?: string | null | undefined;
352
+ }> & {
353
+ _id: import("mongoose").Types.ObjectId;
354
+ name: string;
355
+ price: number;
356
+ item_id: import("mongoose").Types.ObjectId;
357
+ quantity: number;
358
+ subtotal: number;
359
+ _gst_amount: number;
360
+ _net_amount: number;
361
+ _gross_amount: number;
362
+ _discount_amount: number;
363
+ special_instructions: string;
364
+ is_ready?: boolean | null | undefined;
365
+ void_reason?: string | null | undefined;
366
+ }>;
367
+ }>;
368
+ price: number;
369
+ payments: import("mongoose").Types.DocumentArray<{
370
+ payment_type: string;
371
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
372
+ card_details: {
373
+ transaction_id: string;
374
+ payment_provider_linked_customer_id: string;
375
+ card_number: string;
376
+ card_type: string;
377
+ card_holder_name: string;
378
+ card_charges: number;
379
+ card_country_code: string;
380
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
381
+ };
382
+ amount_paid: number;
383
+ amount_due: number;
384
+ amount_refunded: number;
385
+ payment_id: string;
386
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
387
+ refund_reason?: string | null | undefined;
388
+ note?: string | null | undefined;
389
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
390
+ payment_type: string;
391
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
392
+ card_details: {
393
+ transaction_id: string;
394
+ payment_provider_linked_customer_id: string;
395
+ card_number: string;
396
+ card_type: string;
397
+ card_holder_name: string;
398
+ card_charges: number;
399
+ card_country_code: string;
400
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
401
+ };
402
+ amount_paid: number;
403
+ amount_due: number;
404
+ amount_refunded: number;
405
+ payment_id: string;
406
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
407
+ refund_reason?: string | null | undefined;
408
+ note?: string | null | undefined;
409
+ }> & {
410
+ payment_type: string;
411
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
412
+ card_details: {
413
+ transaction_id: string;
414
+ payment_provider_linked_customer_id: string;
415
+ card_number: string;
416
+ card_type: string;
417
+ card_holder_name: string;
418
+ card_charges: number;
419
+ card_country_code: string;
420
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
421
+ };
422
+ amount_paid: number;
423
+ amount_due: number;
424
+ amount_refunded: number;
425
+ payment_id: string;
426
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
427
+ refund_reason?: string | null | undefined;
428
+ note?: string | null | undefined;
429
+ }>;
430
+ special_instructions: string;
431
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
432
+ tax_number: string;
433
+ amount_earned: number;
434
+ grand_total: number;
435
+ staff_details?: {
436
+ staff_id: string;
437
+ staff_name: string;
438
+ staff_mobile: string;
439
+ staff_email: string;
440
+ } | null | undefined;
441
+ gst?: number | null | undefined;
442
+ gst_amount?: number | null | undefined;
443
+ is_gst_inclusive?: boolean | null | undefined;
444
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
445
+ updatedAt: NativeDate;
446
+ categories: import("mongoose").Types.DocumentArray<{
447
+ name: string;
448
+ category_id: import("mongoose").Types.ObjectId;
449
+ items: import("mongoose").Types.DocumentArray<{
450
+ _id: import("mongoose").Types.ObjectId;
451
+ name: string;
452
+ price: number;
453
+ item_id: import("mongoose").Types.ObjectId;
454
+ quantity: number;
455
+ subtotal: number;
456
+ _gst_amount: number;
457
+ _net_amount: number;
458
+ _gross_amount: number;
459
+ _discount_amount: number;
460
+ special_instructions: string;
461
+ is_ready?: boolean | null | undefined;
462
+ void_reason?: string | null | undefined;
463
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
464
+ _id: import("mongoose").Types.ObjectId;
465
+ name: string;
466
+ price: number;
467
+ item_id: import("mongoose").Types.ObjectId;
468
+ quantity: number;
469
+ subtotal: number;
470
+ _gst_amount: number;
471
+ _net_amount: number;
472
+ _gross_amount: number;
473
+ _discount_amount: number;
474
+ special_instructions: string;
475
+ is_ready?: boolean | null | undefined;
476
+ void_reason?: string | null | undefined;
477
+ }> & {
478
+ _id: import("mongoose").Types.ObjectId;
479
+ name: string;
480
+ price: number;
481
+ item_id: import("mongoose").Types.ObjectId;
482
+ quantity: number;
483
+ subtotal: number;
484
+ _gst_amount: number;
485
+ _net_amount: number;
486
+ _gross_amount: number;
487
+ _discount_amount: number;
488
+ special_instructions: string;
489
+ is_ready?: boolean | null | undefined;
490
+ void_reason?: string | null | undefined;
491
+ }>;
492
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
493
+ name: string;
494
+ category_id: import("mongoose").Types.ObjectId;
495
+ items: import("mongoose").Types.DocumentArray<{
496
+ _id: import("mongoose").Types.ObjectId;
497
+ name: string;
498
+ price: number;
499
+ item_id: import("mongoose").Types.ObjectId;
500
+ quantity: number;
501
+ subtotal: number;
502
+ _gst_amount: number;
503
+ _net_amount: number;
504
+ _gross_amount: number;
505
+ _discount_amount: number;
506
+ special_instructions: string;
507
+ is_ready?: boolean | null | undefined;
508
+ void_reason?: string | null | undefined;
509
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
510
+ _id: import("mongoose").Types.ObjectId;
511
+ name: string;
512
+ price: number;
513
+ item_id: import("mongoose").Types.ObjectId;
514
+ quantity: number;
515
+ subtotal: number;
516
+ _gst_amount: number;
517
+ _net_amount: number;
518
+ _gross_amount: number;
519
+ _discount_amount: number;
520
+ special_instructions: string;
521
+ is_ready?: boolean | null | undefined;
522
+ void_reason?: string | null | undefined;
523
+ }> & {
524
+ _id: import("mongoose").Types.ObjectId;
525
+ name: string;
526
+ price: number;
527
+ item_id: import("mongoose").Types.ObjectId;
528
+ quantity: number;
529
+ subtotal: number;
530
+ _gst_amount: number;
531
+ _net_amount: number;
532
+ _gross_amount: number;
533
+ _discount_amount: number;
534
+ special_instructions: string;
535
+ is_ready?: boolean | null | undefined;
536
+ void_reason?: string | null | undefined;
537
+ }>;
538
+ }> & {
539
+ name: string;
540
+ category_id: import("mongoose").Types.ObjectId;
541
+ items: import("mongoose").Types.DocumentArray<{
542
+ _id: import("mongoose").Types.ObjectId;
543
+ name: string;
544
+ price: number;
545
+ item_id: import("mongoose").Types.ObjectId;
546
+ quantity: number;
547
+ subtotal: number;
548
+ _gst_amount: number;
549
+ _net_amount: number;
550
+ _gross_amount: number;
551
+ _discount_amount: number;
552
+ special_instructions: string;
553
+ is_ready?: boolean | null | undefined;
554
+ void_reason?: string | null | undefined;
555
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
556
+ _id: import("mongoose").Types.ObjectId;
557
+ name: string;
558
+ price: number;
559
+ item_id: import("mongoose").Types.ObjectId;
560
+ quantity: number;
561
+ subtotal: number;
562
+ _gst_amount: number;
563
+ _net_amount: number;
564
+ _gross_amount: number;
565
+ _discount_amount: number;
566
+ special_instructions: string;
567
+ is_ready?: boolean | null | undefined;
568
+ void_reason?: string | null | undefined;
569
+ }> & {
570
+ _id: import("mongoose").Types.ObjectId;
571
+ name: string;
572
+ price: number;
573
+ item_id: import("mongoose").Types.ObjectId;
574
+ quantity: number;
575
+ subtotal: number;
576
+ _gst_amount: number;
577
+ _net_amount: number;
578
+ _gross_amount: number;
579
+ _discount_amount: number;
580
+ special_instructions: string;
581
+ is_ready?: boolean | null | undefined;
582
+ void_reason?: string | null | undefined;
583
+ }>;
584
+ }>;
585
+ price: number;
586
+ payments: import("mongoose").Types.DocumentArray<{
587
+ payment_type: string;
588
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
589
+ card_details: {
590
+ transaction_id: string;
591
+ payment_provider_linked_customer_id: string;
592
+ card_number: string;
593
+ card_type: string;
594
+ card_holder_name: string;
595
+ card_charges: number;
596
+ card_country_code: string;
597
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
598
+ };
599
+ amount_paid: number;
600
+ amount_due: number;
601
+ amount_refunded: number;
602
+ payment_id: string;
603
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
604
+ refund_reason?: string | null | undefined;
605
+ note?: string | null | undefined;
606
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
607
+ payment_type: string;
608
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
609
+ card_details: {
610
+ transaction_id: string;
611
+ payment_provider_linked_customer_id: string;
612
+ card_number: string;
613
+ card_type: string;
614
+ card_holder_name: string;
615
+ card_charges: number;
616
+ card_country_code: string;
617
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
618
+ };
619
+ amount_paid: number;
620
+ amount_due: number;
621
+ amount_refunded: number;
622
+ payment_id: string;
623
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
624
+ refund_reason?: string | null | undefined;
625
+ note?: string | null | undefined;
626
+ }> & {
627
+ payment_type: string;
628
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
629
+ card_details: {
630
+ transaction_id: string;
631
+ payment_provider_linked_customer_id: string;
632
+ card_number: string;
633
+ card_type: string;
634
+ card_holder_name: string;
635
+ card_charges: number;
636
+ card_country_code: string;
637
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
638
+ };
639
+ amount_paid: number;
640
+ amount_due: number;
641
+ amount_refunded: number;
642
+ payment_id: string;
643
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
644
+ refund_reason?: string | null | undefined;
645
+ note?: string | null | undefined;
646
+ }>;
647
+ special_instructions: string;
648
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
649
+ tax_number: string;
650
+ amount_earned: number;
651
+ grand_total: number;
652
+ staff_details?: {
653
+ staff_id: string;
654
+ staff_name: string;
655
+ staff_mobile: string;
656
+ staff_email: string;
657
+ } | null | undefined;
658
+ gst?: number | null | undefined;
659
+ gst_amount?: number | null | undefined;
660
+ is_gst_inclusive?: boolean | null | undefined;
661
+ }> & {
662
+ updatedAt: NativeDate;
663
+ categories: import("mongoose").Types.DocumentArray<{
664
+ name: string;
665
+ category_id: import("mongoose").Types.ObjectId;
666
+ items: import("mongoose").Types.DocumentArray<{
667
+ _id: import("mongoose").Types.ObjectId;
668
+ name: string;
669
+ price: number;
670
+ item_id: import("mongoose").Types.ObjectId;
671
+ quantity: number;
672
+ subtotal: number;
673
+ _gst_amount: number;
674
+ _net_amount: number;
675
+ _gross_amount: number;
676
+ _discount_amount: number;
677
+ special_instructions: string;
678
+ is_ready?: boolean | null | undefined;
679
+ void_reason?: string | null | undefined;
680
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
681
+ _id: import("mongoose").Types.ObjectId;
682
+ name: string;
683
+ price: number;
684
+ item_id: import("mongoose").Types.ObjectId;
685
+ quantity: number;
686
+ subtotal: number;
687
+ _gst_amount: number;
688
+ _net_amount: number;
689
+ _gross_amount: number;
690
+ _discount_amount: number;
691
+ special_instructions: string;
692
+ is_ready?: boolean | null | undefined;
693
+ void_reason?: string | null | undefined;
694
+ }> & {
695
+ _id: import("mongoose").Types.ObjectId;
696
+ name: string;
697
+ price: number;
698
+ item_id: import("mongoose").Types.ObjectId;
699
+ quantity: number;
700
+ subtotal: number;
701
+ _gst_amount: number;
702
+ _net_amount: number;
703
+ _gross_amount: number;
704
+ _discount_amount: number;
705
+ special_instructions: string;
706
+ is_ready?: boolean | null | undefined;
707
+ void_reason?: string | null | undefined;
708
+ }>;
709
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
710
+ name: string;
711
+ category_id: import("mongoose").Types.ObjectId;
712
+ items: import("mongoose").Types.DocumentArray<{
713
+ _id: import("mongoose").Types.ObjectId;
714
+ name: string;
715
+ price: number;
716
+ item_id: import("mongoose").Types.ObjectId;
717
+ quantity: number;
718
+ subtotal: number;
719
+ _gst_amount: number;
720
+ _net_amount: number;
721
+ _gross_amount: number;
722
+ _discount_amount: number;
723
+ special_instructions: string;
724
+ is_ready?: boolean | null | undefined;
725
+ void_reason?: string | null | undefined;
726
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
727
+ _id: import("mongoose").Types.ObjectId;
728
+ name: string;
729
+ price: number;
730
+ item_id: import("mongoose").Types.ObjectId;
731
+ quantity: number;
732
+ subtotal: number;
733
+ _gst_amount: number;
734
+ _net_amount: number;
735
+ _gross_amount: number;
736
+ _discount_amount: number;
737
+ special_instructions: string;
738
+ is_ready?: boolean | null | undefined;
739
+ void_reason?: string | null | undefined;
740
+ }> & {
741
+ _id: import("mongoose").Types.ObjectId;
742
+ name: string;
743
+ price: number;
744
+ item_id: import("mongoose").Types.ObjectId;
745
+ quantity: number;
746
+ subtotal: number;
747
+ _gst_amount: number;
748
+ _net_amount: number;
749
+ _gross_amount: number;
750
+ _discount_amount: number;
751
+ special_instructions: string;
752
+ is_ready?: boolean | null | undefined;
753
+ void_reason?: string | null | undefined;
754
+ }>;
755
+ }> & {
756
+ name: string;
757
+ category_id: import("mongoose").Types.ObjectId;
758
+ items: import("mongoose").Types.DocumentArray<{
759
+ _id: import("mongoose").Types.ObjectId;
760
+ name: string;
761
+ price: number;
762
+ item_id: import("mongoose").Types.ObjectId;
763
+ quantity: number;
764
+ subtotal: number;
765
+ _gst_amount: number;
766
+ _net_amount: number;
767
+ _gross_amount: number;
768
+ _discount_amount: number;
769
+ special_instructions: string;
770
+ is_ready?: boolean | null | undefined;
771
+ void_reason?: string | null | undefined;
772
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
773
+ _id: import("mongoose").Types.ObjectId;
774
+ name: string;
775
+ price: number;
776
+ item_id: import("mongoose").Types.ObjectId;
777
+ quantity: number;
778
+ subtotal: number;
779
+ _gst_amount: number;
780
+ _net_amount: number;
781
+ _gross_amount: number;
782
+ _discount_amount: number;
783
+ special_instructions: string;
784
+ is_ready?: boolean | null | undefined;
785
+ void_reason?: string | null | undefined;
786
+ }> & {
787
+ _id: import("mongoose").Types.ObjectId;
788
+ name: string;
789
+ price: number;
790
+ item_id: import("mongoose").Types.ObjectId;
791
+ quantity: number;
792
+ subtotal: number;
793
+ _gst_amount: number;
794
+ _net_amount: number;
795
+ _gross_amount: number;
796
+ _discount_amount: number;
797
+ special_instructions: string;
798
+ is_ready?: boolean | null | undefined;
799
+ void_reason?: string | null | undefined;
800
+ }>;
801
+ }>;
802
+ price: number;
803
+ payments: import("mongoose").Types.DocumentArray<{
804
+ payment_type: string;
805
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
806
+ card_details: {
807
+ transaction_id: string;
808
+ payment_provider_linked_customer_id: string;
809
+ card_number: string;
810
+ card_type: string;
811
+ card_holder_name: string;
812
+ card_charges: number;
813
+ card_country_code: string;
814
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
815
+ };
816
+ amount_paid: number;
817
+ amount_due: number;
818
+ amount_refunded: number;
819
+ payment_id: string;
820
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
821
+ refund_reason?: string | null | undefined;
822
+ note?: string | null | undefined;
823
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
824
+ payment_type: string;
825
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
826
+ card_details: {
827
+ transaction_id: string;
828
+ payment_provider_linked_customer_id: string;
829
+ card_number: string;
830
+ card_type: string;
831
+ card_holder_name: string;
832
+ card_charges: number;
833
+ card_country_code: string;
834
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
835
+ };
836
+ amount_paid: number;
837
+ amount_due: number;
838
+ amount_refunded: number;
839
+ payment_id: string;
840
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
841
+ refund_reason?: string | null | undefined;
842
+ note?: string | null | undefined;
843
+ }> & {
844
+ payment_type: string;
845
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
846
+ card_details: {
847
+ transaction_id: string;
848
+ payment_provider_linked_customer_id: string;
849
+ card_number: string;
850
+ card_type: string;
851
+ card_holder_name: string;
852
+ card_charges: number;
853
+ card_country_code: string;
854
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
855
+ };
856
+ amount_paid: number;
857
+ amount_due: number;
858
+ amount_refunded: number;
859
+ payment_id: string;
860
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
861
+ refund_reason?: string | null | undefined;
862
+ note?: string | null | undefined;
863
+ }>;
864
+ special_instructions: string;
865
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
866
+ tax_number: string;
867
+ amount_earned: number;
868
+ grand_total: number;
869
+ staff_details?: {
870
+ staff_id: string;
871
+ staff_name: string;
872
+ staff_mobile: string;
873
+ staff_email: string;
874
+ } | null | undefined;
875
+ gst?: number | null | undefined;
876
+ gst_amount?: number | null | undefined;
877
+ is_gst_inclusive?: boolean | null | undefined;
878
+ }>;
879
+ amount_collected: number;
880
+ is_deleted: boolean;
881
+ order_status_updated_at: NativeDate;
882
+ order_settled_at: NativeDate;
883
+ order_settled_at_mins: number;
884
+ warehouse_id: string;
885
+ vendor_id: import("mongoose").Types.ObjectId;
886
+ vendor_name: string;
887
+ cancel_reason?: string | null | undefined;
888
+ gst?: number | null | undefined;
889
+ gst_amount?: number | null | undefined;
890
+ is_gst_inclusive?: boolean | null | undefined;
891
+ delete_reason?: string | null | undefined;
892
+ is_reopened?: boolean | null | undefined;
893
+ deferred_settlement?: boolean | null | undefined;
894
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
895
+ createdAt: NativeDate;
896
+ updatedAt: NativeDate;
897
+ } & {
898
+ _id: import("mongoose").Types.ObjectId;
899
+ createdAt_mins: number;
900
+ createdAt: NativeDate;
901
+ updatedAt: NativeDate;
902
+ categories: import("mongoose").Types.DocumentArray<{
903
+ name: string;
904
+ category_id: import("mongoose").Types.ObjectId;
905
+ items: import("mongoose").Types.DocumentArray<{
906
+ _id: import("mongoose").Types.ObjectId;
907
+ name: string;
908
+ price: number;
909
+ item_id: import("mongoose").Types.ObjectId;
910
+ quantity: number;
911
+ subtotal: number;
912
+ _gst_amount: number;
913
+ _net_amount: number;
914
+ _gross_amount: number;
915
+ _discount_amount: number;
916
+ special_instructions: string;
917
+ is_ready?: boolean | null | undefined;
918
+ void_reason?: string | null | undefined;
919
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
920
+ _id: import("mongoose").Types.ObjectId;
921
+ name: string;
922
+ price: number;
923
+ item_id: import("mongoose").Types.ObjectId;
924
+ quantity: number;
925
+ subtotal: number;
926
+ _gst_amount: number;
927
+ _net_amount: number;
928
+ _gross_amount: number;
929
+ _discount_amount: number;
930
+ special_instructions: string;
931
+ is_ready?: boolean | null | undefined;
932
+ void_reason?: string | null | undefined;
933
+ }> & {
934
+ _id: import("mongoose").Types.ObjectId;
935
+ name: string;
936
+ price: number;
937
+ item_id: import("mongoose").Types.ObjectId;
938
+ quantity: number;
939
+ subtotal: number;
940
+ _gst_amount: number;
941
+ _net_amount: number;
942
+ _gross_amount: number;
943
+ _discount_amount: number;
944
+ special_instructions: string;
945
+ is_ready?: boolean | null | undefined;
946
+ void_reason?: string | null | undefined;
947
+ }>;
948
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
949
+ name: string;
950
+ category_id: import("mongoose").Types.ObjectId;
951
+ items: import("mongoose").Types.DocumentArray<{
952
+ _id: import("mongoose").Types.ObjectId;
953
+ name: string;
954
+ price: number;
955
+ item_id: import("mongoose").Types.ObjectId;
956
+ quantity: number;
957
+ subtotal: number;
958
+ _gst_amount: number;
959
+ _net_amount: number;
960
+ _gross_amount: number;
961
+ _discount_amount: number;
962
+ special_instructions: string;
963
+ is_ready?: boolean | null | undefined;
964
+ void_reason?: string | null | undefined;
965
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
966
+ _id: import("mongoose").Types.ObjectId;
967
+ name: string;
968
+ price: number;
969
+ item_id: import("mongoose").Types.ObjectId;
970
+ quantity: number;
971
+ subtotal: number;
972
+ _gst_amount: number;
973
+ _net_amount: number;
974
+ _gross_amount: number;
975
+ _discount_amount: number;
976
+ special_instructions: string;
977
+ is_ready?: boolean | null | undefined;
978
+ void_reason?: string | null | undefined;
979
+ }> & {
980
+ _id: import("mongoose").Types.ObjectId;
981
+ name: string;
982
+ price: number;
983
+ item_id: import("mongoose").Types.ObjectId;
984
+ quantity: number;
985
+ subtotal: number;
986
+ _gst_amount: number;
987
+ _net_amount: number;
988
+ _gross_amount: number;
989
+ _discount_amount: number;
990
+ special_instructions: string;
991
+ is_ready?: boolean | null | undefined;
992
+ void_reason?: string | null | undefined;
993
+ }>;
994
+ }> & {
995
+ name: string;
996
+ category_id: import("mongoose").Types.ObjectId;
997
+ items: import("mongoose").Types.DocumentArray<{
998
+ _id: import("mongoose").Types.ObjectId;
999
+ name: string;
1000
+ price: number;
1001
+ item_id: import("mongoose").Types.ObjectId;
1002
+ quantity: number;
1003
+ subtotal: number;
1004
+ _gst_amount: number;
1005
+ _net_amount: number;
1006
+ _gross_amount: number;
1007
+ _discount_amount: number;
1008
+ special_instructions: string;
1009
+ is_ready?: boolean | null | undefined;
1010
+ void_reason?: string | null | undefined;
1011
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1012
+ _id: import("mongoose").Types.ObjectId;
1013
+ name: string;
1014
+ price: number;
1015
+ item_id: import("mongoose").Types.ObjectId;
1016
+ quantity: number;
1017
+ subtotal: number;
1018
+ _gst_amount: number;
1019
+ _net_amount: number;
1020
+ _gross_amount: number;
1021
+ _discount_amount: number;
1022
+ special_instructions: string;
1023
+ is_ready?: boolean | null | undefined;
1024
+ void_reason?: string | null | undefined;
1025
+ }> & {
1026
+ _id: import("mongoose").Types.ObjectId;
1027
+ name: string;
1028
+ price: number;
1029
+ item_id: import("mongoose").Types.ObjectId;
1030
+ quantity: number;
1031
+ subtotal: number;
1032
+ _gst_amount: number;
1033
+ _net_amount: number;
1034
+ _gross_amount: number;
1035
+ _discount_amount: number;
1036
+ special_instructions: string;
1037
+ is_ready?: boolean | null | undefined;
1038
+ void_reason?: string | null | undefined;
1039
+ }>;
1040
+ }>;
1041
+ price: number;
1042
+ order_number: number;
1043
+ payments: import("mongoose").Types.DocumentArray<{
1044
+ payment_type: string;
1045
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1046
+ card_details: {
1047
+ transaction_id: string;
1048
+ payment_provider_linked_customer_id: string;
1049
+ card_number: string;
1050
+ card_type: string;
1051
+ card_holder_name: string;
1052
+ card_charges: number;
1053
+ card_country_code: string;
1054
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1055
+ };
1056
+ amount_paid: number;
1057
+ amount_due: number;
1058
+ amount_refunded: number;
1059
+ payment_id: string;
1060
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1061
+ refund_reason?: string | null | undefined;
1062
+ note?: string | null | undefined;
1063
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
1064
+ payment_type: string;
1065
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1066
+ card_details: {
1067
+ transaction_id: string;
1068
+ payment_provider_linked_customer_id: string;
1069
+ card_number: string;
1070
+ card_type: string;
1071
+ card_holder_name: string;
1072
+ card_charges: number;
1073
+ card_country_code: string;
1074
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1075
+ };
1076
+ amount_paid: number;
1077
+ amount_due: number;
1078
+ amount_refunded: number;
1079
+ payment_id: string;
1080
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1081
+ refund_reason?: string | null | undefined;
1082
+ note?: string | null | undefined;
1083
+ }> & {
1084
+ payment_type: string;
1085
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1086
+ card_details: {
1087
+ transaction_id: string;
1088
+ payment_provider_linked_customer_id: string;
1089
+ card_number: string;
1090
+ card_type: string;
1091
+ card_holder_name: string;
1092
+ card_charges: number;
1093
+ card_country_code: string;
1094
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1095
+ };
1096
+ amount_paid: number;
1097
+ amount_due: number;
1098
+ amount_refunded: number;
1099
+ payment_id: string;
1100
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1101
+ refund_reason?: string | null | undefined;
1102
+ note?: string | null | undefined;
1103
+ }>;
1104
+ special_instructions: string;
1105
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
1106
+ tax_number: string;
1107
+ amount_earned: number;
1108
+ grand_total: number;
1109
+ staff_details: {
1110
+ staff_id: string;
1111
+ staff_name: string;
1112
+ staff_mobile: string;
1113
+ staff_email: string;
1114
+ };
1115
+ iterations: import("mongoose").Types.DocumentArray<{
1116
+ updatedAt: NativeDate;
1117
+ categories: import("mongoose").Types.DocumentArray<{
1118
+ name: string;
1119
+ category_id: import("mongoose").Types.ObjectId;
1120
+ items: import("mongoose").Types.DocumentArray<{
1121
+ _id: import("mongoose").Types.ObjectId;
1122
+ name: string;
1123
+ price: number;
1124
+ item_id: import("mongoose").Types.ObjectId;
1125
+ quantity: number;
1126
+ subtotal: number;
1127
+ _gst_amount: number;
1128
+ _net_amount: number;
1129
+ _gross_amount: number;
1130
+ _discount_amount: number;
1131
+ special_instructions: string;
1132
+ is_ready?: boolean | null | undefined;
1133
+ void_reason?: string | null | undefined;
1134
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1135
+ _id: import("mongoose").Types.ObjectId;
1136
+ name: string;
1137
+ price: number;
1138
+ item_id: import("mongoose").Types.ObjectId;
1139
+ quantity: number;
1140
+ subtotal: number;
1141
+ _gst_amount: number;
1142
+ _net_amount: number;
1143
+ _gross_amount: number;
1144
+ _discount_amount: number;
1145
+ special_instructions: string;
1146
+ is_ready?: boolean | null | undefined;
1147
+ void_reason?: string | null | undefined;
1148
+ }> & {
1149
+ _id: import("mongoose").Types.ObjectId;
1150
+ name: string;
1151
+ price: number;
1152
+ item_id: import("mongoose").Types.ObjectId;
1153
+ quantity: number;
1154
+ subtotal: number;
1155
+ _gst_amount: number;
1156
+ _net_amount: number;
1157
+ _gross_amount: number;
1158
+ _discount_amount: number;
1159
+ special_instructions: string;
1160
+ is_ready?: boolean | null | undefined;
1161
+ void_reason?: string | null | undefined;
1162
+ }>;
1163
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1164
+ name: string;
1165
+ category_id: import("mongoose").Types.ObjectId;
1166
+ items: import("mongoose").Types.DocumentArray<{
1167
+ _id: import("mongoose").Types.ObjectId;
1168
+ name: string;
1169
+ price: number;
1170
+ item_id: import("mongoose").Types.ObjectId;
1171
+ quantity: number;
1172
+ subtotal: number;
1173
+ _gst_amount: number;
1174
+ _net_amount: number;
1175
+ _gross_amount: number;
1176
+ _discount_amount: number;
1177
+ special_instructions: string;
1178
+ is_ready?: boolean | null | undefined;
1179
+ void_reason?: string | null | undefined;
1180
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1181
+ _id: import("mongoose").Types.ObjectId;
1182
+ name: string;
1183
+ price: number;
1184
+ item_id: import("mongoose").Types.ObjectId;
1185
+ quantity: number;
1186
+ subtotal: number;
1187
+ _gst_amount: number;
1188
+ _net_amount: number;
1189
+ _gross_amount: number;
1190
+ _discount_amount: number;
1191
+ special_instructions: string;
1192
+ is_ready?: boolean | null | undefined;
1193
+ void_reason?: string | null | undefined;
1194
+ }> & {
1195
+ _id: import("mongoose").Types.ObjectId;
1196
+ name: string;
1197
+ price: number;
1198
+ item_id: import("mongoose").Types.ObjectId;
1199
+ quantity: number;
1200
+ subtotal: number;
1201
+ _gst_amount: number;
1202
+ _net_amount: number;
1203
+ _gross_amount: number;
1204
+ _discount_amount: number;
1205
+ special_instructions: string;
1206
+ is_ready?: boolean | null | undefined;
1207
+ void_reason?: string | null | undefined;
1208
+ }>;
1209
+ }> & {
1210
+ name: string;
1211
+ category_id: import("mongoose").Types.ObjectId;
1212
+ items: import("mongoose").Types.DocumentArray<{
1213
+ _id: import("mongoose").Types.ObjectId;
1214
+ name: string;
1215
+ price: number;
1216
+ item_id: import("mongoose").Types.ObjectId;
1217
+ quantity: number;
1218
+ subtotal: number;
1219
+ _gst_amount: number;
1220
+ _net_amount: number;
1221
+ _gross_amount: number;
1222
+ _discount_amount: number;
1223
+ special_instructions: string;
1224
+ is_ready?: boolean | null | undefined;
1225
+ void_reason?: string | null | undefined;
1226
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1227
+ _id: import("mongoose").Types.ObjectId;
1228
+ name: string;
1229
+ price: number;
1230
+ item_id: import("mongoose").Types.ObjectId;
1231
+ quantity: number;
1232
+ subtotal: number;
1233
+ _gst_amount: number;
1234
+ _net_amount: number;
1235
+ _gross_amount: number;
1236
+ _discount_amount: number;
1237
+ special_instructions: string;
1238
+ is_ready?: boolean | null | undefined;
1239
+ void_reason?: string | null | undefined;
1240
+ }> & {
1241
+ _id: import("mongoose").Types.ObjectId;
1242
+ name: string;
1243
+ price: number;
1244
+ item_id: import("mongoose").Types.ObjectId;
1245
+ quantity: number;
1246
+ subtotal: number;
1247
+ _gst_amount: number;
1248
+ _net_amount: number;
1249
+ _gross_amount: number;
1250
+ _discount_amount: number;
1251
+ special_instructions: string;
1252
+ is_ready?: boolean | null | undefined;
1253
+ void_reason?: string | null | undefined;
1254
+ }>;
1255
+ }>;
1256
+ price: number;
1257
+ payments: import("mongoose").Types.DocumentArray<{
1258
+ payment_type: string;
1259
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1260
+ card_details: {
1261
+ transaction_id: string;
1262
+ payment_provider_linked_customer_id: string;
1263
+ card_number: string;
1264
+ card_type: string;
1265
+ card_holder_name: string;
1266
+ card_charges: number;
1267
+ card_country_code: string;
1268
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1269
+ };
1270
+ amount_paid: number;
1271
+ amount_due: number;
1272
+ amount_refunded: number;
1273
+ payment_id: string;
1274
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1275
+ refund_reason?: string | null | undefined;
1276
+ note?: string | null | undefined;
1277
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
1278
+ payment_type: string;
1279
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1280
+ card_details: {
1281
+ transaction_id: string;
1282
+ payment_provider_linked_customer_id: string;
1283
+ card_number: string;
1284
+ card_type: string;
1285
+ card_holder_name: string;
1286
+ card_charges: number;
1287
+ card_country_code: string;
1288
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1289
+ };
1290
+ amount_paid: number;
1291
+ amount_due: number;
1292
+ amount_refunded: number;
1293
+ payment_id: string;
1294
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1295
+ refund_reason?: string | null | undefined;
1296
+ note?: string | null | undefined;
1297
+ }> & {
1298
+ payment_type: string;
1299
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1300
+ card_details: {
1301
+ transaction_id: string;
1302
+ payment_provider_linked_customer_id: string;
1303
+ card_number: string;
1304
+ card_type: string;
1305
+ card_holder_name: string;
1306
+ card_charges: number;
1307
+ card_country_code: string;
1308
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1309
+ };
1310
+ amount_paid: number;
1311
+ amount_due: number;
1312
+ amount_refunded: number;
1313
+ payment_id: string;
1314
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1315
+ refund_reason?: string | null | undefined;
1316
+ note?: string | null | undefined;
1317
+ }>;
1318
+ special_instructions: string;
1319
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
1320
+ tax_number: string;
1321
+ amount_earned: number;
1322
+ grand_total: number;
1323
+ staff_details?: {
1324
+ staff_id: string;
1325
+ staff_name: string;
1326
+ staff_mobile: string;
1327
+ staff_email: string;
1328
+ } | null | undefined;
1329
+ gst?: number | null | undefined;
1330
+ gst_amount?: number | null | undefined;
1331
+ is_gst_inclusive?: boolean | null | undefined;
1332
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1333
+ updatedAt: NativeDate;
1334
+ categories: import("mongoose").Types.DocumentArray<{
1335
+ name: string;
1336
+ category_id: import("mongoose").Types.ObjectId;
1337
+ items: import("mongoose").Types.DocumentArray<{
1338
+ _id: import("mongoose").Types.ObjectId;
1339
+ name: string;
1340
+ price: number;
1341
+ item_id: import("mongoose").Types.ObjectId;
1342
+ quantity: number;
1343
+ subtotal: number;
1344
+ _gst_amount: number;
1345
+ _net_amount: number;
1346
+ _gross_amount: number;
1347
+ _discount_amount: number;
1348
+ special_instructions: string;
1349
+ is_ready?: boolean | null | undefined;
1350
+ void_reason?: string | null | undefined;
1351
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1352
+ _id: import("mongoose").Types.ObjectId;
1353
+ name: string;
1354
+ price: number;
1355
+ item_id: import("mongoose").Types.ObjectId;
1356
+ quantity: number;
1357
+ subtotal: number;
1358
+ _gst_amount: number;
1359
+ _net_amount: number;
1360
+ _gross_amount: number;
1361
+ _discount_amount: number;
1362
+ special_instructions: string;
1363
+ is_ready?: boolean | null | undefined;
1364
+ void_reason?: string | null | undefined;
1365
+ }> & {
1366
+ _id: import("mongoose").Types.ObjectId;
1367
+ name: string;
1368
+ price: number;
1369
+ item_id: import("mongoose").Types.ObjectId;
1370
+ quantity: number;
1371
+ subtotal: number;
1372
+ _gst_amount: number;
1373
+ _net_amount: number;
1374
+ _gross_amount: number;
1375
+ _discount_amount: number;
1376
+ special_instructions: string;
1377
+ is_ready?: boolean | null | undefined;
1378
+ void_reason?: string | null | undefined;
1379
+ }>;
1380
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1381
+ name: string;
1382
+ category_id: import("mongoose").Types.ObjectId;
1383
+ items: import("mongoose").Types.DocumentArray<{
1384
+ _id: import("mongoose").Types.ObjectId;
1385
+ name: string;
1386
+ price: number;
1387
+ item_id: import("mongoose").Types.ObjectId;
1388
+ quantity: number;
1389
+ subtotal: number;
1390
+ _gst_amount: number;
1391
+ _net_amount: number;
1392
+ _gross_amount: number;
1393
+ _discount_amount: number;
1394
+ special_instructions: string;
1395
+ is_ready?: boolean | null | undefined;
1396
+ void_reason?: string | null | undefined;
1397
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1398
+ _id: import("mongoose").Types.ObjectId;
1399
+ name: string;
1400
+ price: number;
1401
+ item_id: import("mongoose").Types.ObjectId;
1402
+ quantity: number;
1403
+ subtotal: number;
1404
+ _gst_amount: number;
1405
+ _net_amount: number;
1406
+ _gross_amount: number;
1407
+ _discount_amount: number;
1408
+ special_instructions: string;
1409
+ is_ready?: boolean | null | undefined;
1410
+ void_reason?: string | null | undefined;
1411
+ }> & {
1412
+ _id: import("mongoose").Types.ObjectId;
1413
+ name: string;
1414
+ price: number;
1415
+ item_id: import("mongoose").Types.ObjectId;
1416
+ quantity: number;
1417
+ subtotal: number;
1418
+ _gst_amount: number;
1419
+ _net_amount: number;
1420
+ _gross_amount: number;
1421
+ _discount_amount: number;
1422
+ special_instructions: string;
1423
+ is_ready?: boolean | null | undefined;
1424
+ void_reason?: string | null | undefined;
1425
+ }>;
1426
+ }> & {
1427
+ name: string;
1428
+ category_id: import("mongoose").Types.ObjectId;
1429
+ items: import("mongoose").Types.DocumentArray<{
1430
+ _id: import("mongoose").Types.ObjectId;
1431
+ name: string;
1432
+ price: number;
1433
+ item_id: import("mongoose").Types.ObjectId;
1434
+ quantity: number;
1435
+ subtotal: number;
1436
+ _gst_amount: number;
1437
+ _net_amount: number;
1438
+ _gross_amount: number;
1439
+ _discount_amount: number;
1440
+ special_instructions: string;
1441
+ is_ready?: boolean | null | undefined;
1442
+ void_reason?: string | null | undefined;
1443
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1444
+ _id: import("mongoose").Types.ObjectId;
1445
+ name: string;
1446
+ price: number;
1447
+ item_id: import("mongoose").Types.ObjectId;
1448
+ quantity: number;
1449
+ subtotal: number;
1450
+ _gst_amount: number;
1451
+ _net_amount: number;
1452
+ _gross_amount: number;
1453
+ _discount_amount: number;
1454
+ special_instructions: string;
1455
+ is_ready?: boolean | null | undefined;
1456
+ void_reason?: string | null | undefined;
1457
+ }> & {
1458
+ _id: import("mongoose").Types.ObjectId;
1459
+ name: string;
1460
+ price: number;
1461
+ item_id: import("mongoose").Types.ObjectId;
1462
+ quantity: number;
1463
+ subtotal: number;
1464
+ _gst_amount: number;
1465
+ _net_amount: number;
1466
+ _gross_amount: number;
1467
+ _discount_amount: number;
1468
+ special_instructions: string;
1469
+ is_ready?: boolean | null | undefined;
1470
+ void_reason?: string | null | undefined;
1471
+ }>;
1472
+ }>;
1473
+ price: number;
1474
+ payments: import("mongoose").Types.DocumentArray<{
1475
+ payment_type: string;
1476
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1477
+ card_details: {
1478
+ transaction_id: string;
1479
+ payment_provider_linked_customer_id: string;
1480
+ card_number: string;
1481
+ card_type: string;
1482
+ card_holder_name: string;
1483
+ card_charges: number;
1484
+ card_country_code: string;
1485
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1486
+ };
1487
+ amount_paid: number;
1488
+ amount_due: number;
1489
+ amount_refunded: number;
1490
+ payment_id: string;
1491
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1492
+ refund_reason?: string | null | undefined;
1493
+ note?: string | null | undefined;
1494
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
1495
+ payment_type: string;
1496
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1497
+ card_details: {
1498
+ transaction_id: string;
1499
+ payment_provider_linked_customer_id: string;
1500
+ card_number: string;
1501
+ card_type: string;
1502
+ card_holder_name: string;
1503
+ card_charges: number;
1504
+ card_country_code: string;
1505
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1506
+ };
1507
+ amount_paid: number;
1508
+ amount_due: number;
1509
+ amount_refunded: number;
1510
+ payment_id: string;
1511
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1512
+ refund_reason?: string | null | undefined;
1513
+ note?: string | null | undefined;
1514
+ }> & {
1515
+ payment_type: string;
1516
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1517
+ card_details: {
1518
+ transaction_id: string;
1519
+ payment_provider_linked_customer_id: string;
1520
+ card_number: string;
1521
+ card_type: string;
1522
+ card_holder_name: string;
1523
+ card_charges: number;
1524
+ card_country_code: string;
1525
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1526
+ };
1527
+ amount_paid: number;
1528
+ amount_due: number;
1529
+ amount_refunded: number;
1530
+ payment_id: string;
1531
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1532
+ refund_reason?: string | null | undefined;
1533
+ note?: string | null | undefined;
1534
+ }>;
1535
+ special_instructions: string;
1536
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
1537
+ tax_number: string;
1538
+ amount_earned: number;
1539
+ grand_total: number;
1540
+ staff_details?: {
1541
+ staff_id: string;
1542
+ staff_name: string;
1543
+ staff_mobile: string;
1544
+ staff_email: string;
1545
+ } | null | undefined;
1546
+ gst?: number | null | undefined;
1547
+ gst_amount?: number | null | undefined;
1548
+ is_gst_inclusive?: boolean | null | undefined;
1549
+ }> & {
1550
+ updatedAt: NativeDate;
1551
+ categories: import("mongoose").Types.DocumentArray<{
1552
+ name: string;
1553
+ category_id: import("mongoose").Types.ObjectId;
1554
+ items: import("mongoose").Types.DocumentArray<{
1555
+ _id: import("mongoose").Types.ObjectId;
1556
+ name: string;
1557
+ price: number;
1558
+ item_id: import("mongoose").Types.ObjectId;
1559
+ quantity: number;
1560
+ subtotal: number;
1561
+ _gst_amount: number;
1562
+ _net_amount: number;
1563
+ _gross_amount: number;
1564
+ _discount_amount: number;
1565
+ special_instructions: string;
1566
+ is_ready?: boolean | null | undefined;
1567
+ void_reason?: string | null | undefined;
1568
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1569
+ _id: import("mongoose").Types.ObjectId;
1570
+ name: string;
1571
+ price: number;
1572
+ item_id: import("mongoose").Types.ObjectId;
1573
+ quantity: number;
1574
+ subtotal: number;
1575
+ _gst_amount: number;
1576
+ _net_amount: number;
1577
+ _gross_amount: number;
1578
+ _discount_amount: number;
1579
+ special_instructions: string;
1580
+ is_ready?: boolean | null | undefined;
1581
+ void_reason?: string | null | undefined;
1582
+ }> & {
1583
+ _id: import("mongoose").Types.ObjectId;
1584
+ name: string;
1585
+ price: number;
1586
+ item_id: import("mongoose").Types.ObjectId;
1587
+ quantity: number;
1588
+ subtotal: number;
1589
+ _gst_amount: number;
1590
+ _net_amount: number;
1591
+ _gross_amount: number;
1592
+ _discount_amount: number;
1593
+ special_instructions: string;
1594
+ is_ready?: boolean | null | undefined;
1595
+ void_reason?: string | null | undefined;
1596
+ }>;
1597
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1598
+ name: string;
1599
+ category_id: import("mongoose").Types.ObjectId;
1600
+ items: import("mongoose").Types.DocumentArray<{
1601
+ _id: import("mongoose").Types.ObjectId;
1602
+ name: string;
1603
+ price: number;
1604
+ item_id: import("mongoose").Types.ObjectId;
1605
+ quantity: number;
1606
+ subtotal: number;
1607
+ _gst_amount: number;
1608
+ _net_amount: number;
1609
+ _gross_amount: number;
1610
+ _discount_amount: number;
1611
+ special_instructions: string;
1612
+ is_ready?: boolean | null | undefined;
1613
+ void_reason?: string | null | undefined;
1614
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1615
+ _id: import("mongoose").Types.ObjectId;
1616
+ name: string;
1617
+ price: number;
1618
+ item_id: import("mongoose").Types.ObjectId;
1619
+ quantity: number;
1620
+ subtotal: number;
1621
+ _gst_amount: number;
1622
+ _net_amount: number;
1623
+ _gross_amount: number;
1624
+ _discount_amount: number;
1625
+ special_instructions: string;
1626
+ is_ready?: boolean | null | undefined;
1627
+ void_reason?: string | null | undefined;
1628
+ }> & {
1629
+ _id: import("mongoose").Types.ObjectId;
1630
+ name: string;
1631
+ price: number;
1632
+ item_id: import("mongoose").Types.ObjectId;
1633
+ quantity: number;
1634
+ subtotal: number;
1635
+ _gst_amount: number;
1636
+ _net_amount: number;
1637
+ _gross_amount: number;
1638
+ _discount_amount: number;
1639
+ special_instructions: string;
1640
+ is_ready?: boolean | null | undefined;
1641
+ void_reason?: string | null | undefined;
1642
+ }>;
1643
+ }> & {
1644
+ name: string;
1645
+ category_id: import("mongoose").Types.ObjectId;
1646
+ items: import("mongoose").Types.DocumentArray<{
1647
+ _id: import("mongoose").Types.ObjectId;
1648
+ name: string;
1649
+ price: number;
1650
+ item_id: import("mongoose").Types.ObjectId;
1651
+ quantity: number;
1652
+ subtotal: number;
1653
+ _gst_amount: number;
1654
+ _net_amount: number;
1655
+ _gross_amount: number;
1656
+ _discount_amount: number;
1657
+ special_instructions: string;
1658
+ is_ready?: boolean | null | undefined;
1659
+ void_reason?: string | null | undefined;
1660
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1661
+ _id: import("mongoose").Types.ObjectId;
1662
+ name: string;
1663
+ price: number;
1664
+ item_id: import("mongoose").Types.ObjectId;
1665
+ quantity: number;
1666
+ subtotal: number;
1667
+ _gst_amount: number;
1668
+ _net_amount: number;
1669
+ _gross_amount: number;
1670
+ _discount_amount: number;
1671
+ special_instructions: string;
1672
+ is_ready?: boolean | null | undefined;
1673
+ void_reason?: string | null | undefined;
1674
+ }> & {
1675
+ _id: import("mongoose").Types.ObjectId;
1676
+ name: string;
1677
+ price: number;
1678
+ item_id: import("mongoose").Types.ObjectId;
1679
+ quantity: number;
1680
+ subtotal: number;
1681
+ _gst_amount: number;
1682
+ _net_amount: number;
1683
+ _gross_amount: number;
1684
+ _discount_amount: number;
1685
+ special_instructions: string;
1686
+ is_ready?: boolean | null | undefined;
1687
+ void_reason?: string | null | undefined;
1688
+ }>;
1689
+ }>;
1690
+ price: number;
1691
+ payments: import("mongoose").Types.DocumentArray<{
1692
+ payment_type: string;
1693
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1694
+ card_details: {
1695
+ transaction_id: string;
1696
+ payment_provider_linked_customer_id: string;
1697
+ card_number: string;
1698
+ card_type: string;
1699
+ card_holder_name: string;
1700
+ card_charges: number;
1701
+ card_country_code: string;
1702
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1703
+ };
1704
+ amount_paid: number;
1705
+ amount_due: number;
1706
+ amount_refunded: number;
1707
+ payment_id: string;
1708
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1709
+ refund_reason?: string | null | undefined;
1710
+ note?: string | null | undefined;
1711
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
1712
+ payment_type: string;
1713
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1714
+ card_details: {
1715
+ transaction_id: string;
1716
+ payment_provider_linked_customer_id: string;
1717
+ card_number: string;
1718
+ card_type: string;
1719
+ card_holder_name: string;
1720
+ card_charges: number;
1721
+ card_country_code: string;
1722
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1723
+ };
1724
+ amount_paid: number;
1725
+ amount_due: number;
1726
+ amount_refunded: number;
1727
+ payment_id: string;
1728
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1729
+ refund_reason?: string | null | undefined;
1730
+ note?: string | null | undefined;
1731
+ }> & {
1732
+ payment_type: string;
1733
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1734
+ card_details: {
1735
+ transaction_id: string;
1736
+ payment_provider_linked_customer_id: string;
1737
+ card_number: string;
1738
+ card_type: string;
1739
+ card_holder_name: string;
1740
+ card_charges: number;
1741
+ card_country_code: string;
1742
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1743
+ };
1744
+ amount_paid: number;
1745
+ amount_due: number;
1746
+ amount_refunded: number;
1747
+ payment_id: string;
1748
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1749
+ refund_reason?: string | null | undefined;
1750
+ note?: string | null | undefined;
1751
+ }>;
1752
+ special_instructions: string;
1753
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
1754
+ tax_number: string;
1755
+ amount_earned: number;
1756
+ grand_total: number;
1757
+ staff_details?: {
1758
+ staff_id: string;
1759
+ staff_name: string;
1760
+ staff_mobile: string;
1761
+ staff_email: string;
1762
+ } | null | undefined;
1763
+ gst?: number | null | undefined;
1764
+ gst_amount?: number | null | undefined;
1765
+ is_gst_inclusive?: boolean | null | undefined;
1766
+ }>;
1767
+ amount_collected: number;
1768
+ is_deleted: boolean;
1769
+ order_status_updated_at: NativeDate;
1770
+ order_settled_at: NativeDate;
1771
+ order_settled_at_mins: number;
1772
+ warehouse_id: string;
1773
+ vendor_id: import("mongoose").Types.ObjectId;
1774
+ vendor_name: string;
1775
+ cancel_reason?: string | null | undefined;
1776
+ gst?: number | null | undefined;
1777
+ gst_amount?: number | null | undefined;
1778
+ is_gst_inclusive?: boolean | null | undefined;
1779
+ delete_reason?: string | null | undefined;
1780
+ is_reopened?: boolean | null | undefined;
1781
+ deferred_settlement?: boolean | null | undefined;
1782
+ }>> & import("mongoose").FlatRecord<{
1783
+ createdAt: NativeDate;
1784
+ updatedAt: NativeDate;
1785
+ } & {
1786
+ _id: import("mongoose").Types.ObjectId;
1787
+ createdAt_mins: number;
1788
+ createdAt: NativeDate;
1789
+ updatedAt: NativeDate;
1790
+ categories: import("mongoose").Types.DocumentArray<{
1791
+ name: string;
1792
+ category_id: import("mongoose").Types.ObjectId;
1793
+ items: import("mongoose").Types.DocumentArray<{
1794
+ _id: import("mongoose").Types.ObjectId;
1795
+ name: string;
1796
+ price: number;
1797
+ item_id: import("mongoose").Types.ObjectId;
1798
+ quantity: number;
1799
+ subtotal: number;
1800
+ _gst_amount: number;
1801
+ _net_amount: number;
1802
+ _gross_amount: number;
1803
+ _discount_amount: number;
1804
+ special_instructions: string;
1805
+ is_ready?: boolean | null | undefined;
1806
+ void_reason?: string | null | undefined;
1807
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1808
+ _id: import("mongoose").Types.ObjectId;
1809
+ name: string;
1810
+ price: number;
1811
+ item_id: import("mongoose").Types.ObjectId;
1812
+ quantity: number;
1813
+ subtotal: number;
1814
+ _gst_amount: number;
1815
+ _net_amount: number;
1816
+ _gross_amount: number;
1817
+ _discount_amount: number;
1818
+ special_instructions: string;
1819
+ is_ready?: boolean | null | undefined;
1820
+ void_reason?: string | null | undefined;
1821
+ }> & {
1822
+ _id: import("mongoose").Types.ObjectId;
1823
+ name: string;
1824
+ price: number;
1825
+ item_id: import("mongoose").Types.ObjectId;
1826
+ quantity: number;
1827
+ subtotal: number;
1828
+ _gst_amount: number;
1829
+ _net_amount: number;
1830
+ _gross_amount: number;
1831
+ _discount_amount: number;
1832
+ special_instructions: string;
1833
+ is_ready?: boolean | null | undefined;
1834
+ void_reason?: string | null | undefined;
1835
+ }>;
1836
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1837
+ name: string;
1838
+ category_id: import("mongoose").Types.ObjectId;
1839
+ items: import("mongoose").Types.DocumentArray<{
1840
+ _id: import("mongoose").Types.ObjectId;
1841
+ name: string;
1842
+ price: number;
1843
+ item_id: import("mongoose").Types.ObjectId;
1844
+ quantity: number;
1845
+ subtotal: number;
1846
+ _gst_amount: number;
1847
+ _net_amount: number;
1848
+ _gross_amount: number;
1849
+ _discount_amount: number;
1850
+ special_instructions: string;
1851
+ is_ready?: boolean | null | undefined;
1852
+ void_reason?: string | null | undefined;
1853
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1854
+ _id: import("mongoose").Types.ObjectId;
1855
+ name: string;
1856
+ price: number;
1857
+ item_id: import("mongoose").Types.ObjectId;
1858
+ quantity: number;
1859
+ subtotal: number;
1860
+ _gst_amount: number;
1861
+ _net_amount: number;
1862
+ _gross_amount: number;
1863
+ _discount_amount: number;
1864
+ special_instructions: string;
1865
+ is_ready?: boolean | null | undefined;
1866
+ void_reason?: string | null | undefined;
1867
+ }> & {
1868
+ _id: import("mongoose").Types.ObjectId;
1869
+ name: string;
1870
+ price: number;
1871
+ item_id: import("mongoose").Types.ObjectId;
1872
+ quantity: number;
1873
+ subtotal: number;
1874
+ _gst_amount: number;
1875
+ _net_amount: number;
1876
+ _gross_amount: number;
1877
+ _discount_amount: number;
1878
+ special_instructions: string;
1879
+ is_ready?: boolean | null | undefined;
1880
+ void_reason?: string | null | undefined;
1881
+ }>;
1882
+ }> & {
1883
+ name: string;
1884
+ category_id: import("mongoose").Types.ObjectId;
1885
+ items: import("mongoose").Types.DocumentArray<{
1886
+ _id: import("mongoose").Types.ObjectId;
1887
+ name: string;
1888
+ price: number;
1889
+ item_id: import("mongoose").Types.ObjectId;
1890
+ quantity: number;
1891
+ subtotal: number;
1892
+ _gst_amount: number;
1893
+ _net_amount: number;
1894
+ _gross_amount: number;
1895
+ _discount_amount: number;
1896
+ special_instructions: string;
1897
+ is_ready?: boolean | null | undefined;
1898
+ void_reason?: string | null | undefined;
1899
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1900
+ _id: import("mongoose").Types.ObjectId;
1901
+ name: string;
1902
+ price: number;
1903
+ item_id: import("mongoose").Types.ObjectId;
1904
+ quantity: number;
1905
+ subtotal: number;
1906
+ _gst_amount: number;
1907
+ _net_amount: number;
1908
+ _gross_amount: number;
1909
+ _discount_amount: number;
1910
+ special_instructions: string;
1911
+ is_ready?: boolean | null | undefined;
1912
+ void_reason?: string | null | undefined;
1913
+ }> & {
1914
+ _id: import("mongoose").Types.ObjectId;
1915
+ name: string;
1916
+ price: number;
1917
+ item_id: import("mongoose").Types.ObjectId;
1918
+ quantity: number;
1919
+ subtotal: number;
1920
+ _gst_amount: number;
1921
+ _net_amount: number;
1922
+ _gross_amount: number;
1923
+ _discount_amount: number;
1924
+ special_instructions: string;
1925
+ is_ready?: boolean | null | undefined;
1926
+ void_reason?: string | null | undefined;
1927
+ }>;
1928
+ }>;
1929
+ price: number;
1930
+ order_number: number;
1931
+ payments: import("mongoose").Types.DocumentArray<{
1932
+ payment_type: string;
1933
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1934
+ card_details: {
1935
+ transaction_id: string;
1936
+ payment_provider_linked_customer_id: string;
1937
+ card_number: string;
1938
+ card_type: string;
1939
+ card_holder_name: string;
1940
+ card_charges: number;
1941
+ card_country_code: string;
1942
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1943
+ };
1944
+ amount_paid: number;
1945
+ amount_due: number;
1946
+ amount_refunded: number;
1947
+ payment_id: string;
1948
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1949
+ refund_reason?: string | null | undefined;
1950
+ note?: string | null | undefined;
1951
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
1952
+ payment_type: string;
1953
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1954
+ card_details: {
1955
+ transaction_id: string;
1956
+ payment_provider_linked_customer_id: string;
1957
+ card_number: string;
1958
+ card_type: string;
1959
+ card_holder_name: string;
1960
+ card_charges: number;
1961
+ card_country_code: string;
1962
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1963
+ };
1964
+ amount_paid: number;
1965
+ amount_due: number;
1966
+ amount_refunded: number;
1967
+ payment_id: string;
1968
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1969
+ refund_reason?: string | null | undefined;
1970
+ note?: string | null | undefined;
1971
+ }> & {
1972
+ payment_type: string;
1973
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1974
+ card_details: {
1975
+ transaction_id: string;
1976
+ payment_provider_linked_customer_id: string;
1977
+ card_number: string;
1978
+ card_type: string;
1979
+ card_holder_name: string;
1980
+ card_charges: number;
1981
+ card_country_code: string;
1982
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1983
+ };
1984
+ amount_paid: number;
1985
+ amount_due: number;
1986
+ amount_refunded: number;
1987
+ payment_id: string;
1988
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1989
+ refund_reason?: string | null | undefined;
1990
+ note?: string | null | undefined;
1991
+ }>;
1992
+ special_instructions: string;
1993
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
1994
+ tax_number: string;
1995
+ amount_earned: number;
1996
+ grand_total: number;
1997
+ staff_details: {
1998
+ staff_id: string;
1999
+ staff_name: string;
2000
+ staff_mobile: string;
2001
+ staff_email: string;
2002
+ };
2003
+ iterations: import("mongoose").Types.DocumentArray<{
2004
+ updatedAt: NativeDate;
2005
+ categories: import("mongoose").Types.DocumentArray<{
2006
+ name: string;
2007
+ category_id: import("mongoose").Types.ObjectId;
2008
+ items: import("mongoose").Types.DocumentArray<{
2009
+ _id: import("mongoose").Types.ObjectId;
2010
+ name: string;
2011
+ price: number;
2012
+ item_id: import("mongoose").Types.ObjectId;
2013
+ quantity: number;
2014
+ subtotal: number;
2015
+ _gst_amount: number;
2016
+ _net_amount: number;
2017
+ _gross_amount: number;
2018
+ _discount_amount: number;
2019
+ special_instructions: string;
2020
+ is_ready?: boolean | null | undefined;
2021
+ void_reason?: string | null | undefined;
2022
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2023
+ _id: import("mongoose").Types.ObjectId;
2024
+ name: string;
2025
+ price: number;
2026
+ item_id: import("mongoose").Types.ObjectId;
2027
+ quantity: number;
2028
+ subtotal: number;
2029
+ _gst_amount: number;
2030
+ _net_amount: number;
2031
+ _gross_amount: number;
2032
+ _discount_amount: number;
2033
+ special_instructions: string;
2034
+ is_ready?: boolean | null | undefined;
2035
+ void_reason?: string | null | undefined;
2036
+ }> & {
2037
+ _id: import("mongoose").Types.ObjectId;
2038
+ name: string;
2039
+ price: number;
2040
+ item_id: import("mongoose").Types.ObjectId;
2041
+ quantity: number;
2042
+ subtotal: number;
2043
+ _gst_amount: number;
2044
+ _net_amount: number;
2045
+ _gross_amount: number;
2046
+ _discount_amount: number;
2047
+ special_instructions: string;
2048
+ is_ready?: boolean | null | undefined;
2049
+ void_reason?: string | null | undefined;
2050
+ }>;
2051
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2052
+ name: string;
2053
+ category_id: import("mongoose").Types.ObjectId;
2054
+ items: import("mongoose").Types.DocumentArray<{
2055
+ _id: import("mongoose").Types.ObjectId;
2056
+ name: string;
2057
+ price: number;
2058
+ item_id: import("mongoose").Types.ObjectId;
2059
+ quantity: number;
2060
+ subtotal: number;
2061
+ _gst_amount: number;
2062
+ _net_amount: number;
2063
+ _gross_amount: number;
2064
+ _discount_amount: number;
2065
+ special_instructions: string;
2066
+ is_ready?: boolean | null | undefined;
2067
+ void_reason?: string | null | undefined;
2068
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2069
+ _id: import("mongoose").Types.ObjectId;
2070
+ name: string;
2071
+ price: number;
2072
+ item_id: import("mongoose").Types.ObjectId;
2073
+ quantity: number;
2074
+ subtotal: number;
2075
+ _gst_amount: number;
2076
+ _net_amount: number;
2077
+ _gross_amount: number;
2078
+ _discount_amount: number;
2079
+ special_instructions: string;
2080
+ is_ready?: boolean | null | undefined;
2081
+ void_reason?: string | null | undefined;
2082
+ }> & {
2083
+ _id: import("mongoose").Types.ObjectId;
2084
+ name: string;
2085
+ price: number;
2086
+ item_id: import("mongoose").Types.ObjectId;
2087
+ quantity: number;
2088
+ subtotal: number;
2089
+ _gst_amount: number;
2090
+ _net_amount: number;
2091
+ _gross_amount: number;
2092
+ _discount_amount: number;
2093
+ special_instructions: string;
2094
+ is_ready?: boolean | null | undefined;
2095
+ void_reason?: string | null | undefined;
2096
+ }>;
2097
+ }> & {
2098
+ name: string;
2099
+ category_id: import("mongoose").Types.ObjectId;
2100
+ items: import("mongoose").Types.DocumentArray<{
2101
+ _id: import("mongoose").Types.ObjectId;
2102
+ name: string;
2103
+ price: number;
2104
+ item_id: import("mongoose").Types.ObjectId;
2105
+ quantity: number;
2106
+ subtotal: number;
2107
+ _gst_amount: number;
2108
+ _net_amount: number;
2109
+ _gross_amount: number;
2110
+ _discount_amount: number;
2111
+ special_instructions: string;
2112
+ is_ready?: boolean | null | undefined;
2113
+ void_reason?: string | null | undefined;
2114
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2115
+ _id: import("mongoose").Types.ObjectId;
2116
+ name: string;
2117
+ price: number;
2118
+ item_id: import("mongoose").Types.ObjectId;
2119
+ quantity: number;
2120
+ subtotal: number;
2121
+ _gst_amount: number;
2122
+ _net_amount: number;
2123
+ _gross_amount: number;
2124
+ _discount_amount: number;
2125
+ special_instructions: string;
2126
+ is_ready?: boolean | null | undefined;
2127
+ void_reason?: string | null | undefined;
2128
+ }> & {
2129
+ _id: import("mongoose").Types.ObjectId;
2130
+ name: string;
2131
+ price: number;
2132
+ item_id: import("mongoose").Types.ObjectId;
2133
+ quantity: number;
2134
+ subtotal: number;
2135
+ _gst_amount: number;
2136
+ _net_amount: number;
2137
+ _gross_amount: number;
2138
+ _discount_amount: number;
2139
+ special_instructions: string;
2140
+ is_ready?: boolean | null | undefined;
2141
+ void_reason?: string | null | undefined;
2142
+ }>;
2143
+ }>;
2144
+ price: number;
2145
+ payments: import("mongoose").Types.DocumentArray<{
2146
+ payment_type: string;
2147
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2148
+ card_details: {
2149
+ transaction_id: string;
2150
+ payment_provider_linked_customer_id: string;
2151
+ card_number: string;
2152
+ card_type: string;
2153
+ card_holder_name: string;
2154
+ card_charges: number;
2155
+ card_country_code: string;
2156
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2157
+ };
2158
+ amount_paid: number;
2159
+ amount_due: number;
2160
+ amount_refunded: number;
2161
+ payment_id: string;
2162
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2163
+ refund_reason?: string | null | undefined;
2164
+ note?: string | null | undefined;
2165
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
2166
+ payment_type: string;
2167
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2168
+ card_details: {
2169
+ transaction_id: string;
2170
+ payment_provider_linked_customer_id: string;
2171
+ card_number: string;
2172
+ card_type: string;
2173
+ card_holder_name: string;
2174
+ card_charges: number;
2175
+ card_country_code: string;
2176
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2177
+ };
2178
+ amount_paid: number;
2179
+ amount_due: number;
2180
+ amount_refunded: number;
2181
+ payment_id: string;
2182
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2183
+ refund_reason?: string | null | undefined;
2184
+ note?: string | null | undefined;
2185
+ }> & {
2186
+ payment_type: string;
2187
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2188
+ card_details: {
2189
+ transaction_id: string;
2190
+ payment_provider_linked_customer_id: string;
2191
+ card_number: string;
2192
+ card_type: string;
2193
+ card_holder_name: string;
2194
+ card_charges: number;
2195
+ card_country_code: string;
2196
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2197
+ };
2198
+ amount_paid: number;
2199
+ amount_due: number;
2200
+ amount_refunded: number;
2201
+ payment_id: string;
2202
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2203
+ refund_reason?: string | null | undefined;
2204
+ note?: string | null | undefined;
2205
+ }>;
2206
+ special_instructions: string;
2207
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
2208
+ tax_number: string;
2209
+ amount_earned: number;
2210
+ grand_total: number;
2211
+ staff_details?: {
2212
+ staff_id: string;
2213
+ staff_name: string;
2214
+ staff_mobile: string;
2215
+ staff_email: string;
2216
+ } | null | undefined;
2217
+ gst?: number | null | undefined;
2218
+ gst_amount?: number | null | undefined;
2219
+ is_gst_inclusive?: boolean | null | undefined;
2220
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2221
+ updatedAt: NativeDate;
2222
+ categories: import("mongoose").Types.DocumentArray<{
2223
+ name: string;
2224
+ category_id: import("mongoose").Types.ObjectId;
2225
+ items: import("mongoose").Types.DocumentArray<{
2226
+ _id: import("mongoose").Types.ObjectId;
2227
+ name: string;
2228
+ price: number;
2229
+ item_id: import("mongoose").Types.ObjectId;
2230
+ quantity: number;
2231
+ subtotal: number;
2232
+ _gst_amount: number;
2233
+ _net_amount: number;
2234
+ _gross_amount: number;
2235
+ _discount_amount: number;
2236
+ special_instructions: string;
2237
+ is_ready?: boolean | null | undefined;
2238
+ void_reason?: string | null | undefined;
2239
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2240
+ _id: import("mongoose").Types.ObjectId;
2241
+ name: string;
2242
+ price: number;
2243
+ item_id: import("mongoose").Types.ObjectId;
2244
+ quantity: number;
2245
+ subtotal: number;
2246
+ _gst_amount: number;
2247
+ _net_amount: number;
2248
+ _gross_amount: number;
2249
+ _discount_amount: number;
2250
+ special_instructions: string;
2251
+ is_ready?: boolean | null | undefined;
2252
+ void_reason?: string | null | undefined;
2253
+ }> & {
2254
+ _id: import("mongoose").Types.ObjectId;
2255
+ name: string;
2256
+ price: number;
2257
+ item_id: import("mongoose").Types.ObjectId;
2258
+ quantity: number;
2259
+ subtotal: number;
2260
+ _gst_amount: number;
2261
+ _net_amount: number;
2262
+ _gross_amount: number;
2263
+ _discount_amount: number;
2264
+ special_instructions: string;
2265
+ is_ready?: boolean | null | undefined;
2266
+ void_reason?: string | null | undefined;
2267
+ }>;
2268
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2269
+ name: string;
2270
+ category_id: import("mongoose").Types.ObjectId;
2271
+ items: import("mongoose").Types.DocumentArray<{
2272
+ _id: import("mongoose").Types.ObjectId;
2273
+ name: string;
2274
+ price: number;
2275
+ item_id: import("mongoose").Types.ObjectId;
2276
+ quantity: number;
2277
+ subtotal: number;
2278
+ _gst_amount: number;
2279
+ _net_amount: number;
2280
+ _gross_amount: number;
2281
+ _discount_amount: number;
2282
+ special_instructions: string;
2283
+ is_ready?: boolean | null | undefined;
2284
+ void_reason?: string | null | undefined;
2285
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2286
+ _id: import("mongoose").Types.ObjectId;
2287
+ name: string;
2288
+ price: number;
2289
+ item_id: import("mongoose").Types.ObjectId;
2290
+ quantity: number;
2291
+ subtotal: number;
2292
+ _gst_amount: number;
2293
+ _net_amount: number;
2294
+ _gross_amount: number;
2295
+ _discount_amount: number;
2296
+ special_instructions: string;
2297
+ is_ready?: boolean | null | undefined;
2298
+ void_reason?: string | null | undefined;
2299
+ }> & {
2300
+ _id: import("mongoose").Types.ObjectId;
2301
+ name: string;
2302
+ price: number;
2303
+ item_id: import("mongoose").Types.ObjectId;
2304
+ quantity: number;
2305
+ subtotal: number;
2306
+ _gst_amount: number;
2307
+ _net_amount: number;
2308
+ _gross_amount: number;
2309
+ _discount_amount: number;
2310
+ special_instructions: string;
2311
+ is_ready?: boolean | null | undefined;
2312
+ void_reason?: string | null | undefined;
2313
+ }>;
2314
+ }> & {
2315
+ name: string;
2316
+ category_id: import("mongoose").Types.ObjectId;
2317
+ items: import("mongoose").Types.DocumentArray<{
2318
+ _id: import("mongoose").Types.ObjectId;
2319
+ name: string;
2320
+ price: number;
2321
+ item_id: import("mongoose").Types.ObjectId;
2322
+ quantity: number;
2323
+ subtotal: number;
2324
+ _gst_amount: number;
2325
+ _net_amount: number;
2326
+ _gross_amount: number;
2327
+ _discount_amount: number;
2328
+ special_instructions: string;
2329
+ is_ready?: boolean | null | undefined;
2330
+ void_reason?: string | null | undefined;
2331
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2332
+ _id: import("mongoose").Types.ObjectId;
2333
+ name: string;
2334
+ price: number;
2335
+ item_id: import("mongoose").Types.ObjectId;
2336
+ quantity: number;
2337
+ subtotal: number;
2338
+ _gst_amount: number;
2339
+ _net_amount: number;
2340
+ _gross_amount: number;
2341
+ _discount_amount: number;
2342
+ special_instructions: string;
2343
+ is_ready?: boolean | null | undefined;
2344
+ void_reason?: string | null | undefined;
2345
+ }> & {
2346
+ _id: import("mongoose").Types.ObjectId;
2347
+ name: string;
2348
+ price: number;
2349
+ item_id: import("mongoose").Types.ObjectId;
2350
+ quantity: number;
2351
+ subtotal: number;
2352
+ _gst_amount: number;
2353
+ _net_amount: number;
2354
+ _gross_amount: number;
2355
+ _discount_amount: number;
2356
+ special_instructions: string;
2357
+ is_ready?: boolean | null | undefined;
2358
+ void_reason?: string | null | undefined;
2359
+ }>;
2360
+ }>;
2361
+ price: number;
2362
+ payments: import("mongoose").Types.DocumentArray<{
2363
+ payment_type: string;
2364
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2365
+ card_details: {
2366
+ transaction_id: string;
2367
+ payment_provider_linked_customer_id: string;
2368
+ card_number: string;
2369
+ card_type: string;
2370
+ card_holder_name: string;
2371
+ card_charges: number;
2372
+ card_country_code: string;
2373
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2374
+ };
2375
+ amount_paid: number;
2376
+ amount_due: number;
2377
+ amount_refunded: number;
2378
+ payment_id: string;
2379
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2380
+ refund_reason?: string | null | undefined;
2381
+ note?: string | null | undefined;
2382
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
2383
+ payment_type: string;
2384
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2385
+ card_details: {
2386
+ transaction_id: string;
2387
+ payment_provider_linked_customer_id: string;
2388
+ card_number: string;
2389
+ card_type: string;
2390
+ card_holder_name: string;
2391
+ card_charges: number;
2392
+ card_country_code: string;
2393
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2394
+ };
2395
+ amount_paid: number;
2396
+ amount_due: number;
2397
+ amount_refunded: number;
2398
+ payment_id: string;
2399
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2400
+ refund_reason?: string | null | undefined;
2401
+ note?: string | null | undefined;
2402
+ }> & {
2403
+ payment_type: string;
2404
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2405
+ card_details: {
2406
+ transaction_id: string;
2407
+ payment_provider_linked_customer_id: string;
2408
+ card_number: string;
2409
+ card_type: string;
2410
+ card_holder_name: string;
2411
+ card_charges: number;
2412
+ card_country_code: string;
2413
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2414
+ };
2415
+ amount_paid: number;
2416
+ amount_due: number;
2417
+ amount_refunded: number;
2418
+ payment_id: string;
2419
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2420
+ refund_reason?: string | null | undefined;
2421
+ note?: string | null | undefined;
2422
+ }>;
2423
+ special_instructions: string;
2424
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
2425
+ tax_number: string;
2426
+ amount_earned: number;
2427
+ grand_total: number;
2428
+ staff_details?: {
2429
+ staff_id: string;
2430
+ staff_name: string;
2431
+ staff_mobile: string;
2432
+ staff_email: string;
2433
+ } | null | undefined;
2434
+ gst?: number | null | undefined;
2435
+ gst_amount?: number | null | undefined;
2436
+ is_gst_inclusive?: boolean | null | undefined;
2437
+ }> & {
2438
+ updatedAt: NativeDate;
2439
+ categories: import("mongoose").Types.DocumentArray<{
2440
+ name: string;
2441
+ category_id: import("mongoose").Types.ObjectId;
2442
+ items: import("mongoose").Types.DocumentArray<{
2443
+ _id: import("mongoose").Types.ObjectId;
2444
+ name: string;
2445
+ price: number;
2446
+ item_id: import("mongoose").Types.ObjectId;
2447
+ quantity: number;
2448
+ subtotal: number;
2449
+ _gst_amount: number;
2450
+ _net_amount: number;
2451
+ _gross_amount: number;
2452
+ _discount_amount: number;
2453
+ special_instructions: string;
2454
+ is_ready?: boolean | null | undefined;
2455
+ void_reason?: string | null | undefined;
2456
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2457
+ _id: import("mongoose").Types.ObjectId;
2458
+ name: string;
2459
+ price: number;
2460
+ item_id: import("mongoose").Types.ObjectId;
2461
+ quantity: number;
2462
+ subtotal: number;
2463
+ _gst_amount: number;
2464
+ _net_amount: number;
2465
+ _gross_amount: number;
2466
+ _discount_amount: number;
2467
+ special_instructions: string;
2468
+ is_ready?: boolean | null | undefined;
2469
+ void_reason?: string | null | undefined;
2470
+ }> & {
2471
+ _id: import("mongoose").Types.ObjectId;
2472
+ name: string;
2473
+ price: number;
2474
+ item_id: import("mongoose").Types.ObjectId;
2475
+ quantity: number;
2476
+ subtotal: number;
2477
+ _gst_amount: number;
2478
+ _net_amount: number;
2479
+ _gross_amount: number;
2480
+ _discount_amount: number;
2481
+ special_instructions: string;
2482
+ is_ready?: boolean | null | undefined;
2483
+ void_reason?: string | null | undefined;
2484
+ }>;
2485
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2486
+ name: string;
2487
+ category_id: import("mongoose").Types.ObjectId;
2488
+ items: import("mongoose").Types.DocumentArray<{
2489
+ _id: import("mongoose").Types.ObjectId;
2490
+ name: string;
2491
+ price: number;
2492
+ item_id: import("mongoose").Types.ObjectId;
2493
+ quantity: number;
2494
+ subtotal: number;
2495
+ _gst_amount: number;
2496
+ _net_amount: number;
2497
+ _gross_amount: number;
2498
+ _discount_amount: number;
2499
+ special_instructions: string;
2500
+ is_ready?: boolean | null | undefined;
2501
+ void_reason?: string | null | undefined;
2502
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2503
+ _id: import("mongoose").Types.ObjectId;
2504
+ name: string;
2505
+ price: number;
2506
+ item_id: import("mongoose").Types.ObjectId;
2507
+ quantity: number;
2508
+ subtotal: number;
2509
+ _gst_amount: number;
2510
+ _net_amount: number;
2511
+ _gross_amount: number;
2512
+ _discount_amount: number;
2513
+ special_instructions: string;
2514
+ is_ready?: boolean | null | undefined;
2515
+ void_reason?: string | null | undefined;
2516
+ }> & {
2517
+ _id: import("mongoose").Types.ObjectId;
2518
+ name: string;
2519
+ price: number;
2520
+ item_id: import("mongoose").Types.ObjectId;
2521
+ quantity: number;
2522
+ subtotal: number;
2523
+ _gst_amount: number;
2524
+ _net_amount: number;
2525
+ _gross_amount: number;
2526
+ _discount_amount: number;
2527
+ special_instructions: string;
2528
+ is_ready?: boolean | null | undefined;
2529
+ void_reason?: string | null | undefined;
2530
+ }>;
2531
+ }> & {
2532
+ name: string;
2533
+ category_id: import("mongoose").Types.ObjectId;
2534
+ items: import("mongoose").Types.DocumentArray<{
2535
+ _id: import("mongoose").Types.ObjectId;
2536
+ name: string;
2537
+ price: number;
2538
+ item_id: import("mongoose").Types.ObjectId;
2539
+ quantity: number;
2540
+ subtotal: number;
2541
+ _gst_amount: number;
2542
+ _net_amount: number;
2543
+ _gross_amount: number;
2544
+ _discount_amount: number;
2545
+ special_instructions: string;
2546
+ is_ready?: boolean | null | undefined;
2547
+ void_reason?: string | null | undefined;
2548
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2549
+ _id: import("mongoose").Types.ObjectId;
2550
+ name: string;
2551
+ price: number;
2552
+ item_id: import("mongoose").Types.ObjectId;
2553
+ quantity: number;
2554
+ subtotal: number;
2555
+ _gst_amount: number;
2556
+ _net_amount: number;
2557
+ _gross_amount: number;
2558
+ _discount_amount: number;
2559
+ special_instructions: string;
2560
+ is_ready?: boolean | null | undefined;
2561
+ void_reason?: string | null | undefined;
2562
+ }> & {
2563
+ _id: import("mongoose").Types.ObjectId;
2564
+ name: string;
2565
+ price: number;
2566
+ item_id: import("mongoose").Types.ObjectId;
2567
+ quantity: number;
2568
+ subtotal: number;
2569
+ _gst_amount: number;
2570
+ _net_amount: number;
2571
+ _gross_amount: number;
2572
+ _discount_amount: number;
2573
+ special_instructions: string;
2574
+ is_ready?: boolean | null | undefined;
2575
+ void_reason?: string | null | undefined;
2576
+ }>;
2577
+ }>;
2578
+ price: number;
2579
+ payments: import("mongoose").Types.DocumentArray<{
2580
+ payment_type: string;
2581
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2582
+ card_details: {
2583
+ transaction_id: string;
2584
+ payment_provider_linked_customer_id: string;
2585
+ card_number: string;
2586
+ card_type: string;
2587
+ card_holder_name: string;
2588
+ card_charges: number;
2589
+ card_country_code: string;
2590
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2591
+ };
2592
+ amount_paid: number;
2593
+ amount_due: number;
2594
+ amount_refunded: number;
2595
+ payment_id: string;
2596
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2597
+ refund_reason?: string | null | undefined;
2598
+ note?: string | null | undefined;
2599
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
2600
+ payment_type: string;
2601
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2602
+ card_details: {
2603
+ transaction_id: string;
2604
+ payment_provider_linked_customer_id: string;
2605
+ card_number: string;
2606
+ card_type: string;
2607
+ card_holder_name: string;
2608
+ card_charges: number;
2609
+ card_country_code: string;
2610
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2611
+ };
2612
+ amount_paid: number;
2613
+ amount_due: number;
2614
+ amount_refunded: number;
2615
+ payment_id: string;
2616
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2617
+ refund_reason?: string | null | undefined;
2618
+ note?: string | null | undefined;
2619
+ }> & {
2620
+ payment_type: string;
2621
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2622
+ card_details: {
2623
+ transaction_id: string;
2624
+ payment_provider_linked_customer_id: string;
2625
+ card_number: string;
2626
+ card_type: string;
2627
+ card_holder_name: string;
2628
+ card_charges: number;
2629
+ card_country_code: string;
2630
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2631
+ };
2632
+ amount_paid: number;
2633
+ amount_due: number;
2634
+ amount_refunded: number;
2635
+ payment_id: string;
2636
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2637
+ refund_reason?: string | null | undefined;
2638
+ note?: string | null | undefined;
2639
+ }>;
2640
+ special_instructions: string;
2641
+ order_status: import("../../constants").PURCHASE_ORDER_STATUS_ENUM;
2642
+ tax_number: string;
2643
+ amount_earned: number;
2644
+ grand_total: number;
2645
+ staff_details?: {
2646
+ staff_id: string;
2647
+ staff_name: string;
2648
+ staff_mobile: string;
2649
+ staff_email: string;
2650
+ } | null | undefined;
2651
+ gst?: number | null | undefined;
2652
+ gst_amount?: number | null | undefined;
2653
+ is_gst_inclusive?: boolean | null | undefined;
2654
+ }>;
2655
+ amount_collected: number;
2656
+ is_deleted: boolean;
2657
+ order_status_updated_at: NativeDate;
2658
+ order_settled_at: NativeDate;
2659
+ order_settled_at_mins: number;
2660
+ warehouse_id: string;
2661
+ vendor_id: import("mongoose").Types.ObjectId;
2662
+ vendor_name: string;
2663
+ cancel_reason?: string | null | undefined;
2664
+ gst?: number | null | undefined;
2665
+ gst_amount?: number | null | undefined;
2666
+ is_gst_inclusive?: boolean | null | undefined;
2667
+ delete_reason?: string | null | undefined;
2668
+ is_reopened?: boolean | null | undefined;
2669
+ deferred_settlement?: boolean | null | undefined;
2670
+ }> & Required<{
2671
+ _id: import("mongoose").Types.ObjectId;
2672
+ }> & {
2673
+ __v: number;
2674
+ }>;
2675
+ export declare const PURCHASE_ORDER_COLLECTION_NAME = "purchase_orders";