digikhata-mashreq-sdk 1.0.0 → 1.1.0

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 (718) hide show
  1. package/lib/module/App.js +13 -26
  2. package/lib/module/App.js.map +1 -1
  3. package/lib/module/app/api/api.js +12 -0
  4. package/lib/module/app/api/api.js.map +1 -0
  5. package/lib/module/app/assets/Icons/Bill.png +0 -0
  6. package/lib/module/app/assets/Icons/Bill_Grey.png +0 -0
  7. package/lib/module/app/assets/Icons/Cash.png +0 -0
  8. package/lib/module/app/assets/Icons/Cash_Grey.png +0 -0
  9. package/lib/module/app/assets/Icons/Expense.png +0 -0
  10. package/lib/module/app/assets/Icons/Expense_Grey.png +0 -0
  11. package/lib/module/app/assets/Icons/Staff.png +0 -0
  12. package/lib/module/app/assets/Icons/Stock.png +0 -0
  13. package/lib/module/app/assets/Icons/Stock_Grey.png +0 -0
  14. package/lib/module/app/assets/Icons/abc.png +0 -0
  15. package/lib/module/app/assets/Icons/bank_logo.png +0 -0
  16. package/lib/module/app/assets/Icons/download_sale.png +0 -0
  17. package/lib/module/app/assets/Icons/recycle-bin.png +0 -0
  18. package/lib/module/app/assets/animations/recording.json +1 -0
  19. package/lib/module/app/assets/animations/success.json +1 -0
  20. package/lib/module/app/assets/animations/voice_visualization.json +1 -0
  21. package/lib/module/app/assets/businessCards/card_11.png +0 -0
  22. package/lib/module/app/assets/businessCards/card_12_bg.png +0 -0
  23. package/lib/module/app/assets/businessCards/card_wall_01.jpeg +0 -0
  24. package/lib/module/app/assets/businessCards/card_wall_02.jpeg +0 -0
  25. package/lib/module/app/assets/businessCards/card_wall_03.jpeg +0 -0
  26. package/lib/module/app/assets/businessCards/card_wall_04.jpeg +0 -0
  27. package/lib/module/app/assets/businessCards/card_wall_05.jpeg +0 -0
  28. package/lib/module/app/assets/businessCards/card_wall_06.jpeg +0 -0
  29. package/lib/module/app/assets/businessCards/card_wall_07.jpeg +0 -0
  30. package/lib/module/app/assets/businessCards/card_wall_08.jpeg +0 -0
  31. package/lib/module/app/assets/illustrations/empty.png +0 -0
  32. package/lib/module/app/assets/illustrations/packages.png +0 -0
  33. package/lib/module/app/assets/images/Digikhata_idzarHgH0q_0.png +0 -0
  34. package/lib/module/app/assets/images/bank.png +0 -0
  35. package/lib/module/app/assets/images/digiLogo-main.png +0 -0
  36. package/lib/module/app/assets/images/svgviewer-output.svg +57 -0
  37. package/lib/module/app/assets/images/user.png +0 -0
  38. package/lib/module/app/assets/oldIcons/BILL.svg +3 -0
  39. package/lib/module/app/assets/oldIcons/CASH.svg +4 -0
  40. package/lib/module/app/assets/oldIcons/EXPENSE.svg +6 -0
  41. package/lib/module/app/assets/oldIcons/STAFF.svg +3 -0
  42. package/lib/module/app/assets/oldIcons/Sale Active.svg +14 -0
  43. package/lib/module/app/assets/oldIcons/Stock.svg +5 -0
  44. package/lib/module/app/assets/svg/BILL.svg +4 -0
  45. package/lib/module/app/assets/svg/CASH.svg +6 -0
  46. package/lib/module/app/assets/svg/EXPENSE.svg +5 -0
  47. package/lib/module/app/assets/svg/More Icon.svg +6 -0
  48. package/lib/module/app/assets/svg/Payment Icon.svg +4 -0
  49. package/lib/module/app/assets/svg/Pos.svg +13 -0
  50. package/lib/module/app/assets/svg/STAFF.svg +5 -0
  51. package/lib/module/app/assets/svg/Sale Active.svg +8 -0
  52. package/lib/module/app/assets/svg/Sale Icon.svg +3 -0
  53. package/lib/module/app/assets/svg/Stock.svg +5 -0
  54. package/lib/module/app/components/AccountSetupSteps.js +64 -0
  55. package/lib/module/app/components/AccountSetupSteps.js.map +1 -0
  56. package/lib/module/app/components/AddItemBillParent.js +366 -0
  57. package/lib/module/app/components/AddItemBillParent.js.map +1 -0
  58. package/lib/module/app/components/AdditemBillChild.js +1123 -0
  59. package/lib/module/app/components/AdditemBillChild.js.map +1 -0
  60. package/lib/module/app/components/Balance.js +116 -70
  61. package/lib/module/app/components/Balance.js.map +1 -1
  62. package/lib/module/app/components/BillList.js +428 -0
  63. package/lib/module/app/components/BillList.js.map +1 -0
  64. package/lib/module/app/components/BillSetupSteps.js +64 -0
  65. package/lib/module/app/components/BillSetupSteps.js.map +1 -0
  66. package/lib/module/app/components/BottomView.js +35 -0
  67. package/lib/module/app/components/BottomView.js.map +1 -0
  68. package/lib/module/app/components/BusinessCards/Card1.js +202 -0
  69. package/lib/module/app/components/BusinessCards/Card1.js.map +1 -0
  70. package/lib/module/app/components/BusinessCards/Card10.js +234 -0
  71. package/lib/module/app/components/BusinessCards/Card10.js.map +1 -0
  72. package/lib/module/app/components/BusinessCards/Card2.js +190 -0
  73. package/lib/module/app/components/BusinessCards/Card2.js.map +1 -0
  74. package/lib/module/app/components/BusinessCards/Card3.js +186 -0
  75. package/lib/module/app/components/BusinessCards/Card3.js.map +1 -0
  76. package/lib/module/app/components/BusinessCards/Card4.js +186 -0
  77. package/lib/module/app/components/BusinessCards/Card4.js.map +1 -0
  78. package/lib/module/app/components/BusinessCards/Card5.js +189 -0
  79. package/lib/module/app/components/BusinessCards/Card5.js.map +1 -0
  80. package/lib/module/app/components/BusinessCards/Card6.js +198 -0
  81. package/lib/module/app/components/BusinessCards/Card6.js.map +1 -0
  82. package/lib/module/app/components/BusinessCards/Card7.js +185 -0
  83. package/lib/module/app/components/BusinessCards/Card7.js.map +1 -0
  84. package/lib/module/app/components/BusinessCards/Card8.js +187 -0
  85. package/lib/module/app/components/BusinessCards/Card8.js.map +1 -0
  86. package/lib/module/app/components/BusinessCards/Card9.js +234 -0
  87. package/lib/module/app/components/BusinessCards/Card9.js.map +1 -0
  88. package/lib/module/app/components/BusinessCards/index.js +13 -0
  89. package/lib/module/app/components/BusinessCards/index.js.map +1 -0
  90. package/lib/module/app/components/CashEntryComponent.js +256 -0
  91. package/lib/module/app/components/CashEntryComponent.js.map +1 -0
  92. package/lib/module/app/components/CityModal.js +116 -0
  93. package/lib/module/app/components/CityModal.js.map +1 -0
  94. package/lib/module/app/components/CountryPhoneInput.js +263 -166
  95. package/lib/module/app/components/CountryPhoneInput.js.map +1 -1
  96. package/lib/module/app/components/CreateExpenseAccount.js +139 -0
  97. package/lib/module/app/components/CreateExpenseAccount.js.map +1 -0
  98. package/lib/module/app/components/CustomStatusBar.js +29 -0
  99. package/lib/module/app/components/CustomStatusBar.js.map +1 -0
  100. package/lib/module/app/components/CustomToast.js +135 -0
  101. package/lib/module/app/components/CustomToast.js.map +1 -0
  102. package/lib/module/app/components/DeleteBusinessModal.js +174 -0
  103. package/lib/module/app/components/DeleteBusinessModal.js.map +1 -0
  104. package/lib/module/app/components/DiscountTaxModal.js +242 -0
  105. package/lib/module/app/components/DiscountTaxModal.js.map +1 -0
  106. package/lib/module/app/components/Entries.js +54 -32
  107. package/lib/module/app/components/Entries.js.map +1 -1
  108. package/lib/module/app/components/ExpenseList.js +402 -0
  109. package/lib/module/app/components/ExpenseList.js.map +1 -0
  110. package/lib/module/app/components/ExpenseParent.js +441 -0
  111. package/lib/module/app/components/ExpenseParent.js.map +1 -0
  112. package/lib/module/app/components/FloatingInput.js +159 -0
  113. package/lib/module/app/components/FloatingInput.js.map +1 -0
  114. package/lib/module/app/components/Header.js +107 -0
  115. package/lib/module/app/components/Header.js.map +1 -0
  116. package/lib/module/app/components/Loader.js +45 -0
  117. package/lib/module/app/components/Loader.js.map +1 -0
  118. package/lib/module/app/components/PartyModal.js +230 -0
  119. package/lib/module/app/components/PartyModal.js.map +1 -0
  120. package/lib/module/app/components/PickerModal.js +153 -0
  121. package/lib/module/app/components/PickerModal.js.map +1 -0
  122. package/lib/module/app/components/SalePaymentModal.js +743 -0
  123. package/lib/module/app/components/SalePaymentModal.js.map +1 -0
  124. package/lib/module/app/components/SearchBar.js +179 -42
  125. package/lib/module/app/components/SearchBar.js.map +1 -1
  126. package/lib/module/app/components/StockDetailChild.js +425 -0
  127. package/lib/module/app/components/StockDetailChild.js.map +1 -0
  128. package/lib/module/app/components/StockList.js +448 -0
  129. package/lib/module/app/components/StockList.js.map +1 -0
  130. package/lib/module/app/components/StockReportTransaction.js +182 -0
  131. package/lib/module/app/components/StockReportTransaction.js.map +1 -0
  132. package/lib/module/app/components/Transaction.js +193 -53
  133. package/lib/module/app/components/Transaction.js.map +1 -1
  134. package/lib/module/app/components/User.js +106 -51
  135. package/lib/module/app/components/User.js.map +1 -1
  136. package/lib/module/app/components/index.js +20 -1
  137. package/lib/module/app/components/index.js.map +1 -1
  138. package/lib/module/app/database/bill.js +247 -0
  139. package/lib/module/app/database/bill.js.map +1 -0
  140. package/lib/module/app/database/business.js +262 -0
  141. package/lib/module/app/database/business.js.map +1 -0
  142. package/lib/module/app/database/cash.js +299 -0
  143. package/lib/module/app/database/cash.js.map +1 -0
  144. package/lib/module/app/database/clients.js +1182 -36
  145. package/lib/module/app/database/clients.js.map +1 -1
  146. package/lib/module/app/database/expense.js +299 -0
  147. package/lib/module/app/database/expense.js.map +1 -0
  148. package/lib/module/app/database/schema.js +113 -3
  149. package/lib/module/app/database/schema.js.map +1 -1
  150. package/lib/module/app/database/stock.js +509 -0
  151. package/lib/module/app/database/stock.js.map +1 -0
  152. package/lib/module/app/htmlTemplates/htmlTemplates.js +2504 -0
  153. package/lib/module/app/htmlTemplates/htmlTemplates.js.map +1 -0
  154. package/lib/module/app/navigation/BillStack/BillStack.js +40 -0
  155. package/lib/module/app/navigation/BillStack/BillStack.js.map +1 -0
  156. package/lib/module/app/navigation/BottomTabs/BottomTabs.js +10 -5
  157. package/lib/module/app/navigation/BottomTabs/BottomTabs.js.map +1 -1
  158. package/lib/module/app/navigation/BusinessStack/BusinessStack.js +30 -0
  159. package/lib/module/app/navigation/BusinessStack/BusinessStack.js.map +1 -0
  160. package/lib/module/app/navigation/CashStack/CashStack.js +79 -0
  161. package/lib/module/app/navigation/CashStack/CashStack.js.map +1 -0
  162. package/lib/module/app/navigation/EntriesStack/EntriesStack.js +223 -0
  163. package/lib/module/app/navigation/EntriesStack/EntriesStack.js.map +1 -0
  164. package/lib/module/app/navigation/ExpenseStack.js/ExpenseStack.js +37 -0
  165. package/lib/module/app/navigation/ExpenseStack.js/ExpenseStack.js.map +1 -0
  166. package/lib/module/app/navigation/HomeStack/HomeStack.js +93 -1
  167. package/lib/module/app/navigation/HomeStack/HomeStack.js.map +1 -1
  168. package/lib/module/app/navigation/Root.js +10 -1
  169. package/lib/module/app/navigation/Root.js.map +1 -1
  170. package/lib/module/app/navigation/SaleStack/SaleStack.js +73 -0
  171. package/lib/module/app/navigation/SaleStack/SaleStack.js.map +1 -0
  172. package/lib/module/app/navigation/StockStack/StockStack.js +49 -0
  173. package/lib/module/app/navigation/StockStack/StockStack.js.map +1 -0
  174. package/lib/module/app/navigation/index.js +3 -1
  175. package/lib/module/app/navigation/index.js.map +1 -1
  176. package/lib/module/app/redux/Store.js +3 -1
  177. package/lib/module/app/redux/Store.js.map +1 -1
  178. package/lib/module/app/redux/reducers/client/client_reducers.js +23 -2
  179. package/lib/module/app/redux/reducers/client/client_reducers.js.map +1 -1
  180. package/lib/module/app/redux/reducers/client/client_types.js +5 -0
  181. package/lib/module/app/redux/reducers/client/client_types.js.map +1 -1
  182. package/lib/module/app/redux/reducers/user/user_reducers.js +22 -0
  183. package/lib/module/app/redux/reducers/user/user_reducers.js.map +1 -0
  184. package/lib/module/app/redux/reducers/user/user_types.js +6 -0
  185. package/lib/module/app/redux/reducers/user/user_types.js.map +1 -0
  186. package/lib/module/app/screens/AddBank.js +237 -0
  187. package/lib/module/app/screens/AddBank.js.map +1 -0
  188. package/lib/module/app/screens/AddBusiness.js +905 -0
  189. package/lib/module/app/screens/AddBusiness.js.map +1 -0
  190. package/lib/module/app/screens/AddItems.js +433 -0
  191. package/lib/module/app/screens/AddItems.js.map +1 -0
  192. package/lib/module/app/screens/AddScreen.js +341 -77
  193. package/lib/module/app/screens/AddScreen.js.map +1 -1
  194. package/lib/module/app/screens/All.js +836 -0
  195. package/lib/module/app/screens/All.js.map +1 -0
  196. package/lib/module/app/screens/AllTransactions.js +846 -0
  197. package/lib/module/app/screens/AllTransactions.js.map +1 -0
  198. package/lib/module/app/screens/Banks.js +807 -48
  199. package/lib/module/app/screens/Banks.js.map +1 -1
  200. package/lib/module/app/screens/BillDetails.js +1033 -0
  201. package/lib/module/app/screens/BillDetails.js.map +1 -0
  202. package/lib/module/app/screens/BillHome.js +102 -0
  203. package/lib/module/app/screens/BillHome.js.map +1 -0
  204. package/lib/module/app/screens/BillParent.js +373 -0
  205. package/lib/module/app/screens/BillParent.js.map +1 -0
  206. package/lib/module/app/screens/BusinessDetail.js +787 -0
  207. package/lib/module/app/screens/BusinessDetail.js.map +1 -0
  208. package/lib/module/app/screens/CashEntry.js +2429 -0
  209. package/lib/module/app/screens/CashEntry.js.map +1 -0
  210. package/lib/module/app/screens/CashEntryDetails.js +574 -0
  211. package/lib/module/app/screens/CashEntryDetails.js.map +1 -0
  212. package/lib/module/app/screens/CashHome.js +544 -0
  213. package/lib/module/app/screens/CashHome.js.map +1 -0
  214. package/lib/module/app/screens/CashReport.js +1297 -0
  215. package/lib/module/app/screens/CashReport.js.map +1 -0
  216. package/lib/module/app/screens/CashSummary.js +602 -0
  217. package/lib/module/app/screens/CashSummary.js.map +1 -0
  218. package/lib/module/app/screens/CreateBill.js +2137 -0
  219. package/lib/module/app/screens/CreateBill.js.map +1 -0
  220. package/lib/module/app/screens/CustomerEntries.js +1093 -184
  221. package/lib/module/app/screens/CustomerEntries.js.map +1 -1
  222. package/lib/module/app/screens/Customers.js +727 -96
  223. package/lib/module/app/screens/Customers.js.map +1 -1
  224. package/lib/module/app/screens/EditCategory.js +299 -0
  225. package/lib/module/app/screens/EditCategory.js.map +1 -0
  226. package/lib/module/app/screens/EditCategoryStock.js +302 -0
  227. package/lib/module/app/screens/EditCategoryStock.js.map +1 -0
  228. package/lib/module/app/screens/Entry.js +1838 -275
  229. package/lib/module/app/screens/Entry.js.map +1 -1
  230. package/lib/module/app/screens/ExpenseDetail.js +15 -0
  231. package/lib/module/app/screens/ExpenseDetail.js.map +1 -0
  232. package/lib/module/app/screens/ExpenseEntries.js +713 -0
  233. package/lib/module/app/screens/ExpenseEntries.js.map +1 -0
  234. package/lib/module/app/screens/ExpenseEntry.js +2095 -0
  235. package/lib/module/app/screens/ExpenseEntry.js.map +1 -0
  236. package/lib/module/app/screens/ExpenseEntryDetails.js +508 -0
  237. package/lib/module/app/screens/ExpenseEntryDetails.js.map +1 -0
  238. package/lib/module/app/screens/ExpenseEntryReport.js +792 -0
  239. package/lib/module/app/screens/ExpenseEntryReport.js.map +1 -0
  240. package/lib/module/app/screens/ExpenseReport.js +792 -0
  241. package/lib/module/app/screens/ExpenseReport.js.map +1 -0
  242. package/lib/module/app/screens/Geolocation.js +374 -0
  243. package/lib/module/app/screens/Geolocation.js.map +1 -0
  244. package/lib/module/app/screens/GetStarted.js +213 -0
  245. package/lib/module/app/screens/GetStarted.js.map +1 -0
  246. package/lib/module/app/screens/HomeScreen.js +202 -55
  247. package/lib/module/app/screens/HomeScreen.js.map +1 -1
  248. package/lib/module/app/screens/InBuy.js +854 -0
  249. package/lib/module/app/screens/InBuy.js.map +1 -0
  250. package/lib/module/app/screens/ItemEntryDetails.js +652 -0
  251. package/lib/module/app/screens/ItemEntryDetails.js.map +1 -0
  252. package/lib/module/app/screens/LowStock.js +372 -0
  253. package/lib/module/app/screens/LowStock.js.map +1 -0
  254. package/lib/module/app/screens/NewPin.js +234 -0
  255. package/lib/module/app/screens/NewPin.js.map +1 -0
  256. package/lib/module/app/screens/OutSell.js +1883 -0
  257. package/lib/module/app/screens/OutSell.js.map +1 -0
  258. package/lib/module/app/screens/POSSale.js +637 -0
  259. package/lib/module/app/screens/POSSale.js.map +1 -0
  260. package/lib/module/app/screens/PinScreen.js +663 -0
  261. package/lib/module/app/screens/PinScreen.js.map +1 -0
  262. package/lib/module/app/screens/PreviewBill.js +329 -0
  263. package/lib/module/app/screens/PreviewBill.js.map +1 -0
  264. package/lib/module/app/screens/Profile.js +1160 -0
  265. package/lib/module/app/screens/Profile.js.map +1 -0
  266. package/lib/module/app/screens/RateList.js +432 -0
  267. package/lib/module/app/screens/RateList.js.map +1 -0
  268. package/lib/module/app/screens/Report.js +1105 -0
  269. package/lib/module/app/screens/Report.js.map +1 -0
  270. package/lib/module/app/screens/SaleItemDetail.js +1047 -0
  271. package/lib/module/app/screens/SaleItemDetail.js.map +1 -0
  272. package/lib/module/app/screens/SaleParent.js +289 -0
  273. package/lib/module/app/screens/SaleParent.js.map +1 -0
  274. package/lib/module/app/screens/SelectBank.js +220 -0
  275. package/lib/module/app/screens/SelectBank.js.map +1 -0
  276. package/lib/module/app/screens/SelectBusiness.js +497 -93
  277. package/lib/module/app/screens/SelectBusiness.js.map +1 -1
  278. package/lib/module/app/screens/Splash.js +93 -20
  279. package/lib/module/app/screens/Splash.js.map +1 -1
  280. package/lib/module/app/screens/StockChild.js +362 -0
  281. package/lib/module/app/screens/StockChild.js.map +1 -0
  282. package/lib/module/app/screens/StockDetail.js +705 -0
  283. package/lib/module/app/screens/StockDetail.js.map +1 -0
  284. package/lib/module/app/screens/StockParent.js +260 -0
  285. package/lib/module/app/screens/StockParent.js.map +1 -0
  286. package/lib/module/app/screens/StockReport.js +1031 -0
  287. package/lib/module/app/screens/StockReport.js.map +1 -0
  288. package/lib/module/app/screens/StockValue.js +545 -0
  289. package/lib/module/app/screens/StockValue.js.map +1 -0
  290. package/lib/module/app/screens/Suppliers.js +753 -98
  291. package/lib/module/app/screens/Suppliers.js.map +1 -1
  292. package/lib/module/app/screens/TransactionDetails.js +1169 -81
  293. package/lib/module/app/screens/TransactionDetails.js.map +1 -1
  294. package/lib/module/app/screens/UpdateBusiness.js +707 -0
  295. package/lib/module/app/screens/UpdateBusiness.js.map +1 -0
  296. package/lib/module/app/screens/VisionCamera.js +60 -0
  297. package/lib/module/app/screens/VisionCamera.js.map +1 -0
  298. package/lib/module/app/screens/index.js +46 -1
  299. package/lib/module/app/screens/index.js.map +1 -1
  300. package/lib/module/app/screens/new.html +171 -0
  301. package/lib/module/app/themes/config.js +299 -30
  302. package/lib/module/app/themes/config.js.map +1 -1
  303. package/lib/module/app/utils/city.json +7265 -0
  304. package/lib/typescript/eslint.config.d.mts +1 -1
  305. package/lib/typescript/src/App.d.ts.map +1 -1
  306. package/lib/typescript/src/app/api/api.d.ts +10 -0
  307. package/lib/typescript/src/app/api/api.d.ts.map +1 -0
  308. package/lib/typescript/src/app/components/AccountSetupSteps.d.ts +3 -0
  309. package/lib/typescript/src/app/components/AccountSetupSteps.d.ts.map +1 -0
  310. package/lib/typescript/src/app/components/AddItemBillParent.d.ts +5 -0
  311. package/lib/typescript/src/app/components/AddItemBillParent.d.ts.map +1 -0
  312. package/lib/typescript/src/app/components/AdditemBillChild.d.ts +6 -0
  313. package/lib/typescript/src/app/components/AdditemBillChild.d.ts.map +1 -0
  314. package/lib/typescript/src/app/components/Balance.d.ts +3 -1
  315. package/lib/typescript/src/app/components/Balance.d.ts.map +1 -1
  316. package/lib/typescript/src/app/components/BillList.d.ts +5 -0
  317. package/lib/typescript/src/app/components/BillList.d.ts.map +1 -0
  318. package/lib/typescript/src/app/components/BillSetupSteps.d.ts +3 -0
  319. package/lib/typescript/src/app/components/BillSetupSteps.d.ts.map +1 -0
  320. package/lib/typescript/src/app/components/BottomView.d.ts +6 -0
  321. package/lib/typescript/src/app/components/BottomView.d.ts.map +1 -0
  322. package/lib/typescript/src/app/components/BusinessCards/Card1.d.ts +14 -0
  323. package/lib/typescript/src/app/components/BusinessCards/Card1.d.ts.map +1 -0
  324. package/lib/typescript/src/app/components/BusinessCards/Card10.d.ts +14 -0
  325. package/lib/typescript/src/app/components/BusinessCards/Card10.d.ts.map +1 -0
  326. package/lib/typescript/src/app/components/BusinessCards/Card2.d.ts +14 -0
  327. package/lib/typescript/src/app/components/BusinessCards/Card2.d.ts.map +1 -0
  328. package/lib/typescript/src/app/components/BusinessCards/Card3.d.ts +14 -0
  329. package/lib/typescript/src/app/components/BusinessCards/Card3.d.ts.map +1 -0
  330. package/lib/typescript/src/app/components/BusinessCards/Card4.d.ts +14 -0
  331. package/lib/typescript/src/app/components/BusinessCards/Card4.d.ts.map +1 -0
  332. package/lib/typescript/src/app/components/BusinessCards/Card5.d.ts +14 -0
  333. package/lib/typescript/src/app/components/BusinessCards/Card5.d.ts.map +1 -0
  334. package/lib/typescript/src/app/components/BusinessCards/Card6.d.ts +14 -0
  335. package/lib/typescript/src/app/components/BusinessCards/Card6.d.ts.map +1 -0
  336. package/lib/typescript/src/app/components/BusinessCards/Card7.d.ts +14 -0
  337. package/lib/typescript/src/app/components/BusinessCards/Card7.d.ts.map +1 -0
  338. package/lib/typescript/src/app/components/BusinessCards/Card8.d.ts +14 -0
  339. package/lib/typescript/src/app/components/BusinessCards/Card8.d.ts.map +1 -0
  340. package/lib/typescript/src/app/components/BusinessCards/Card9.d.ts +14 -0
  341. package/lib/typescript/src/app/components/BusinessCards/Card9.d.ts.map +1 -0
  342. package/lib/typescript/src/app/components/BusinessCards/index.d.ts +11 -0
  343. package/lib/typescript/src/app/components/BusinessCards/index.d.ts.map +1 -0
  344. package/lib/typescript/src/app/components/CashEntryComponent.d.ts +8 -0
  345. package/lib/typescript/src/app/components/CashEntryComponent.d.ts.map +1 -0
  346. package/lib/typescript/src/app/components/CityModal.d.ts +7 -0
  347. package/lib/typescript/src/app/components/CityModal.d.ts.map +1 -0
  348. package/lib/typescript/src/app/components/CountryPhoneInput.d.ts +4 -1
  349. package/lib/typescript/src/app/components/CountryPhoneInput.d.ts.map +1 -1
  350. package/lib/typescript/src/app/components/CreateExpenseAccount.d.ts +9 -0
  351. package/lib/typescript/src/app/components/CreateExpenseAccount.d.ts.map +1 -0
  352. package/lib/typescript/src/app/components/CustomStatusBar.d.ts +3 -0
  353. package/lib/typescript/src/app/components/CustomStatusBar.d.ts.map +1 -0
  354. package/lib/typescript/src/app/components/CustomToast.d.ts +10 -0
  355. package/lib/typescript/src/app/components/CustomToast.d.ts.map +1 -0
  356. package/lib/typescript/src/app/components/DeleteBusinessModal.d.ts +8 -0
  357. package/lib/typescript/src/app/components/DeleteBusinessModal.d.ts.map +1 -0
  358. package/lib/typescript/src/app/components/DiscountTaxModal.d.ts +9 -0
  359. package/lib/typescript/src/app/components/DiscountTaxModal.d.ts.map +1 -0
  360. package/lib/typescript/src/app/components/Entries.d.ts.map +1 -1
  361. package/lib/typescript/src/app/components/ExpenseList.d.ts +6 -0
  362. package/lib/typescript/src/app/components/ExpenseList.d.ts.map +1 -0
  363. package/lib/typescript/src/app/components/ExpenseParent.d.ts +4 -0
  364. package/lib/typescript/src/app/components/ExpenseParent.d.ts.map +1 -0
  365. package/lib/typescript/src/app/components/FloatingInput.d.ts +18 -0
  366. package/lib/typescript/src/app/components/FloatingInput.d.ts.map +1 -0
  367. package/lib/typescript/src/app/components/Header.d.ts +11 -0
  368. package/lib/typescript/src/app/components/Header.d.ts.map +1 -0
  369. package/lib/typescript/src/app/components/Loader.d.ts +5 -0
  370. package/lib/typescript/src/app/components/Loader.d.ts.map +1 -0
  371. package/lib/typescript/src/app/components/PartyModal.d.ts +7 -0
  372. package/lib/typescript/src/app/components/PartyModal.d.ts.map +1 -0
  373. package/lib/typescript/src/app/components/PickerModal.d.ts +8 -0
  374. package/lib/typescript/src/app/components/PickerModal.d.ts.map +1 -0
  375. package/lib/typescript/src/app/components/SalePaymentModal.d.ts +15 -0
  376. package/lib/typescript/src/app/components/SalePaymentModal.d.ts.map +1 -0
  377. package/lib/typescript/src/app/components/SearchBar.d.ts +2 -4
  378. package/lib/typescript/src/app/components/SearchBar.d.ts.map +1 -1
  379. package/lib/typescript/src/app/components/StockDetailChild.d.ts +5 -0
  380. package/lib/typescript/src/app/components/StockDetailChild.d.ts.map +1 -0
  381. package/lib/typescript/src/app/components/StockList.d.ts +6 -0
  382. package/lib/typescript/src/app/components/StockList.d.ts.map +1 -0
  383. package/lib/typescript/src/app/components/StockReportTransaction.d.ts +18 -0
  384. package/lib/typescript/src/app/components/StockReportTransaction.d.ts.map +1 -0
  385. package/lib/typescript/src/app/components/Transaction.d.ts +9 -2
  386. package/lib/typescript/src/app/components/Transaction.d.ts.map +1 -1
  387. package/lib/typescript/src/app/components/User.d.ts +3 -1
  388. package/lib/typescript/src/app/components/User.d.ts.map +1 -1
  389. package/lib/typescript/src/app/components/index.d.ts +26 -7
  390. package/lib/typescript/src/app/components/index.d.ts.map +1 -1
  391. package/lib/typescript/src/app/database/bill.d.ts +7 -0
  392. package/lib/typescript/src/app/database/bill.d.ts.map +1 -0
  393. package/lib/typescript/src/app/database/business.d.ts +9 -0
  394. package/lib/typescript/src/app/database/business.d.ts.map +1 -0
  395. package/lib/typescript/src/app/database/cash.d.ts +14 -0
  396. package/lib/typescript/src/app/database/cash.d.ts.map +1 -0
  397. package/lib/typescript/src/app/database/clients.d.ts +36 -5
  398. package/lib/typescript/src/app/database/clients.d.ts.map +1 -1
  399. package/lib/typescript/src/app/database/expense.d.ts +12 -0
  400. package/lib/typescript/src/app/database/expense.d.ts.map +1 -0
  401. package/lib/typescript/src/app/database/schema.d.ts.map +1 -1
  402. package/lib/typescript/src/app/database/stock.d.ts +16 -0
  403. package/lib/typescript/src/app/database/stock.d.ts.map +1 -0
  404. package/lib/typescript/src/app/htmlTemplates/htmlTemplates.d.ts +29 -0
  405. package/lib/typescript/src/app/htmlTemplates/htmlTemplates.d.ts.map +1 -0
  406. package/lib/typescript/src/app/navigation/BillStack/BillStack.d.ts +2 -0
  407. package/lib/typescript/src/app/navigation/BillStack/BillStack.d.ts.map +1 -0
  408. package/lib/typescript/src/app/navigation/BottomTabs/BottomTabs.d.ts.map +1 -1
  409. package/lib/typescript/src/app/navigation/BusinessStack/BusinessStack.d.ts +2 -0
  410. package/lib/typescript/src/app/navigation/BusinessStack/BusinessStack.d.ts.map +1 -0
  411. package/lib/typescript/src/app/navigation/CashStack/CashStack.d.ts +2 -0
  412. package/lib/typescript/src/app/navigation/CashStack/CashStack.d.ts.map +1 -0
  413. package/lib/typescript/src/app/navigation/EntriesStack/EntriesStack.d.ts +2 -0
  414. package/lib/typescript/src/app/navigation/EntriesStack/EntriesStack.d.ts.map +1 -0
  415. package/lib/typescript/src/app/navigation/ExpenseStack.js/ExpenseStack.d.ts +2 -0
  416. package/lib/typescript/src/app/navigation/ExpenseStack.js/ExpenseStack.d.ts.map +1 -0
  417. package/lib/typescript/src/app/navigation/HomeStack/HomeStack.d.ts.map +1 -1
  418. package/lib/typescript/src/app/navigation/Root.d.ts.map +1 -1
  419. package/lib/typescript/src/app/navigation/SaleStack/SaleStack.d.ts +2 -0
  420. package/lib/typescript/src/app/navigation/SaleStack/SaleStack.d.ts.map +1 -0
  421. package/lib/typescript/src/app/navigation/StockStack/StockStack.d.ts +2 -0
  422. package/lib/typescript/src/app/navigation/StockStack/StockStack.d.ts.map +1 -0
  423. package/lib/typescript/src/app/navigation/index.d.ts +3 -1
  424. package/lib/typescript/src/app/navigation/index.d.ts.map +1 -1
  425. package/lib/typescript/src/app/redux/Store.d.ts.map +1 -1
  426. package/lib/typescript/src/app/redux/reducers/client/client_reducers.d.ts.map +1 -1
  427. package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts +5 -0
  428. package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts.map +1 -1
  429. package/lib/typescript/src/app/redux/reducers/user/user_reducers.d.ts +3 -0
  430. package/lib/typescript/src/app/redux/reducers/user/user_reducers.d.ts.map +1 -0
  431. package/lib/typescript/src/app/redux/reducers/user/user_types.d.ts +4 -0
  432. package/lib/typescript/src/app/redux/reducers/user/user_types.d.ts.map +1 -0
  433. package/lib/typescript/src/app/screens/AddBank.d.ts +5 -0
  434. package/lib/typescript/src/app/screens/AddBank.d.ts.map +1 -0
  435. package/lib/typescript/src/app/screens/AddBusiness.d.ts +4 -0
  436. package/lib/typescript/src/app/screens/AddBusiness.d.ts.map +1 -0
  437. package/lib/typescript/src/app/screens/AddItems.d.ts +5 -0
  438. package/lib/typescript/src/app/screens/AddItems.d.ts.map +1 -0
  439. package/lib/typescript/src/app/screens/AddScreen.d.ts.map +1 -1
  440. package/lib/typescript/src/app/screens/All.d.ts +2 -0
  441. package/lib/typescript/src/app/screens/All.d.ts.map +1 -0
  442. package/lib/typescript/src/app/screens/AllTransactions.d.ts +5 -0
  443. package/lib/typescript/src/app/screens/AllTransactions.d.ts.map +1 -0
  444. package/lib/typescript/src/app/screens/Banks.d.ts.map +1 -1
  445. package/lib/typescript/src/app/screens/BillDetails.d.ts +6 -0
  446. package/lib/typescript/src/app/screens/BillDetails.d.ts.map +1 -0
  447. package/lib/typescript/src/app/screens/BillHome.d.ts +5 -0
  448. package/lib/typescript/src/app/screens/BillHome.d.ts.map +1 -0
  449. package/lib/typescript/src/app/screens/BillParent.d.ts +5 -0
  450. package/lib/typescript/src/app/screens/BillParent.d.ts.map +1 -0
  451. package/lib/typescript/src/app/screens/BusinessDetail.d.ts +4 -0
  452. package/lib/typescript/src/app/screens/BusinessDetail.d.ts.map +1 -0
  453. package/lib/typescript/src/app/screens/CashEntry.d.ts +5 -0
  454. package/lib/typescript/src/app/screens/CashEntry.d.ts.map +1 -0
  455. package/lib/typescript/src/app/screens/CashEntryDetails.d.ts +5 -0
  456. package/lib/typescript/src/app/screens/CashEntryDetails.d.ts.map +1 -0
  457. package/lib/typescript/src/app/screens/CashHome.d.ts +4 -0
  458. package/lib/typescript/src/app/screens/CashHome.d.ts.map +1 -0
  459. package/lib/typescript/src/app/screens/CashReport.d.ts +4 -0
  460. package/lib/typescript/src/app/screens/CashReport.d.ts.map +1 -0
  461. package/lib/typescript/src/app/screens/CashSummary.d.ts +5 -0
  462. package/lib/typescript/src/app/screens/CashSummary.d.ts.map +1 -0
  463. package/lib/typescript/src/app/screens/CreateBill.d.ts +5 -0
  464. package/lib/typescript/src/app/screens/CreateBill.d.ts.map +1 -0
  465. package/lib/typescript/src/app/screens/CustomerEntries.d.ts.map +1 -1
  466. package/lib/typescript/src/app/screens/Customers.d.ts +1 -3
  467. package/lib/typescript/src/app/screens/Customers.d.ts.map +1 -1
  468. package/lib/typescript/src/app/screens/EditCategory.d.ts +4 -0
  469. package/lib/typescript/src/app/screens/EditCategory.d.ts.map +1 -0
  470. package/lib/typescript/src/app/screens/EditCategoryStock.d.ts +4 -0
  471. package/lib/typescript/src/app/screens/EditCategoryStock.d.ts.map +1 -0
  472. package/lib/typescript/src/app/screens/Entry.d.ts.map +1 -1
  473. package/lib/typescript/src/app/screens/ExpenseDetail.d.ts +3 -0
  474. package/lib/typescript/src/app/screens/ExpenseDetail.d.ts.map +1 -0
  475. package/lib/typescript/src/app/screens/ExpenseEntries.d.ts +5 -0
  476. package/lib/typescript/src/app/screens/ExpenseEntries.d.ts.map +1 -0
  477. package/lib/typescript/src/app/screens/ExpenseEntry.d.ts +5 -0
  478. package/lib/typescript/src/app/screens/ExpenseEntry.d.ts.map +1 -0
  479. package/lib/typescript/src/app/screens/ExpenseEntryDetails.d.ts +5 -0
  480. package/lib/typescript/src/app/screens/ExpenseEntryDetails.d.ts.map +1 -0
  481. package/lib/typescript/src/app/screens/ExpenseEntryReport.d.ts +5 -0
  482. package/lib/typescript/src/app/screens/ExpenseEntryReport.d.ts.map +1 -0
  483. package/lib/typescript/src/app/screens/ExpenseReport.d.ts +5 -0
  484. package/lib/typescript/src/app/screens/ExpenseReport.d.ts.map +1 -0
  485. package/lib/typescript/src/app/screens/Geolocation.d.ts +5 -0
  486. package/lib/typescript/src/app/screens/Geolocation.d.ts.map +1 -0
  487. package/lib/typescript/src/app/screens/GetStarted.d.ts +4 -0
  488. package/lib/typescript/src/app/screens/GetStarted.d.ts.map +1 -0
  489. package/lib/typescript/src/app/screens/HomeScreen.d.ts.map +1 -1
  490. package/lib/typescript/src/app/screens/InBuy.d.ts +5 -0
  491. package/lib/typescript/src/app/screens/InBuy.d.ts.map +1 -0
  492. package/lib/typescript/src/app/screens/ItemEntryDetails.d.ts +5 -0
  493. package/lib/typescript/src/app/screens/ItemEntryDetails.d.ts.map +1 -0
  494. package/lib/typescript/src/app/screens/LowStock.d.ts +4 -0
  495. package/lib/typescript/src/app/screens/LowStock.d.ts.map +1 -0
  496. package/lib/typescript/src/app/screens/NewPin.d.ts +5 -0
  497. package/lib/typescript/src/app/screens/NewPin.d.ts.map +1 -0
  498. package/lib/typescript/src/app/screens/OutSell.d.ts +6 -0
  499. package/lib/typescript/src/app/screens/OutSell.d.ts.map +1 -0
  500. package/lib/typescript/src/app/screens/POSSale.d.ts +9 -0
  501. package/lib/typescript/src/app/screens/POSSale.d.ts.map +1 -0
  502. package/lib/typescript/src/app/screens/PinScreen.d.ts +5 -0
  503. package/lib/typescript/src/app/screens/PinScreen.d.ts.map +1 -0
  504. package/lib/typescript/src/app/screens/PreviewBill.d.ts +5 -0
  505. package/lib/typescript/src/app/screens/PreviewBill.d.ts.map +1 -0
  506. package/lib/typescript/src/app/screens/Profile.d.ts +5 -0
  507. package/lib/typescript/src/app/screens/Profile.d.ts.map +1 -0
  508. package/lib/typescript/src/app/screens/RateList.d.ts +5 -0
  509. package/lib/typescript/src/app/screens/RateList.d.ts.map +1 -0
  510. package/lib/typescript/src/app/screens/Report.d.ts +5 -0
  511. package/lib/typescript/src/app/screens/Report.d.ts.map +1 -0
  512. package/lib/typescript/src/app/screens/SaleItemDetail.d.ts +6 -0
  513. package/lib/typescript/src/app/screens/SaleItemDetail.d.ts.map +1 -0
  514. package/lib/typescript/src/app/screens/SaleParent.d.ts +2 -0
  515. package/lib/typescript/src/app/screens/SaleParent.d.ts.map +1 -0
  516. package/lib/typescript/src/app/screens/SelectBank.d.ts +4 -0
  517. package/lib/typescript/src/app/screens/SelectBank.d.ts.map +1 -0
  518. package/lib/typescript/src/app/screens/SelectBusiness.d.ts.map +1 -1
  519. package/lib/typescript/src/app/screens/Splash.d.ts.map +1 -1
  520. package/lib/typescript/src/app/screens/StockChild.d.ts +7 -0
  521. package/lib/typescript/src/app/screens/StockChild.d.ts.map +1 -0
  522. package/lib/typescript/src/app/screens/StockDetail.d.ts +5 -0
  523. package/lib/typescript/src/app/screens/StockDetail.d.ts.map +1 -0
  524. package/lib/typescript/src/app/screens/StockParent.d.ts +2 -0
  525. package/lib/typescript/src/app/screens/StockParent.d.ts.map +1 -0
  526. package/lib/typescript/src/app/screens/StockReport.d.ts +5 -0
  527. package/lib/typescript/src/app/screens/StockReport.d.ts.map +1 -0
  528. package/lib/typescript/src/app/screens/StockValue.d.ts +5 -0
  529. package/lib/typescript/src/app/screens/StockValue.d.ts.map +1 -0
  530. package/lib/typescript/src/app/screens/Suppliers.d.ts +1 -3
  531. package/lib/typescript/src/app/screens/Suppliers.d.ts.map +1 -1
  532. package/lib/typescript/src/app/screens/TransactionDetails.d.ts.map +1 -1
  533. package/lib/typescript/src/app/screens/UpdateBusiness.d.ts +5 -0
  534. package/lib/typescript/src/app/screens/UpdateBusiness.d.ts.map +1 -0
  535. package/lib/typescript/src/app/screens/VisionCamera.d.ts +2 -0
  536. package/lib/typescript/src/app/screens/VisionCamera.d.ts.map +1 -0
  537. package/lib/typescript/src/app/screens/index.d.ts +56 -11
  538. package/lib/typescript/src/app/screens/index.d.ts.map +1 -1
  539. package/lib/typescript/src/app/themes/config.d.ts +60 -8
  540. package/lib/typescript/src/app/themes/config.d.ts.map +1 -1
  541. package/package.json +6 -2
  542. package/src/App.js +30 -34
  543. package/src/app/api/api.js +11 -0
  544. package/src/app/assets/Icons/Bill.png +0 -0
  545. package/src/app/assets/Icons/Bill_Grey.png +0 -0
  546. package/src/app/assets/Icons/Cash.png +0 -0
  547. package/src/app/assets/Icons/Cash_Grey.png +0 -0
  548. package/src/app/assets/Icons/Expense.png +0 -0
  549. package/src/app/assets/Icons/Expense_Grey.png +0 -0
  550. package/src/app/assets/Icons/Staff.png +0 -0
  551. package/src/app/assets/Icons/Stock.png +0 -0
  552. package/src/app/assets/Icons/Stock_Grey.png +0 -0
  553. package/src/app/assets/Icons/abc.png +0 -0
  554. package/src/app/assets/Icons/bank_logo.png +0 -0
  555. package/src/app/assets/Icons/download_sale.png +0 -0
  556. package/src/app/assets/Icons/recycle-bin.png +0 -0
  557. package/src/app/assets/animations/recording.json +1 -0
  558. package/src/app/assets/animations/success.json +1 -0
  559. package/src/app/assets/animations/voice_visualization.json +1 -0
  560. package/src/app/assets/businessCards/card_11.png +0 -0
  561. package/src/app/assets/businessCards/card_12_bg.png +0 -0
  562. package/src/app/assets/businessCards/card_wall_01.jpeg +0 -0
  563. package/src/app/assets/businessCards/card_wall_02.jpeg +0 -0
  564. package/src/app/assets/businessCards/card_wall_03.jpeg +0 -0
  565. package/src/app/assets/businessCards/card_wall_04.jpeg +0 -0
  566. package/src/app/assets/businessCards/card_wall_05.jpeg +0 -0
  567. package/src/app/assets/businessCards/card_wall_06.jpeg +0 -0
  568. package/src/app/assets/businessCards/card_wall_07.jpeg +0 -0
  569. package/src/app/assets/businessCards/card_wall_08.jpeg +0 -0
  570. package/src/app/assets/illustrations/empty.png +0 -0
  571. package/src/app/assets/illustrations/packages.png +0 -0
  572. package/src/app/assets/images/Digikhata_idzarHgH0q_0.png +0 -0
  573. package/src/app/assets/images/bank.png +0 -0
  574. package/src/app/assets/images/digiLogo-main.png +0 -0
  575. package/src/app/assets/images/svgviewer-output.svg +57 -0
  576. package/src/app/assets/images/user.png +0 -0
  577. package/src/app/assets/oldIcons/BILL.svg +3 -0
  578. package/src/app/assets/oldIcons/CASH.svg +4 -0
  579. package/src/app/assets/oldIcons/EXPENSE.svg +6 -0
  580. package/src/app/assets/oldIcons/STAFF.svg +3 -0
  581. package/src/app/assets/oldIcons/Sale Active.svg +14 -0
  582. package/src/app/assets/oldIcons/Stock.svg +5 -0
  583. package/src/app/assets/svg/BILL.svg +4 -0
  584. package/src/app/assets/svg/CASH.svg +6 -0
  585. package/src/app/assets/svg/EXPENSE.svg +5 -0
  586. package/src/app/assets/svg/More Icon.svg +6 -0
  587. package/src/app/assets/svg/Payment Icon.svg +4 -0
  588. package/src/app/assets/svg/Pos.svg +13 -0
  589. package/src/app/assets/svg/STAFF.svg +5 -0
  590. package/src/app/assets/svg/Sale Active.svg +8 -0
  591. package/src/app/assets/svg/Sale Icon.svg +3 -0
  592. package/src/app/assets/svg/Stock.svg +5 -0
  593. package/src/app/components/AccountSetupSteps.js +58 -0
  594. package/src/app/components/AddItemBillParent.js +373 -0
  595. package/src/app/components/AdditemBillChild.js +1257 -0
  596. package/src/app/components/Balance.js +211 -114
  597. package/src/app/components/BillList.js +548 -0
  598. package/src/app/components/BillSetupSteps.js +56 -0
  599. package/src/app/components/BottomView.js +39 -0
  600. package/src/app/components/BusinessCards/Card1.js +160 -0
  601. package/src/app/components/BusinessCards/Card10.js +209 -0
  602. package/src/app/components/BusinessCards/Card2.js +148 -0
  603. package/src/app/components/BusinessCards/Card3.js +147 -0
  604. package/src/app/components/BusinessCards/Card4.js +147 -0
  605. package/src/app/components/BusinessCards/Card5.js +151 -0
  606. package/src/app/components/BusinessCards/Card6.js +157 -0
  607. package/src/app/components/BusinessCards/Card7.js +146 -0
  608. package/src/app/components/BusinessCards/Card8.js +170 -0
  609. package/src/app/components/BusinessCards/Card9.js +209 -0
  610. package/src/app/components/BusinessCards/index.js +10 -0
  611. package/src/app/components/CashEntryComponent.js +297 -0
  612. package/src/app/components/CityModal.js +117 -0
  613. package/src/app/components/CountryPhoneInput.js +373 -267
  614. package/src/app/components/CreateExpenseAccount.js +141 -0
  615. package/src/app/components/CustomStatusBar.js +33 -0
  616. package/src/app/components/CustomToast.js +143 -0
  617. package/src/app/components/DeleteBusinessModal.js +196 -0
  618. package/src/app/components/DiscountTaxModal.js +256 -0
  619. package/src/app/components/Entries.js +87 -67
  620. package/src/app/components/ExpenseList.js +507 -0
  621. package/src/app/components/ExpenseParent.js +446 -0
  622. package/src/app/components/FloatingInput.js +188 -0
  623. package/src/app/components/Header.js +121 -0
  624. package/src/app/components/Loader.js +35 -0
  625. package/src/app/components/PartyModal.js +213 -0
  626. package/src/app/components/PickerModal.js +176 -0
  627. package/src/app/components/SalePaymentModal.js +822 -0
  628. package/src/app/components/SearchBar.js +225 -47
  629. package/src/app/components/StockDetailChild.js +461 -0
  630. package/src/app/components/StockList.js +582 -0
  631. package/src/app/components/StockReportTransaction.js +192 -0
  632. package/src/app/components/Transaction.js +277 -86
  633. package/src/app/components/User.js +188 -80
  634. package/src/app/components/index.js +51 -13
  635. package/src/app/database/bill.js +305 -0
  636. package/src/app/database/business.js +499 -0
  637. package/src/app/database/cash.js +451 -0
  638. package/src/app/database/clients.js +1536 -43
  639. package/src/app/database/expense.js +439 -0
  640. package/src/app/database/schema.js +115 -4
  641. package/src/app/database/stock.js +724 -0
  642. package/src/app/htmlTemplates/htmlTemplates.js +2603 -0
  643. package/src/app/navigation/BillStack/BillStack.js +38 -0
  644. package/src/app/navigation/BottomTabs/BottomTabs.js +24 -19
  645. package/src/app/navigation/BusinessStack/BusinessStack.js +27 -0
  646. package/src/app/navigation/CashStack/CashStack.js +59 -0
  647. package/src/app/navigation/EntriesStack/EntriesStack.js +186 -0
  648. package/src/app/navigation/ExpenseStack.js/ExpenseStack.js +50 -0
  649. package/src/app/navigation/HomeStack/HomeStack.js +106 -39
  650. package/src/app/navigation/Root.js +16 -1
  651. package/src/app/navigation/SaleStack/SaleStack.js +62 -0
  652. package/src/app/navigation/StockStack/StockStack.js +48 -0
  653. package/src/app/navigation/index.js +5 -1
  654. package/src/app/redux/Store.js +2 -0
  655. package/src/app/redux/reducers/client/client_reducers.js +31 -2
  656. package/src/app/redux/reducers/client/client_types.js +8 -1
  657. package/src/app/redux/reducers/user/user_reducers.js +24 -0
  658. package/src/app/redux/reducers/user/user_types.js +3 -0
  659. package/src/app/screens/AddBank.js +353 -0
  660. package/src/app/screens/AddBusiness.js +1161 -0
  661. package/src/app/screens/AddItems.js +515 -0
  662. package/src/app/screens/AddScreen.js +525 -165
  663. package/src/app/screens/All.js +1074 -0
  664. package/src/app/screens/AllTransactions.js +1138 -0
  665. package/src/app/screens/Banks.js +1134 -133
  666. package/src/app/screens/BillDetails.js +989 -0
  667. package/src/app/screens/BillHome.js +97 -0
  668. package/src/app/screens/BillParent.js +419 -0
  669. package/src/app/screens/BusinessDetail.js +939 -0
  670. package/src/app/screens/CashEntry.js +2913 -0
  671. package/src/app/screens/CashEntryDetails.js +650 -0
  672. package/src/app/screens/CashHome.js +594 -0
  673. package/src/app/screens/CashReport.js +1658 -0
  674. package/src/app/screens/CashSummary.js +607 -0
  675. package/src/app/screens/CreateBill.js +2504 -0
  676. package/src/app/screens/CustomerEntries.js +1578 -350
  677. package/src/app/screens/Customers.js +1066 -213
  678. package/src/app/screens/EditCategory.js +316 -0
  679. package/src/app/screens/EditCategoryStock.js +320 -0
  680. package/src/app/screens/Entry.js +2555 -585
  681. package/src/app/screens/ExpenseDetail.js +14 -0
  682. package/src/app/screens/ExpenseEntries.js +837 -0
  683. package/src/app/screens/ExpenseEntry.js +2478 -0
  684. package/src/app/screens/ExpenseEntryDetails.js +612 -0
  685. package/src/app/screens/ExpenseEntryReport.js +1059 -0
  686. package/src/app/screens/ExpenseReport.js +1071 -0
  687. package/src/app/screens/Geolocation.js +435 -0
  688. package/src/app/screens/GetStarted.js +201 -0
  689. package/src/app/screens/HomeScreen.js +368 -132
  690. package/src/app/screens/InBuy.js +918 -0
  691. package/src/app/screens/ItemEntryDetails.js +582 -0
  692. package/src/app/screens/LowStock.js +417 -0
  693. package/src/app/screens/NewPin.js +225 -0
  694. package/src/app/screens/OutSell.js +2153 -0
  695. package/src/app/screens/POSSale.js +639 -0
  696. package/src/app/screens/PinScreen.js +720 -0
  697. package/src/app/screens/PreviewBill.js +302 -0
  698. package/src/app/screens/Profile.js +1594 -0
  699. package/src/app/screens/RateList.js +525 -0
  700. package/src/app/screens/Report.js +1401 -0
  701. package/src/app/screens/SaleItemDetail.js +1187 -0
  702. package/src/app/screens/SaleParent.js +345 -0
  703. package/src/app/screens/SelectBank.js +220 -0
  704. package/src/app/screens/SelectBusiness.js +670 -163
  705. package/src/app/screens/Splash.js +96 -15
  706. package/src/app/screens/StockChild.js +372 -0
  707. package/src/app/screens/StockDetail.js +758 -0
  708. package/src/app/screens/StockParent.js +287 -0
  709. package/src/app/screens/StockReport.js +1359 -0
  710. package/src/app/screens/StockValue.js +720 -0
  711. package/src/app/screens/Suppliers.js +1098 -205
  712. package/src/app/screens/TransactionDetails.js +1674 -180
  713. package/src/app/screens/UpdateBusiness.js +837 -0
  714. package/src/app/screens/VisionCamera.js +54 -0
  715. package/src/app/screens/index.js +111 -21
  716. package/src/app/screens/new.html +171 -0
  717. package/src/app/themes/config.js +431 -114
  718. package/src/app/utils/city.json +7265 -0
@@ -0,0 +1,1359 @@
1
+ import {
2
+ View,
3
+ Text,
4
+ StyleSheet,
5
+ TouchableOpacity,
6
+ FlatList,
7
+ Image,
8
+ SafeAreaView,
9
+ Dimensions,
10
+ PermissionsAndroid,
11
+ Platform,
12
+ Keyboard,
13
+ } from 'react-native';
14
+ import React, {
15
+ useState,
16
+ useEffect,
17
+ useRef,
18
+ useCallback,
19
+ useMemo,
20
+ } from 'react';
21
+ import LinearGradient from 'react-native-linear-gradient';
22
+ import Ionicons from 'react-native-vector-icons/Ionicons';
23
+ import {
24
+ addCommas,
25
+ COLORS,
26
+ FONT_BOLD,
27
+ FONT_MEDIUM,
28
+ FONT_NORMAL,
29
+ formatDateTime,
30
+ formatDateTimeShort,
31
+ formatMyDate,
32
+ formatShortDate,
33
+ fromJsDateToSql,
34
+ HP,
35
+ ICON_SIZES,
36
+ mergeDateTime,
37
+ TEXT_SIZES,
38
+ WP,
39
+ } from '../themes/config';
40
+ import { useSelector, useDispatch } from 'react-redux';
41
+ import {
42
+ getClientDetails,
43
+ getClientTransactions,
44
+ getTransactionsByClientType,
45
+ insertPhoneNum,
46
+ setPayDate,
47
+ } from '../database/clients';
48
+ import {
49
+ BottomView,
50
+ CountryPhoneInput,
51
+ SearchBar,
52
+ StockReportTransaction,
53
+ Transaction,
54
+ } from '../components';
55
+ import Modal from 'react-native-modal';
56
+ import {
57
+ ALL_TRANSACTIONS,
58
+ CLIENT_DETAILS,
59
+ } from '../redux/reducers/client/client_types';
60
+ import DateTimePicker, {
61
+ DateTimePickerAndroid,
62
+ } from '@react-native-community/datetimepicker';
63
+ import ViewShot from 'react-native-view-shot';
64
+ import Share from 'react-native-share';
65
+ import { generatePDF } from 'react-native-html-to-pdf';
66
+ import { viewDocument } from '@react-native-documents/viewer';
67
+ import {
68
+ allTransactionsBanksTemplate,
69
+ allTransactionsTemplate,
70
+ itemDetailsTemplate,
71
+ } from '../htmlTemplates/htmlTemplates';
72
+ import RNPrint from 'react-native-print';
73
+ import {
74
+ getItemDetailsByItemId,
75
+ getItemsByBusiness,
76
+ getStockEntries,
77
+ } from '../database/stock';
78
+
79
+ let deviceH = Dimensions.get('screen').height;
80
+ let windowH = Dimensions.get('window').height;
81
+
82
+ let bottomNavBarH = deviceH - windowH;
83
+
84
+ export default function StockReport({ navigation, route }) {
85
+ const dispatch = useDispatch();
86
+ let type = route?.params?.type;
87
+ let lowStock = route?.params?.lowStock;
88
+ let itemId = route?.params?.itemId;
89
+
90
+ const [StartDate, setStartDate] = useState('');
91
+ const [EndDate, setEndDate] = useState('');
92
+ const [searchTerm, setSearchTerm] = useState('');
93
+ const [IsFilterModal, setIsFilterModal] = useState(false);
94
+ const [SelectedFilter, setSelectedFilter] = useState('All');
95
+ const [IsReverse, setIsReverse] = useState(false);
96
+ const [selected, setSelected] = useState('ALL'); // Default selected
97
+
98
+ const Transactions = useSelector((state) => state.client.all_transactions);
99
+ const selectBusiness = useSelector((state) => state.client.selected_business);
100
+ const [AllTransactions, setAllTransactions] = useState(Transactions);
101
+ const [Entries, setEntries] = useState([]);
102
+ const [allItems, setAllItems] = useState([]);
103
+ const [searchQuery, setSearchQuery] = useState('');
104
+ const [filteredEntries, setFilteredEntries] = useState(Entries || []);
105
+ const [ItemDetails, setItemDetails] = useState(null);
106
+ const [Title, setTitle] = useState('');
107
+ // const homeDetails = route?.params?.homeDetails;
108
+ // let amount = homeDetails?.total_subamount - homeDetails?.total_amount;
109
+
110
+ const showStartDate = () => {
111
+ DateTimePickerAndroid.open({
112
+ value: StartDate || new Date(),
113
+ onChange: onChangeStartDate,
114
+ mode: 'date',
115
+ is24Hour: false,
116
+ // Start date can't be after EndDate (if chosen)
117
+ maximumDate: EndDate || new Date(),
118
+ });
119
+ };
120
+
121
+ const onChangeStartDate = async (event, selectedDate) => {
122
+ const currentDate = selectedDate;
123
+ if (event?.type == 'set') {
124
+ setStartDate(currentDate);
125
+ }
126
+ };
127
+
128
+ const showEndDate = () => {
129
+ DateTimePickerAndroid.open({
130
+ value: EndDate || new Date(),
131
+ onChange: onChangeEndDate,
132
+ mode: 'date',
133
+ is24Hour: false,
134
+ ...(StartDate ? { minimumDate: StartDate } : {}),
135
+ maximumDate: new Date(),
136
+ });
137
+ };
138
+
139
+ const onChangeEndDate = async (event, selectedDate) => {
140
+ const currentDate = selectedDate;
141
+ if (event?.type == 'set') {
142
+ setEndDate(currentDate);
143
+ }
144
+ };
145
+
146
+ const handleSelect = (type) => {
147
+ setSelected(type);
148
+ setStartDate('')
149
+ setEndDate('')
150
+ getEntries(type == 'ALL' ? null : type, null, null);
151
+ };
152
+
153
+ useEffect(() => {
154
+ const unsubscribe = navigation.addListener('focus', () => {
155
+ handleSelect(type ? type : 'ALL');
156
+ getEntries(type, null, null);
157
+ getItemDetails();
158
+ });
159
+
160
+ return () => unsubscribe();
161
+ }, [navigation]);
162
+
163
+ const getEntries = (Type, startDate, endDate) => {
164
+ // console.log({ Type })
165
+ getStockEntries(
166
+ selectBusiness?.id,
167
+ Type,
168
+ startDate,
169
+ endDate,
170
+ lowStock,
171
+ itemId
172
+ )
173
+ .then((res) => {
174
+ setEntries(res);
175
+ })
176
+ .catch((err) => {
177
+ console.error('Failed to fetch Stock Report:', err);
178
+ });
179
+ };
180
+
181
+ useEffect(() => {
182
+ const fetchItems = async () => {
183
+ const result = await getItemsByBusiness(selectBusiness?.id);
184
+ setAllItems(result || []);
185
+ };
186
+ fetchItems();
187
+ }, [selectBusiness?.id]);
188
+
189
+ let totalQuantity = filteredEntries.reduce((total, item) => {
190
+ const stockIN = Number(item?.stockIN) || 0;
191
+ const stockOUT = Number(item?.stockOUT) || 0;
192
+ return total + (stockIN - stockOUT);
193
+ }, 0);
194
+
195
+ let totalAmount = filteredEntries.reduce((total, item) => {
196
+ const stockIN = Number(item?.stockIN) || 0;
197
+ const stockOUT = Number(item?.stockOUT) || 0;
198
+ const amount = Number(item?.amount) || 0;
199
+
200
+ if (stockIN > 0) {
201
+ return total + amount;
202
+ } else if (stockOUT > 0) {
203
+ return total - amount;
204
+ } else {
205
+ return total;
206
+ }
207
+ }, 0);
208
+
209
+ const showSingleDayDate = () => {
210
+ DateTimePickerAndroid.open({
211
+ value: StartDate || new Date(),
212
+ onChange: onChangeSingleDayDate,
213
+ mode: 'date',
214
+ is24Hour: false,
215
+ maximumDate: new Date(),
216
+ });
217
+ };
218
+
219
+ const onChangeSingleDayDate = async (event, selectedDate) => {
220
+ const currentDate = selectedDate;
221
+ if (event?.type == 'set') {
222
+ setSelectedFilter('Single Day');
223
+ setStartDate(currentDate);
224
+ setEndDate(currentDate);
225
+ }
226
+ };
227
+
228
+ const onDateRangePress = () => {
229
+ DateTimePickerAndroid.open({
230
+ value: StartDate || new Date(),
231
+ onChange: (event, selectedStartDate) => {
232
+ if (event.type === 'set' && selectedStartDate) {
233
+ // Save start date
234
+ setStartDate(selectedStartDate);
235
+
236
+ // Open end date picker after a slight delay
237
+ setTimeout(() => {
238
+ DateTimePickerAndroid.open({
239
+ value: EndDate || selectedStartDate,
240
+ onChange: (event2, selectedEndDate) => {
241
+ if (event2.type === 'set' && selectedEndDate) {
242
+ // Validate: end date cannot be before start date
243
+ if (selectedEndDate < selectedStartDate) {
244
+ alert('End date cannot be before Start date');
245
+ return;
246
+ }
247
+ // Save end date
248
+ setEndDate(selectedEndDate);
249
+ }
250
+ },
251
+ mode: 'date',
252
+ is24Hour: false,
253
+ maximumDate: new Date(),
254
+ // ✅ Only include minimumDate if selectedStartDate exists
255
+ ...(selectedStartDate ? { minimumDate: selectedStartDate } : {}),
256
+ });
257
+ }, 300);
258
+ }
259
+ },
260
+ mode: 'date',
261
+ is24Hour: false,
262
+ maximumDate: new Date(),
263
+ });
264
+ };
265
+
266
+ useEffect(() => {
267
+ getEntries(
268
+ type == 'ALL' ? null : type,
269
+ StartDate ? fromJsDateToSql(StartDate) : '',
270
+ EndDate ? fromJsDateToSql(EndDate) : ''
271
+ );
272
+ }, [StartDate, EndDate]);
273
+
274
+ useEffect(() => {
275
+ if (!searchQuery.trim()) {
276
+ setFilteredEntries(Entries);
277
+ } else {
278
+ const lower = searchQuery.toLowerCase();
279
+
280
+ const filteredList = Entries.filter((item) => {
281
+ const detailsText = item?.details || '';
282
+ const [mainDetails, billInfo] = detailsText.split('_bill_');
283
+ const relatedItem = allItems.find((i) => i?.id === item?.itemId);
284
+
285
+ return (
286
+ relatedItem?.name?.toLowerCase().includes(lower) ||
287
+ mainDetails?.toLowerCase().includes(lower) ||
288
+ billInfo?.toLowerCase().includes(lower)
289
+ );
290
+ });
291
+
292
+ setFilteredEntries(filteredList);
293
+ }
294
+ }, [searchQuery, Entries]);
295
+
296
+ const getItemDetails = async () => {
297
+ let all = await getItemsByBusiness(selectBusiness?.id);
298
+ let filtered = all.find((item) => item?.id == itemId);
299
+ setItemDetails(filtered);
300
+ if (filtered) {
301
+ setTitle(`Report of ${filtered?.name}`);
302
+ } else {
303
+ setTitle('Stock Report');
304
+ }
305
+ };
306
+
307
+ const toggleReverse = () => {
308
+ setIsReverse(!IsReverse);
309
+ };
310
+
311
+ const createPDF = async (isPrint) => {
312
+ try {
313
+ let updatedTransactions = filteredEntries?.map((item) => {
314
+ const filtered = allItems.find((i) => i?.id == item?.itemId);
315
+ return {
316
+ ...item,
317
+ itemName: filtered?.name
318
+ }
319
+ })
320
+
321
+ // 1️⃣ Generate HTML content
322
+ const html = itemDetailsTemplate(updatedTransactions, totalAmount, updatedTransactions?.length);
323
+
324
+ // 2️⃣ PDF generation options
325
+ const options = {
326
+ html,
327
+ fileName: 'items_details_report',
328
+ base64: false,
329
+ };
330
+
331
+ // 3️⃣ Generate PDF
332
+ const results = await generatePDF(options);
333
+ console.log('✅ PDF Path:', results?.filePath);
334
+
335
+ // 4️⃣ Ensure valid URI
336
+ if (!results?.filePath) {
337
+ throw new Error('No PDF file path returned');
338
+ }
339
+
340
+ const uri = results.filePath.startsWith('file://')
341
+ ? results.filePath
342
+ : `file://${results.filePath}`;
343
+
344
+
345
+ if (isPrint) {
346
+ await RNPrint.print({ filePath: results.filePath });
347
+ } else {
348
+ await viewDocument({ uri });
349
+ }
350
+
351
+ } catch (err) {
352
+ console.error('❌ PDF generation failed:', err);
353
+ }
354
+ };
355
+
356
+ return (
357
+ <>
358
+ <SafeAreaView style={Styles._mainContainer}>
359
+ <LinearGradient
360
+ style={Styles._headerMain}
361
+ start={{ x: 0, y: 0 }}
362
+ end={{ x: 1, y: 0 }}
363
+ colors={[COLORS.primaryColor, COLORS.secondaryColor]}
364
+ >
365
+ <TouchableOpacity
366
+ activeOpacity={0.8}
367
+ onPress={() => navigation?.goBack()}
368
+ >
369
+ <Ionicons
370
+ name={'chevron-back'}
371
+ color={COLORS.whiteColor}
372
+ size={25}
373
+ />
374
+ </TouchableOpacity>
375
+
376
+ <Text style={Styles._headerTitle}>{Title}</Text>
377
+ </LinearGradient>
378
+
379
+ <LinearGradient
380
+ style={[Styles._headerMain, { height: 30 }]}
381
+ start={{ x: 0, y: 0 }}
382
+ end={{ x: 1, y: 0 }}
383
+ colors={[COLORS.primaryColor, COLORS.secondaryColor]}
384
+ />
385
+
386
+ <View style={Styles._searchMain}>
387
+ <SearchBar
388
+ containerStyle={{
389
+ height: '90%',
390
+ width: '100%',
391
+ // borderRadius: 0,
392
+ // borderTopWidth: 0,
393
+ // borderBottomWidth: 0,
394
+ // borderLeftWidth: 0,
395
+ // borderRightWidth: 0,
396
+ // borderWidth:0
397
+ }}
398
+ onChangeText={(text) => setSearchQuery(text)}
399
+ filterLabel={SelectedFilter} // 👈 will appear inside input
400
+ onFilterPress={() => {
401
+ Keyboard.dismiss(); // 👈 first dismiss keyboard
402
+ setIsFilterModal(true); // 👈 then open filter modal
403
+ }}
404
+ />
405
+
406
+ {/* <TouchableOpacity
407
+ activeOpacity={0.8}
408
+ onPress={() => {
409
+ Keyboard.dismiss(); // ✅ close keyboard first
410
+ setIsFilterModal(true); // then open modal
411
+ }}
412
+ style={{
413
+ flexDirection: 'row',
414
+ justifyContent: 'flex-end',
415
+ alignItems: 'center',
416
+ width: '35%',
417
+ paddingRight: 15,
418
+ gap: 5,
419
+ }}
420
+ >
421
+ <Text
422
+ style={{
423
+ color: COLORS.primaryColor,
424
+ fontFamily: FONT_MEDIUM,
425
+ fontSize: 12,
426
+ }}
427
+ >
428
+ {SelectedFilter}
429
+ </Text>
430
+ <Ionicons
431
+ name={'chevron-down'}
432
+ color={COLORS.primaryColor}
433
+ size={18}
434
+ />
435
+ </TouchableOpacity> */}
436
+ </View>
437
+
438
+ <View
439
+ style={[
440
+ Styles._searchMain,
441
+ { position: 'relative', top: 25, alignItems: 'center' },
442
+ ]}
443
+ >
444
+ <TouchableOpacity
445
+ activeOpacity={0.8}
446
+ style={{
447
+ flexDirection: 'row',
448
+ width: '50%',
449
+ height: '80%',
450
+ justifyContent: 'center',
451
+ alignItems: 'center',
452
+ gap: 8,
453
+ borderRightColor: COLORS.gray,
454
+ borderRightWidth: 1,
455
+ }}
456
+ onPress={showStartDate}
457
+ >
458
+ <Ionicons
459
+ name={'calendar-outline'}
460
+ color={COLORS.primaryColor}
461
+ size={22}
462
+ />
463
+
464
+ {StartDate ? (
465
+ <View
466
+ style={{ flexDirection: 'row', alignItems: 'center', gap: 7 }}
467
+ >
468
+ <Text
469
+ style={{
470
+ color: COLORS.primaryColor,
471
+ fontFamily: FONT_NORMAL,
472
+ fontSize: 12,
473
+ }}
474
+ >
475
+ {formatShortDate(StartDate)}
476
+ </Text>
477
+ <TouchableOpacity
478
+ activeOpacity={0.8}
479
+ style={{
480
+ backgroundColor: 'red',
481
+ justifyContent: 'center',
482
+ alignItems: 'center',
483
+ width: 15,
484
+ height: 15,
485
+ borderRadius: 50,
486
+ }}
487
+ onPress={() => {
488
+ setStartDate('');
489
+ setSelectedFilter('All');
490
+ }}
491
+ >
492
+ <Ionicons name={'close'} color={'white'} size={12} />
493
+ </TouchableOpacity>
494
+ </View>
495
+ ) : (
496
+ <Text
497
+ style={{
498
+ color: COLORS.primaryColor,
499
+ fontFamily: FONT_NORMAL,
500
+ fontSize: 12,
501
+ }}
502
+ >
503
+ Start Date
504
+ </Text>
505
+ )}
506
+ </TouchableOpacity>
507
+
508
+ <TouchableOpacity
509
+ activeOpacity={0.8}
510
+ style={{
511
+ flexDirection: 'row',
512
+ width: '50%',
513
+ height: '80%',
514
+ justifyContent: 'center',
515
+ alignItems: 'center',
516
+ gap: 8,
517
+ }}
518
+ onPress={showEndDate}
519
+ >
520
+ <Ionicons
521
+ name={'calendar-outline'}
522
+ color={COLORS.primaryColor}
523
+ size={22}
524
+ />
525
+
526
+ {EndDate ? (
527
+ <View
528
+ style={{ flexDirection: 'row', alignItems: 'center', gap: 7 }}
529
+ >
530
+ <Text
531
+ style={{
532
+ color: COLORS.primaryColor,
533
+ fontFamily: FONT_NORMAL,
534
+ fontSize: 12,
535
+ }}
536
+ >
537
+ {formatShortDate(EndDate)}
538
+ </Text>
539
+ <TouchableOpacity
540
+ activeOpacity={0.8}
541
+ style={{
542
+ backgroundColor: 'red',
543
+ justifyContent: 'center',
544
+ alignItems: 'center',
545
+ width: 15,
546
+ height: 15,
547
+ borderRadius: 50,
548
+ }}
549
+ onPress={() => {
550
+ setEndDate('');
551
+ setSelectedFilter('All');
552
+ }}
553
+ >
554
+ <Ionicons name={'close'} color={'white'} size={12} />
555
+ </TouchableOpacity>
556
+ </View>
557
+ ) : (
558
+ <Text
559
+ style={{
560
+ color: COLORS.primaryColor,
561
+ fontFamily: FONT_NORMAL,
562
+ fontSize: 12,
563
+ }}
564
+ >
565
+ End Date
566
+ </Text>
567
+ )}
568
+ </TouchableOpacity>
569
+ </View>
570
+
571
+ <View style={Styles.dateFilterContainerParent}>
572
+ <TouchableOpacity
573
+ style={[
574
+ Styles.dateFilterContainer,
575
+ selected === 'ALL' && { backgroundColor: '#ffe5e5' }, // light red background
576
+ ]}
577
+ onPress={() => handleSelect('ALL')}
578
+ >
579
+ <View activeOpacity={0.8} style={Styles.dateBtn}>
580
+ <Text
581
+ style={[Styles.dateBtnText, { color: COLORS.primaryColor }]}
582
+ >
583
+ ALL
584
+ </Text>
585
+ </View>
586
+ </TouchableOpacity>
587
+
588
+ <TouchableOpacity
589
+ style={[
590
+ Styles.dateFilterContainer,
591
+ selected === 'IN' && { backgroundColor: '#ffe5e5' }, // light red background
592
+ ]}
593
+ onPress={() => handleSelect('IN')}
594
+ >
595
+ <View activeOpacity={0.8} style={Styles.dateBtn}>
596
+ <Text
597
+ style={[Styles.dateBtnText, { color: COLORS.primaryColor }]}
598
+ >
599
+ IN
600
+ </Text>
601
+ </View>
602
+ </TouchableOpacity>
603
+
604
+ <TouchableOpacity
605
+ style={[
606
+ Styles.dateFilterContainer,
607
+ selected === 'OUT' && { backgroundColor: '#ffe5e5' }, // light red background
608
+ ]}
609
+ onPress={() => handleSelect('OUT')}
610
+ >
611
+ <View activeOpacity={0.8} style={Styles.dateBtn}>
612
+ <Text
613
+ style={[Styles.dateBtnText, { color: COLORS.primaryColor }]}
614
+ >
615
+ OUT
616
+ </Text>
617
+ </View>
618
+ </TouchableOpacity>
619
+ </View>
620
+
621
+ <View style={Styles._tableHeader}>
622
+ <TouchableOpacity
623
+ activeOpacity={0.8}
624
+ // onPress={toggleReverse}
625
+ style={[
626
+ Styles._headerCell,
627
+ {
628
+ width: '40%',
629
+ flexDirection: 'row',
630
+ justifyContent: 'flex-start',
631
+ alignItems: 'center',
632
+ gap: 10,
633
+ },
634
+ ]}
635
+ >
636
+ {/* <Ionicons
637
+ name={IsReverse ? 'arrow-down' : 'arrow-up'}
638
+ color={COLORS.primaryColor}
639
+ size={24}
640
+ /> */}
641
+
642
+ <TouchableOpacity
643
+ style={{ gap: 3, flexDirection: "row", alignItems: "center" }}
644
+ activeOpacity={0.8}
645
+ onPress={toggleReverse}
646
+ >
647
+ <Ionicons
648
+ color={COLORS.primaryColor}
649
+ name={IsReverse ? "arrow-down" : "arrow-up"}
650
+ size={20}
651
+ />
652
+
653
+ <Text style={Styles._headerCellText}>Entries</Text>
654
+ <Text style={[Styles._headerCellText, { fontFamily: FONT_BOLD, fontSize: 11 }]}> {filteredEntries?.length}</Text>
655
+ </TouchableOpacity>
656
+ </TouchableOpacity>
657
+
658
+ <View style={[Styles._headerCell, { alignItems: 'flex-end', }]}>
659
+ {/* <Text style={Styles._headerCellText}>{ClientDetails.type == 0 ? "You Gave" : ClientDetails?.type == 1 ? "Payment" : "In"}</Text> */}
660
+ <Text style={Styles._headerCellText}>Qty</Text>
661
+
662
+ <Text
663
+ style={[
664
+ Styles._tableCal,
665
+ {
666
+ color:
667
+ totalQuantity > 0
668
+ ? COLORS.greenColor
669
+ : totalQuantity < 0
670
+ ? COLORS.redColor
671
+ : 'gray',
672
+ },
673
+ ]}
674
+ >
675
+ {addCommas(Math.abs(Number(totalQuantity)))}
676
+ </Text>
677
+ </View>
678
+
679
+ <View style={[Styles._headerCell, { alignItems: 'flex-end', }]}>
680
+ {/* <Text style={Styles._headerCellText}>{ClientDetails.type == 0 ? "You Got" : ClientDetails?.type == 1 ? "Purchase" : "Out"}</Text> */}
681
+ <Text style={[Styles._headerCellText,]}>Rate</Text>
682
+
683
+ <Text style={[Styles._tableCal, { color: 'green' }]}></Text>
684
+ </View>
685
+ <View style={[Styles._headerCell, { alignItems: 'flex-end', paddingRight: 15 }]}>
686
+ {/* <Text style={Styles._headerCellText}>{ClientDetails.type == 0 ? "You Got" : ClientDetails?.type == 1 ? "Purchase" : "Out"}</Text> */}
687
+ <Text style={Styles._headerCellText}>Amount</Text>
688
+
689
+ <Text
690
+ style={[
691
+ Styles._tableCal,
692
+ {
693
+ color:
694
+ totalAmount > 0
695
+ ? COLORS.greenColor
696
+ : totalAmount < 0
697
+ ? COLORS.redColor
698
+ : 'gray',
699
+ },
700
+ ]}
701
+ >
702
+ Rs {addCommas(Math.abs(Number(totalAmount)))}
703
+ </Text>
704
+ </View>
705
+ </View>
706
+
707
+ <FlatList
708
+ data={IsReverse ? [...filteredEntries].reverse() : filteredEntries}
709
+ contentContainerStyle={{ paddingBottom: 200 }}
710
+ renderItem={({ item }) => {
711
+ const color =
712
+ Number(item?.stockIN) > 0
713
+ ? COLORS.greenColor
714
+ : Number(item?.stockOUT) > 0
715
+ ? COLORS.redColor
716
+ : COLORS.gray;
717
+
718
+ const filtered = allItems.find((i) => i?.id === item?.itemId);
719
+ const detailsText = item?.details || '';
720
+ const [mainDetails, billInfo] = detailsText.split('_bill_');
721
+
722
+ return (
723
+ <TouchableOpacity
724
+ activeOpacity={0.8}
725
+ style={[Styles._tableHeader, { marginTop: 2 }]}
726
+ onPress={() =>
727
+ navigation?.navigate('ItemEntryDetails', {
728
+ itemDetailId: item?.id,
729
+ itemId: item?.itemId,
730
+ })
731
+ }
732
+ >
733
+ <View
734
+ activeOpacity={0.8}
735
+ style={[
736
+ Styles._headerCell,
737
+ {
738
+ width: '40%',
739
+ flexDirection: 'row',
740
+ justifyContent: 'flex-start',
741
+ alignItems: 'center',
742
+ gap: 10,
743
+ },
744
+ ]}
745
+ >
746
+ <View style={{ gap: 3 }}>
747
+ <Text
748
+ style={{
749
+ color: COLORS.blackColor,
750
+ fontFamily: FONT_MEDIUM,
751
+ fontSize: 12,
752
+ }}
753
+ >
754
+ {filtered?.name}
755
+ </Text>
756
+
757
+ <Text
758
+ style={{
759
+ color: COLORS.gray,
760
+ fontFamily: FONT_NORMAL,
761
+ fontSize: 10,
762
+ }}
763
+ >
764
+ {formatDateTime(item?.entryDate)}
765
+ </Text>
766
+
767
+ {billInfo ? (
768
+ <Text
769
+ style={{
770
+ color: COLORS.gray,
771
+ fontFamily: FONT_NORMAL,
772
+ fontSize: 10,
773
+ }}
774
+ >
775
+ Bill No. {billInfo}
776
+ </Text>
777
+ ) : null}
778
+
779
+ {mainDetails ? (
780
+ <Text
781
+ style={{
782
+ color: COLORS.blackColor,
783
+ fontFamily: FONT_MEDIUM,
784
+ fontSize: 12,
785
+ }}
786
+ >
787
+ {mainDetails}
788
+ </Text>
789
+ ) : null}
790
+ </View>
791
+ </View>
792
+
793
+ <View
794
+ style={[
795
+ Styles._headerCell,
796
+ {
797
+ alignItems: 'flex-end',
798
+ backgroundColor:
799
+ color == COLORS.greenColor
800
+ ? 'rgba(0, 255, 0, 0.1)'
801
+ : 'rgba(255, 0, 0, 0.05)',
802
+ },
803
+ ]}
804
+ >
805
+ <Text
806
+ style={{
807
+ color: color,
808
+ fontFamily: FONT_MEDIUM,
809
+ fontSize: 12,
810
+ }}
811
+ >
812
+ {Number(item?.stockIN)
813
+ ? Number(item?.stockIN)
814
+ : Number(item?.stockOUT)}
815
+ </Text>
816
+ </View>
817
+
818
+ <View
819
+ style={[
820
+ Styles._headerCell,
821
+ {
822
+ alignItems: 'flex-end',
823
+ backgroundColor:
824
+ color == COLORS.greenColor
825
+ ? 'rgba(0, 255, 0, 0.1)'
826
+ : 'rgba(255, 0, 0, 0.05)',
827
+ },
828
+ ]}
829
+ >
830
+ <Text
831
+ style={{
832
+ color: color,
833
+ fontFamily: FONT_MEDIUM,
834
+ fontSize: 12,
835
+ }}
836
+ >
837
+ {addCommas(Number(item?.subamount))}
838
+ </Text>
839
+ </View>
840
+
841
+ <View
842
+ style={[
843
+ Styles._headerCell,
844
+ {
845
+ alignItems: 'flex-end',
846
+ backgroundColor:
847
+ color == COLORS.greenColor
848
+ ? 'rgba(0, 255, 0, 0.1)'
849
+ : 'rgba(255, 0, 0, 0.05)',
850
+ paddingRight: 15,
851
+ },
852
+ ]}
853
+ >
854
+ <Text
855
+ style={{
856
+ color: color,
857
+ fontFamily: FONT_MEDIUM,
858
+ fontSize: 12,
859
+ }}
860
+ >
861
+ {addCommas(Number(item?.amount))}
862
+ </Text>
863
+ </View>
864
+ </TouchableOpacity>
865
+ );
866
+ }}
867
+ />
868
+
869
+ <BottomView style={Styles._btnsMain}>
870
+ <TouchableOpacity style={Styles._btn} onPress={() => createPDF()}>
871
+ <Ionicons
872
+ name={'document-outline'}
873
+ color={'red'}
874
+ size={ICON_SIZES.ACTION}
875
+ />
876
+ <Text
877
+ style={{
878
+ color: 'red',
879
+ fontFamily: FONT_MEDIUM,
880
+ fontSize: TEXT_SIZES.BUTTON_TEXT,
881
+ }}
882
+ >
883
+ PDF
884
+ </Text>
885
+ </TouchableOpacity>
886
+
887
+ <TouchableOpacity
888
+ activeOpacity={0.8}
889
+ style={Styles._printButton}
890
+ onPress={() => createPDF(true)}
891
+ >
892
+ <Ionicons
893
+ name={'print-outline'}
894
+ color={COLORS.blackColor}
895
+ size={ICON_SIZES.ACTION}
896
+ />
897
+ </TouchableOpacity>
898
+ </BottomView>
899
+ </SafeAreaView>
900
+
901
+ <Modal
902
+ isVisible={IsFilterModal}
903
+ style={Styles._modal}
904
+ onBackButtonPress={() => setIsFilterModal(false)}
905
+ onBackdropPress={() => setIsFilterModal(false)}
906
+ >
907
+ <View style={Styles._modalMain}>
908
+ <Text style={Styles._modalTitle}>Select Report Duration</Text>
909
+
910
+ <View style={Styles._optionsMain}>
911
+ {/* All */}
912
+ <TouchableOpacity
913
+ style={Styles._option}
914
+ activeOpacity={0.8}
915
+ onPress={() => {
916
+ setSelectedFilter('All');
917
+ setIsFilterModal(false);
918
+ setStartDate('');
919
+ setEndDate('');
920
+ }}
921
+ >
922
+ <Text
923
+ style={[
924
+ Styles._optionTitle,
925
+ {
926
+ color:
927
+ SelectedFilter === 'All'
928
+ ? COLORS.primaryColor
929
+ : COLORS.blackColor,
930
+ },
931
+ ]}
932
+ >
933
+ All
934
+ </Text>
935
+ <Ionicons
936
+ name={
937
+ SelectedFilter === 'All'
938
+ ? 'radio-button-on'
939
+ : 'radio-button-off'
940
+ }
941
+ color={
942
+ SelectedFilter === 'All'
943
+ ? COLORS.primaryColor
944
+ : COLORS.darkGrey
945
+ }
946
+ size={25}
947
+ />
948
+ </TouchableOpacity>
949
+
950
+ {/* This Month */}
951
+ <TouchableOpacity
952
+ style={Styles._option}
953
+ activeOpacity={0.8}
954
+ onPress={() => {
955
+ setSelectedFilter('This Month');
956
+ setIsFilterModal(false);
957
+ let now = new Date();
958
+
959
+ let start = new Date(now.getFullYear(), now.getMonth(), 1);
960
+
961
+ let end = new Date(now.getFullYear(), now.getMonth() + 1);
962
+
963
+ setStartDate(start);
964
+ setEndDate(end);
965
+ }}
966
+ >
967
+ <Text
968
+ style={[
969
+ Styles._optionTitle,
970
+ {
971
+ color:
972
+ SelectedFilter === 'This Month'
973
+ ? COLORS.primaryColor
974
+ : COLORS.blackColor,
975
+ },
976
+ ]}
977
+ >
978
+ This Month
979
+ </Text>
980
+ <Ionicons
981
+ name={
982
+ SelectedFilter === 'This Month'
983
+ ? 'radio-button-on'
984
+ : 'radio-button-off'
985
+ }
986
+ color={
987
+ SelectedFilter === 'This Month'
988
+ ? COLORS.primaryColor
989
+ : COLORS.darkGrey
990
+ }
991
+ size={25}
992
+ />
993
+ </TouchableOpacity>
994
+
995
+ {/* Single Day */}
996
+ <TouchableOpacity
997
+ style={Styles._option}
998
+ activeOpacity={0.8}
999
+ onPress={() => {
1000
+ setIsFilterModal(false);
1001
+ showSingleDayDate();
1002
+ }}
1003
+ >
1004
+ <Text
1005
+ style={[
1006
+ Styles._optionTitle,
1007
+ {
1008
+ color:
1009
+ SelectedFilter === 'Single Day'
1010
+ ? COLORS.primaryColor
1011
+ : COLORS.blackColor,
1012
+ },
1013
+ ]}
1014
+ >
1015
+ Single Day
1016
+ </Text>
1017
+ <Ionicons
1018
+ name={
1019
+ SelectedFilter === 'Single Day'
1020
+ ? 'radio-button-on'
1021
+ : 'radio-button-off'
1022
+ }
1023
+ color={
1024
+ SelectedFilter === 'Single Day'
1025
+ ? COLORS.primaryColor
1026
+ : COLORS.darkGrey
1027
+ }
1028
+ size={25}
1029
+ />
1030
+ </TouchableOpacity>
1031
+
1032
+ {/* Last Week */}
1033
+ <TouchableOpacity
1034
+ style={Styles._option}
1035
+ activeOpacity={0.8}
1036
+ onPress={() => {
1037
+ setSelectedFilter('Last Week');
1038
+ setIsFilterModal(false);
1039
+
1040
+ let now = new Date();
1041
+
1042
+ let dayOfWeek = now.getDay();
1043
+ let lastSunday = new Date(now);
1044
+
1045
+ lastSunday.setDate(lastSunday.getDate() - dayOfWeek - 1);
1046
+ lastSunday.setHours(23, 59, 59, 999);
1047
+
1048
+ let prevSunday = new Date(lastSunday);
1049
+ prevSunday.setDate(prevSunday.getDate() - 6);
1050
+ prevSunday.setHours(0, 0, 0, 0);
1051
+
1052
+ setStartDate(prevSunday);
1053
+ setEndDate(lastSunday);
1054
+ }}
1055
+ >
1056
+ <Text
1057
+ style={[
1058
+ Styles._optionTitle,
1059
+ {
1060
+ color:
1061
+ SelectedFilter === 'Last Week'
1062
+ ? COLORS.primaryColor
1063
+ : COLORS.blackColor,
1064
+ },
1065
+ ]}
1066
+ >
1067
+ Last Week
1068
+ </Text>
1069
+ <Ionicons
1070
+ name={
1071
+ SelectedFilter === 'Last Week'
1072
+ ? 'radio-button-on'
1073
+ : 'radio-button-off'
1074
+ }
1075
+ color={
1076
+ SelectedFilter === 'Last Week'
1077
+ ? COLORS.primaryColor
1078
+ : COLORS.darkGrey
1079
+ }
1080
+ size={25}
1081
+ />
1082
+ </TouchableOpacity>
1083
+
1084
+ {/* Last Month */}
1085
+ <TouchableOpacity
1086
+ style={Styles._option}
1087
+ activeOpacity={0.8}
1088
+ onPress={() => {
1089
+ setSelectedFilter('Last Month');
1090
+ setIsFilterModal(false);
1091
+
1092
+ let now = new Date();
1093
+
1094
+ let start = new Date(now.getFullYear(), now.getMonth() - 1, 1);
1095
+ start.setHours(0, 0, 0, 0);
1096
+
1097
+ let end = new Date(now.getFullYear(), now.getMonth(), 0);
1098
+ end.setHours(23, 59, 59, 999);
1099
+
1100
+ setStartDate(start);
1101
+ setEndDate(end);
1102
+ }}
1103
+ >
1104
+ <Text
1105
+ style={[
1106
+ Styles._optionTitle,
1107
+ {
1108
+ color:
1109
+ SelectedFilter === 'Last Month'
1110
+ ? COLORS.primaryColor
1111
+ : COLORS.blackColor,
1112
+ },
1113
+ ]}
1114
+ >
1115
+ Last Month
1116
+ </Text>
1117
+ <Ionicons
1118
+ name={
1119
+ SelectedFilter === 'Last Month'
1120
+ ? 'radio-button-on'
1121
+ : 'radio-button-off'
1122
+ }
1123
+ color={
1124
+ SelectedFilter === 'Last Month'
1125
+ ? COLORS.primaryColor
1126
+ : COLORS.darkGrey
1127
+ }
1128
+ size={25}
1129
+ />
1130
+ </TouchableOpacity>
1131
+
1132
+ {/* Date Range */}
1133
+ <TouchableOpacity
1134
+ style={Styles._option}
1135
+ activeOpacity={0.8}
1136
+ onPress={() => {
1137
+ setSelectedFilter('Date Range');
1138
+ setIsFilterModal(false);
1139
+
1140
+ onDateRangePress();
1141
+ }}
1142
+ >
1143
+ <Text
1144
+ style={[
1145
+ Styles._optionTitle,
1146
+ {
1147
+ color:
1148
+ SelectedFilter === 'Date Range'
1149
+ ? COLORS.primaryColor
1150
+ : COLORS.blackColor,
1151
+ },
1152
+ ]}
1153
+ >
1154
+ Date Range
1155
+ </Text>
1156
+ <Ionicons
1157
+ name={
1158
+ SelectedFilter === 'Date Range'
1159
+ ? 'radio-button-on'
1160
+ : 'radio-button-off'
1161
+ }
1162
+ color={
1163
+ SelectedFilter === 'Date Range'
1164
+ ? COLORS.primaryColor
1165
+ : COLORS.darkGrey
1166
+ }
1167
+ size={25}
1168
+ />
1169
+ </TouchableOpacity>
1170
+ </View>
1171
+ </View>
1172
+ </Modal>
1173
+ </>
1174
+ );
1175
+ }
1176
+
1177
+ const Styles = StyleSheet.create({
1178
+ _mainContainer: {
1179
+ flex: 1,
1180
+ backgroundColor: COLORS.backgroundColor,
1181
+ },
1182
+ _headerMain: {
1183
+ width: WP(100),
1184
+ height: 60,
1185
+ flexDirection: 'row',
1186
+ alignItems: 'center',
1187
+ // justifyContent: "space-between",
1188
+ paddingHorizontal: Platform.OS == 'android' && 10,
1189
+ gap: 15,
1190
+ },
1191
+ _headerTitle: {
1192
+ color: COLORS.whiteColor,
1193
+ fontFamily: FONT_NORMAL,
1194
+ fontSize: 15,
1195
+ },
1196
+ _searchMain: {
1197
+ width: '95%',
1198
+ height: 45,
1199
+ backgroundColor: COLORS.whiteColor,
1200
+ alignSelf: 'center',
1201
+ position: 'absolute',
1202
+ top: 60,
1203
+ borderRadius: TEXT_SIZES.BORDER_RADIUS,
1204
+ shadowColor: '#000',
1205
+ shadowOffset: {
1206
+ width: 0,
1207
+ height: 2,
1208
+ },
1209
+ shadowOpacity: 0.2,
1210
+ shadowRadius: 3.84,
1211
+ elevation: 5,
1212
+ flexDirection: 'row',
1213
+ alignItems: 'center',
1214
+ overflow: 'hidden',
1215
+ },
1216
+ _netBalanceMain: {
1217
+ width: '100%',
1218
+ height: 45,
1219
+ backgroundColor: COLORS.whiteColor,
1220
+ marginTop: 35,
1221
+ flexDirection: 'row',
1222
+ justifyContent: 'space-between',
1223
+ alignItems: 'center',
1224
+ paddingHorizontal: 15,
1225
+ },
1226
+ _tableHeader: {
1227
+ width: '100%',
1228
+ // height: 30,
1229
+ backgroundColor: COLORS.whiteColor,
1230
+ flexDirection: 'row',
1231
+ marginTop: 11,
1232
+ borderBottomColor: COLORS.darkGrey,
1233
+ borderBottomWidth: 0.7,
1234
+ paddingHorizontal: 10,
1235
+ },
1236
+ _headerCell: {
1237
+ width: '21%',
1238
+ // height: "100%",
1239
+ // backgroundColor: "pink",
1240
+ justifyContent: 'center',
1241
+ paddingLeft: 5,
1242
+ paddingVertical: 5,
1243
+ gap: 3,
1244
+ },
1245
+ _headerCellText: {
1246
+ color: COLORS.blackColor,
1247
+ opacity: 0.5,
1248
+ fontFamily: FONT_MEDIUM,
1249
+ fontSize: 10,
1250
+ },
1251
+ _tableCal: {
1252
+ color: COLORS.blackColor,
1253
+ fontFamily: FONT_NORMAL,
1254
+ fontSize: 8.5,
1255
+ },
1256
+ _btnsMain: {
1257
+ width: WP(100),
1258
+ // height: 70,
1259
+ backgroundColor: COLORS.whiteColor,
1260
+ position: 'absolute',
1261
+ // bottom: bottomNavBarH,
1262
+ bottom: 0,
1263
+ flexDirection: 'row',
1264
+ justifyContent: 'space-between',
1265
+ // alignItems: "center",
1266
+ paddingHorizontal: 10,
1267
+ paddingTop: 8,
1268
+ },
1269
+ _printButton: {
1270
+ width: 50,
1271
+ height: 50,
1272
+ backgroundColor: COLORS.yellowColor,
1273
+ borderRadius: 100,
1274
+ justifyContent: 'center',
1275
+ alignItems: 'center',
1276
+ },
1277
+ _btn: {
1278
+ width: '85%',
1279
+ height: 50,
1280
+ borderColor: 'red',
1281
+ borderWidth: 1,
1282
+ borderRadius: 100,
1283
+ flexDirection: 'row',
1284
+ justifyContent: 'center',
1285
+ alignItems: 'center',
1286
+ gap: 3,
1287
+ },
1288
+ _modal: {
1289
+ margin: 0,
1290
+ padding: 0,
1291
+ justifyContent: 'flex-end',
1292
+ },
1293
+ _modalMain: {
1294
+ width: WP(100),
1295
+ // height: HP(45),
1296
+ backgroundColor: COLORS.whiteColor,
1297
+ borderTopRightRadius: TEXT_SIZES.BORDER_RADIUS,
1298
+ borderTopLeftRadius: TEXT_SIZES.BORDER_RADIUS,
1299
+ paddingHorizontal: 20,
1300
+ paddingTop: 15,
1301
+ },
1302
+ _modalTitle: {
1303
+ color: COLORS.blackColor,
1304
+ fontFamily: FONT_MEDIUM,
1305
+ fontSize: 14,
1306
+ },
1307
+ _optionsMain: {
1308
+ paddingTop: 15,
1309
+ },
1310
+ _option: {
1311
+ width: '100%',
1312
+ height: 45,
1313
+ // backgroundColor: "red",
1314
+ alignSelf: 'center',
1315
+ flexDirection: 'row',
1316
+ justifyContent: 'space-between',
1317
+ alignItems: 'center',
1318
+ },
1319
+ _optionTitle: {
1320
+ color: COLORS.blackColor,
1321
+ fontFamily: FONT_NORMAL,
1322
+ fontSize: 14,
1323
+ },
1324
+
1325
+ dateFilterContainer: {
1326
+ // flexDirection: 'column',
1327
+ width: '30%',
1328
+ backgroundColor: COLORS.whiteColor,
1329
+ borderRadius: TEXT_SIZES.BORDER_RADIUS,
1330
+ marginTop: 35,
1331
+ paddingVertical: 10,
1332
+ justifyContent: 'space-around',
1333
+ alignItems: 'center',
1334
+ elevation: 3,
1335
+ },
1336
+ dateFilterContainerParent: {
1337
+ flexDirection: 'row',
1338
+ width: '100%',
1339
+ // backgroundColor: COLORS.whiteColor,
1340
+ // borderRadius: TEXT_SIZES.BORDER_RADIUS,
1341
+ // marginTop: 10,
1342
+ // paddingVertical: 10,
1343
+ // justifyContent: 'space-around',
1344
+ justifyContent: 'center',
1345
+ gap: 10,
1346
+ alignItems: 'center',
1347
+ // elevation: 3,
1348
+ },
1349
+ dateBtn: {
1350
+ flexDirection: 'row',
1351
+ alignItems: 'center',
1352
+ gap: 6,
1353
+ },
1354
+ dateBtnText: {
1355
+ color: COLORS.primaryColor,
1356
+ fontFamily: FONT_NORMAL,
1357
+ fontSize: 12,
1358
+ },
1359
+ });