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.
- package/lib/module/App.js +13 -26
- package/lib/module/App.js.map +1 -1
- package/lib/module/app/api/api.js +12 -0
- package/lib/module/app/api/api.js.map +1 -0
- package/lib/module/app/assets/Icons/Bill.png +0 -0
- package/lib/module/app/assets/Icons/Bill_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Cash.png +0 -0
- package/lib/module/app/assets/Icons/Cash_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Expense.png +0 -0
- package/lib/module/app/assets/Icons/Expense_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Staff.png +0 -0
- package/lib/module/app/assets/Icons/Stock.png +0 -0
- package/lib/module/app/assets/Icons/Stock_Grey.png +0 -0
- package/lib/module/app/assets/Icons/abc.png +0 -0
- package/lib/module/app/assets/Icons/bank_logo.png +0 -0
- package/lib/module/app/assets/Icons/download_sale.png +0 -0
- package/lib/module/app/assets/Icons/recycle-bin.png +0 -0
- package/lib/module/app/assets/animations/recording.json +1 -0
- package/lib/module/app/assets/animations/success.json +1 -0
- package/lib/module/app/assets/animations/voice_visualization.json +1 -0
- package/lib/module/app/assets/businessCards/card_11.png +0 -0
- package/lib/module/app/assets/businessCards/card_12_bg.png +0 -0
- package/lib/module/app/assets/businessCards/card_wall_01.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_02.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_03.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_04.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_05.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_06.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_07.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_08.jpeg +0 -0
- package/lib/module/app/assets/illustrations/empty.png +0 -0
- package/lib/module/app/assets/illustrations/packages.png +0 -0
- package/lib/module/app/assets/images/Digikhata_idzarHgH0q_0.png +0 -0
- package/lib/module/app/assets/images/bank.png +0 -0
- package/lib/module/app/assets/images/digiLogo-main.png +0 -0
- package/lib/module/app/assets/images/svgviewer-output.svg +57 -0
- package/lib/module/app/assets/images/user.png +0 -0
- package/lib/module/app/assets/oldIcons/BILL.svg +3 -0
- package/lib/module/app/assets/oldIcons/CASH.svg +4 -0
- package/lib/module/app/assets/oldIcons/EXPENSE.svg +6 -0
- package/lib/module/app/assets/oldIcons/STAFF.svg +3 -0
- package/lib/module/app/assets/oldIcons/Sale Active.svg +14 -0
- package/lib/module/app/assets/oldIcons/Stock.svg +5 -0
- package/lib/module/app/assets/svg/BILL.svg +4 -0
- package/lib/module/app/assets/svg/CASH.svg +6 -0
- package/lib/module/app/assets/svg/EXPENSE.svg +5 -0
- package/lib/module/app/assets/svg/More Icon.svg +6 -0
- package/lib/module/app/assets/svg/Payment Icon.svg +4 -0
- package/lib/module/app/assets/svg/Pos.svg +13 -0
- package/lib/module/app/assets/svg/STAFF.svg +5 -0
- package/lib/module/app/assets/svg/Sale Active.svg +8 -0
- package/lib/module/app/assets/svg/Sale Icon.svg +3 -0
- package/lib/module/app/assets/svg/Stock.svg +5 -0
- package/lib/module/app/components/AccountSetupSteps.js +64 -0
- package/lib/module/app/components/AccountSetupSteps.js.map +1 -0
- package/lib/module/app/components/AddItemBillParent.js +366 -0
- package/lib/module/app/components/AddItemBillParent.js.map +1 -0
- package/lib/module/app/components/AdditemBillChild.js +1123 -0
- package/lib/module/app/components/AdditemBillChild.js.map +1 -0
- package/lib/module/app/components/Balance.js +116 -70
- package/lib/module/app/components/Balance.js.map +1 -1
- package/lib/module/app/components/BillList.js +428 -0
- package/lib/module/app/components/BillList.js.map +1 -0
- package/lib/module/app/components/BillSetupSteps.js +64 -0
- package/lib/module/app/components/BillSetupSteps.js.map +1 -0
- package/lib/module/app/components/BottomView.js +35 -0
- package/lib/module/app/components/BottomView.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card1.js +202 -0
- package/lib/module/app/components/BusinessCards/Card1.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card10.js +234 -0
- package/lib/module/app/components/BusinessCards/Card10.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card2.js +190 -0
- package/lib/module/app/components/BusinessCards/Card2.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card3.js +186 -0
- package/lib/module/app/components/BusinessCards/Card3.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card4.js +186 -0
- package/lib/module/app/components/BusinessCards/Card4.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card5.js +189 -0
- package/lib/module/app/components/BusinessCards/Card5.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card6.js +198 -0
- package/lib/module/app/components/BusinessCards/Card6.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card7.js +185 -0
- package/lib/module/app/components/BusinessCards/Card7.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card8.js +187 -0
- package/lib/module/app/components/BusinessCards/Card8.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card9.js +234 -0
- package/lib/module/app/components/BusinessCards/Card9.js.map +1 -0
- package/lib/module/app/components/BusinessCards/index.js +13 -0
- package/lib/module/app/components/BusinessCards/index.js.map +1 -0
- package/lib/module/app/components/CashEntryComponent.js +256 -0
- package/lib/module/app/components/CashEntryComponent.js.map +1 -0
- package/lib/module/app/components/CityModal.js +116 -0
- package/lib/module/app/components/CityModal.js.map +1 -0
- package/lib/module/app/components/CountryPhoneInput.js +263 -166
- package/lib/module/app/components/CountryPhoneInput.js.map +1 -1
- package/lib/module/app/components/CreateExpenseAccount.js +139 -0
- package/lib/module/app/components/CreateExpenseAccount.js.map +1 -0
- package/lib/module/app/components/CustomStatusBar.js +29 -0
- package/lib/module/app/components/CustomStatusBar.js.map +1 -0
- package/lib/module/app/components/CustomToast.js +135 -0
- package/lib/module/app/components/CustomToast.js.map +1 -0
- package/lib/module/app/components/DeleteBusinessModal.js +174 -0
- package/lib/module/app/components/DeleteBusinessModal.js.map +1 -0
- package/lib/module/app/components/DiscountTaxModal.js +242 -0
- package/lib/module/app/components/DiscountTaxModal.js.map +1 -0
- package/lib/module/app/components/Entries.js +54 -32
- package/lib/module/app/components/Entries.js.map +1 -1
- package/lib/module/app/components/ExpenseList.js +402 -0
- package/lib/module/app/components/ExpenseList.js.map +1 -0
- package/lib/module/app/components/ExpenseParent.js +441 -0
- package/lib/module/app/components/ExpenseParent.js.map +1 -0
- package/lib/module/app/components/FloatingInput.js +159 -0
- package/lib/module/app/components/FloatingInput.js.map +1 -0
- package/lib/module/app/components/Header.js +107 -0
- package/lib/module/app/components/Header.js.map +1 -0
- package/lib/module/app/components/Loader.js +45 -0
- package/lib/module/app/components/Loader.js.map +1 -0
- package/lib/module/app/components/PartyModal.js +230 -0
- package/lib/module/app/components/PartyModal.js.map +1 -0
- package/lib/module/app/components/PickerModal.js +153 -0
- package/lib/module/app/components/PickerModal.js.map +1 -0
- package/lib/module/app/components/SalePaymentModal.js +743 -0
- package/lib/module/app/components/SalePaymentModal.js.map +1 -0
- package/lib/module/app/components/SearchBar.js +179 -42
- package/lib/module/app/components/SearchBar.js.map +1 -1
- package/lib/module/app/components/StockDetailChild.js +425 -0
- package/lib/module/app/components/StockDetailChild.js.map +1 -0
- package/lib/module/app/components/StockList.js +448 -0
- package/lib/module/app/components/StockList.js.map +1 -0
- package/lib/module/app/components/StockReportTransaction.js +182 -0
- package/lib/module/app/components/StockReportTransaction.js.map +1 -0
- package/lib/module/app/components/Transaction.js +193 -53
- package/lib/module/app/components/Transaction.js.map +1 -1
- package/lib/module/app/components/User.js +106 -51
- package/lib/module/app/components/User.js.map +1 -1
- package/lib/module/app/components/index.js +20 -1
- package/lib/module/app/components/index.js.map +1 -1
- package/lib/module/app/database/bill.js +247 -0
- package/lib/module/app/database/bill.js.map +1 -0
- package/lib/module/app/database/business.js +262 -0
- package/lib/module/app/database/business.js.map +1 -0
- package/lib/module/app/database/cash.js +299 -0
- package/lib/module/app/database/cash.js.map +1 -0
- package/lib/module/app/database/clients.js +1182 -36
- package/lib/module/app/database/clients.js.map +1 -1
- package/lib/module/app/database/expense.js +299 -0
- package/lib/module/app/database/expense.js.map +1 -0
- package/lib/module/app/database/schema.js +113 -3
- package/lib/module/app/database/schema.js.map +1 -1
- package/lib/module/app/database/stock.js +509 -0
- package/lib/module/app/database/stock.js.map +1 -0
- package/lib/module/app/htmlTemplates/htmlTemplates.js +2504 -0
- package/lib/module/app/htmlTemplates/htmlTemplates.js.map +1 -0
- package/lib/module/app/navigation/BillStack/BillStack.js +40 -0
- package/lib/module/app/navigation/BillStack/BillStack.js.map +1 -0
- package/lib/module/app/navigation/BottomTabs/BottomTabs.js +10 -5
- package/lib/module/app/navigation/BottomTabs/BottomTabs.js.map +1 -1
- package/lib/module/app/navigation/BusinessStack/BusinessStack.js +30 -0
- package/lib/module/app/navigation/BusinessStack/BusinessStack.js.map +1 -0
- package/lib/module/app/navigation/CashStack/CashStack.js +79 -0
- package/lib/module/app/navigation/CashStack/CashStack.js.map +1 -0
- package/lib/module/app/navigation/EntriesStack/EntriesStack.js +223 -0
- package/lib/module/app/navigation/EntriesStack/EntriesStack.js.map +1 -0
- package/lib/module/app/navigation/ExpenseStack.js/ExpenseStack.js +37 -0
- package/lib/module/app/navigation/ExpenseStack.js/ExpenseStack.js.map +1 -0
- package/lib/module/app/navigation/HomeStack/HomeStack.js +93 -1
- package/lib/module/app/navigation/HomeStack/HomeStack.js.map +1 -1
- package/lib/module/app/navigation/Root.js +10 -1
- package/lib/module/app/navigation/Root.js.map +1 -1
- package/lib/module/app/navigation/SaleStack/SaleStack.js +73 -0
- package/lib/module/app/navigation/SaleStack/SaleStack.js.map +1 -0
- package/lib/module/app/navigation/StockStack/StockStack.js +49 -0
- package/lib/module/app/navigation/StockStack/StockStack.js.map +1 -0
- package/lib/module/app/navigation/index.js +3 -1
- package/lib/module/app/navigation/index.js.map +1 -1
- package/lib/module/app/redux/Store.js +3 -1
- package/lib/module/app/redux/Store.js.map +1 -1
- package/lib/module/app/redux/reducers/client/client_reducers.js +23 -2
- package/lib/module/app/redux/reducers/client/client_reducers.js.map +1 -1
- package/lib/module/app/redux/reducers/client/client_types.js +5 -0
- package/lib/module/app/redux/reducers/client/client_types.js.map +1 -1
- package/lib/module/app/redux/reducers/user/user_reducers.js +22 -0
- package/lib/module/app/redux/reducers/user/user_reducers.js.map +1 -0
- package/lib/module/app/redux/reducers/user/user_types.js +6 -0
- package/lib/module/app/redux/reducers/user/user_types.js.map +1 -0
- package/lib/module/app/screens/AddBank.js +237 -0
- package/lib/module/app/screens/AddBank.js.map +1 -0
- package/lib/module/app/screens/AddBusiness.js +905 -0
- package/lib/module/app/screens/AddBusiness.js.map +1 -0
- package/lib/module/app/screens/AddItems.js +433 -0
- package/lib/module/app/screens/AddItems.js.map +1 -0
- package/lib/module/app/screens/AddScreen.js +341 -77
- package/lib/module/app/screens/AddScreen.js.map +1 -1
- package/lib/module/app/screens/All.js +836 -0
- package/lib/module/app/screens/All.js.map +1 -0
- package/lib/module/app/screens/AllTransactions.js +846 -0
- package/lib/module/app/screens/AllTransactions.js.map +1 -0
- package/lib/module/app/screens/Banks.js +807 -48
- package/lib/module/app/screens/Banks.js.map +1 -1
- package/lib/module/app/screens/BillDetails.js +1033 -0
- package/lib/module/app/screens/BillDetails.js.map +1 -0
- package/lib/module/app/screens/BillHome.js +102 -0
- package/lib/module/app/screens/BillHome.js.map +1 -0
- package/lib/module/app/screens/BillParent.js +373 -0
- package/lib/module/app/screens/BillParent.js.map +1 -0
- package/lib/module/app/screens/BusinessDetail.js +787 -0
- package/lib/module/app/screens/BusinessDetail.js.map +1 -0
- package/lib/module/app/screens/CashEntry.js +2429 -0
- package/lib/module/app/screens/CashEntry.js.map +1 -0
- package/lib/module/app/screens/CashEntryDetails.js +574 -0
- package/lib/module/app/screens/CashEntryDetails.js.map +1 -0
- package/lib/module/app/screens/CashHome.js +544 -0
- package/lib/module/app/screens/CashHome.js.map +1 -0
- package/lib/module/app/screens/CashReport.js +1297 -0
- package/lib/module/app/screens/CashReport.js.map +1 -0
- package/lib/module/app/screens/CashSummary.js +602 -0
- package/lib/module/app/screens/CashSummary.js.map +1 -0
- package/lib/module/app/screens/CreateBill.js +2137 -0
- package/lib/module/app/screens/CreateBill.js.map +1 -0
- package/lib/module/app/screens/CustomerEntries.js +1093 -184
- package/lib/module/app/screens/CustomerEntries.js.map +1 -1
- package/lib/module/app/screens/Customers.js +727 -96
- package/lib/module/app/screens/Customers.js.map +1 -1
- package/lib/module/app/screens/EditCategory.js +299 -0
- package/lib/module/app/screens/EditCategory.js.map +1 -0
- package/lib/module/app/screens/EditCategoryStock.js +302 -0
- package/lib/module/app/screens/EditCategoryStock.js.map +1 -0
- package/lib/module/app/screens/Entry.js +1838 -275
- package/lib/module/app/screens/Entry.js.map +1 -1
- package/lib/module/app/screens/ExpenseDetail.js +15 -0
- package/lib/module/app/screens/ExpenseDetail.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntries.js +713 -0
- package/lib/module/app/screens/ExpenseEntries.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntry.js +2095 -0
- package/lib/module/app/screens/ExpenseEntry.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntryDetails.js +508 -0
- package/lib/module/app/screens/ExpenseEntryDetails.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntryReport.js +792 -0
- package/lib/module/app/screens/ExpenseEntryReport.js.map +1 -0
- package/lib/module/app/screens/ExpenseReport.js +792 -0
- package/lib/module/app/screens/ExpenseReport.js.map +1 -0
- package/lib/module/app/screens/Geolocation.js +374 -0
- package/lib/module/app/screens/Geolocation.js.map +1 -0
- package/lib/module/app/screens/GetStarted.js +213 -0
- package/lib/module/app/screens/GetStarted.js.map +1 -0
- package/lib/module/app/screens/HomeScreen.js +202 -55
- package/lib/module/app/screens/HomeScreen.js.map +1 -1
- package/lib/module/app/screens/InBuy.js +854 -0
- package/lib/module/app/screens/InBuy.js.map +1 -0
- package/lib/module/app/screens/ItemEntryDetails.js +652 -0
- package/lib/module/app/screens/ItemEntryDetails.js.map +1 -0
- package/lib/module/app/screens/LowStock.js +372 -0
- package/lib/module/app/screens/LowStock.js.map +1 -0
- package/lib/module/app/screens/NewPin.js +234 -0
- package/lib/module/app/screens/NewPin.js.map +1 -0
- package/lib/module/app/screens/OutSell.js +1883 -0
- package/lib/module/app/screens/OutSell.js.map +1 -0
- package/lib/module/app/screens/POSSale.js +637 -0
- package/lib/module/app/screens/POSSale.js.map +1 -0
- package/lib/module/app/screens/PinScreen.js +663 -0
- package/lib/module/app/screens/PinScreen.js.map +1 -0
- package/lib/module/app/screens/PreviewBill.js +329 -0
- package/lib/module/app/screens/PreviewBill.js.map +1 -0
- package/lib/module/app/screens/Profile.js +1160 -0
- package/lib/module/app/screens/Profile.js.map +1 -0
- package/lib/module/app/screens/RateList.js +432 -0
- package/lib/module/app/screens/RateList.js.map +1 -0
- package/lib/module/app/screens/Report.js +1105 -0
- package/lib/module/app/screens/Report.js.map +1 -0
- package/lib/module/app/screens/SaleItemDetail.js +1047 -0
- package/lib/module/app/screens/SaleItemDetail.js.map +1 -0
- package/lib/module/app/screens/SaleParent.js +289 -0
- package/lib/module/app/screens/SaleParent.js.map +1 -0
- package/lib/module/app/screens/SelectBank.js +220 -0
- package/lib/module/app/screens/SelectBank.js.map +1 -0
- package/lib/module/app/screens/SelectBusiness.js +497 -93
- package/lib/module/app/screens/SelectBusiness.js.map +1 -1
- package/lib/module/app/screens/Splash.js +93 -20
- package/lib/module/app/screens/Splash.js.map +1 -1
- package/lib/module/app/screens/StockChild.js +362 -0
- package/lib/module/app/screens/StockChild.js.map +1 -0
- package/lib/module/app/screens/StockDetail.js +705 -0
- package/lib/module/app/screens/StockDetail.js.map +1 -0
- package/lib/module/app/screens/StockParent.js +260 -0
- package/lib/module/app/screens/StockParent.js.map +1 -0
- package/lib/module/app/screens/StockReport.js +1031 -0
- package/lib/module/app/screens/StockReport.js.map +1 -0
- package/lib/module/app/screens/StockValue.js +545 -0
- package/lib/module/app/screens/StockValue.js.map +1 -0
- package/lib/module/app/screens/Suppliers.js +753 -98
- package/lib/module/app/screens/Suppliers.js.map +1 -1
- package/lib/module/app/screens/TransactionDetails.js +1169 -81
- package/lib/module/app/screens/TransactionDetails.js.map +1 -1
- package/lib/module/app/screens/UpdateBusiness.js +707 -0
- package/lib/module/app/screens/UpdateBusiness.js.map +1 -0
- package/lib/module/app/screens/VisionCamera.js +60 -0
- package/lib/module/app/screens/VisionCamera.js.map +1 -0
- package/lib/module/app/screens/index.js +46 -1
- package/lib/module/app/screens/index.js.map +1 -1
- package/lib/module/app/screens/new.html +171 -0
- package/lib/module/app/themes/config.js +299 -30
- package/lib/module/app/themes/config.js.map +1 -1
- package/lib/module/app/utils/city.json +7265 -0
- package/lib/typescript/eslint.config.d.mts +1 -1
- package/lib/typescript/src/App.d.ts.map +1 -1
- package/lib/typescript/src/app/api/api.d.ts +10 -0
- package/lib/typescript/src/app/api/api.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AccountSetupSteps.d.ts +3 -0
- package/lib/typescript/src/app/components/AccountSetupSteps.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AddItemBillParent.d.ts +5 -0
- package/lib/typescript/src/app/components/AddItemBillParent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AdditemBillChild.d.ts +6 -0
- package/lib/typescript/src/app/components/AdditemBillChild.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Balance.d.ts +3 -1
- package/lib/typescript/src/app/components/Balance.d.ts.map +1 -1
- package/lib/typescript/src/app/components/BillList.d.ts +5 -0
- package/lib/typescript/src/app/components/BillList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BillSetupSteps.d.ts +3 -0
- package/lib/typescript/src/app/components/BillSetupSteps.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BottomView.d.ts +6 -0
- package/lib/typescript/src/app/components/BottomView.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card1.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card1.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card10.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card10.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card2.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card2.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card3.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card3.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card4.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card4.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card5.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card5.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card6.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card6.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card7.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card7.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card8.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card8.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card9.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card9.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/index.d.ts +11 -0
- package/lib/typescript/src/app/components/BusinessCards/index.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CashEntryComponent.d.ts +8 -0
- package/lib/typescript/src/app/components/CashEntryComponent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CityModal.d.ts +7 -0
- package/lib/typescript/src/app/components/CityModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CountryPhoneInput.d.ts +4 -1
- package/lib/typescript/src/app/components/CountryPhoneInput.d.ts.map +1 -1
- package/lib/typescript/src/app/components/CreateExpenseAccount.d.ts +9 -0
- package/lib/typescript/src/app/components/CreateExpenseAccount.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CustomStatusBar.d.ts +3 -0
- package/lib/typescript/src/app/components/CustomStatusBar.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CustomToast.d.ts +10 -0
- package/lib/typescript/src/app/components/CustomToast.d.ts.map +1 -0
- package/lib/typescript/src/app/components/DeleteBusinessModal.d.ts +8 -0
- package/lib/typescript/src/app/components/DeleteBusinessModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/DiscountTaxModal.d.ts +9 -0
- package/lib/typescript/src/app/components/DiscountTaxModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Entries.d.ts.map +1 -1
- package/lib/typescript/src/app/components/ExpenseList.d.ts +6 -0
- package/lib/typescript/src/app/components/ExpenseList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/ExpenseParent.d.ts +4 -0
- package/lib/typescript/src/app/components/ExpenseParent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/FloatingInput.d.ts +18 -0
- package/lib/typescript/src/app/components/FloatingInput.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Header.d.ts +11 -0
- package/lib/typescript/src/app/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Loader.d.ts +5 -0
- package/lib/typescript/src/app/components/Loader.d.ts.map +1 -0
- package/lib/typescript/src/app/components/PartyModal.d.ts +7 -0
- package/lib/typescript/src/app/components/PartyModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/PickerModal.d.ts +8 -0
- package/lib/typescript/src/app/components/PickerModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/SalePaymentModal.d.ts +15 -0
- package/lib/typescript/src/app/components/SalePaymentModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/SearchBar.d.ts +2 -4
- package/lib/typescript/src/app/components/SearchBar.d.ts.map +1 -1
- package/lib/typescript/src/app/components/StockDetailChild.d.ts +5 -0
- package/lib/typescript/src/app/components/StockDetailChild.d.ts.map +1 -0
- package/lib/typescript/src/app/components/StockList.d.ts +6 -0
- package/lib/typescript/src/app/components/StockList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/StockReportTransaction.d.ts +18 -0
- package/lib/typescript/src/app/components/StockReportTransaction.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Transaction.d.ts +9 -2
- package/lib/typescript/src/app/components/Transaction.d.ts.map +1 -1
- package/lib/typescript/src/app/components/User.d.ts +3 -1
- package/lib/typescript/src/app/components/User.d.ts.map +1 -1
- package/lib/typescript/src/app/components/index.d.ts +26 -7
- package/lib/typescript/src/app/components/index.d.ts.map +1 -1
- package/lib/typescript/src/app/database/bill.d.ts +7 -0
- package/lib/typescript/src/app/database/bill.d.ts.map +1 -0
- package/lib/typescript/src/app/database/business.d.ts +9 -0
- package/lib/typescript/src/app/database/business.d.ts.map +1 -0
- package/lib/typescript/src/app/database/cash.d.ts +14 -0
- package/lib/typescript/src/app/database/cash.d.ts.map +1 -0
- package/lib/typescript/src/app/database/clients.d.ts +36 -5
- package/lib/typescript/src/app/database/clients.d.ts.map +1 -1
- package/lib/typescript/src/app/database/expense.d.ts +12 -0
- package/lib/typescript/src/app/database/expense.d.ts.map +1 -0
- package/lib/typescript/src/app/database/schema.d.ts.map +1 -1
- package/lib/typescript/src/app/database/stock.d.ts +16 -0
- package/lib/typescript/src/app/database/stock.d.ts.map +1 -0
- package/lib/typescript/src/app/htmlTemplates/htmlTemplates.d.ts +29 -0
- package/lib/typescript/src/app/htmlTemplates/htmlTemplates.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/BillStack/BillStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/BillStack/BillStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/BottomTabs/BottomTabs.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/BusinessStack/BusinessStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/BusinessStack/BusinessStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/CashStack/CashStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/CashStack/CashStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/EntriesStack/EntriesStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/EntriesStack/EntriesStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/ExpenseStack.js/ExpenseStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/ExpenseStack.js/ExpenseStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/HomeStack/HomeStack.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/Root.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/SaleStack/SaleStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/SaleStack/SaleStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/StockStack/StockStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/StockStack/StockStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/index.d.ts +3 -1
- package/lib/typescript/src/app/navigation/index.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/Store.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/client/client_reducers.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts +5 -0
- package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/user/user_reducers.d.ts +3 -0
- package/lib/typescript/src/app/redux/reducers/user/user_reducers.d.ts.map +1 -0
- package/lib/typescript/src/app/redux/reducers/user/user_types.d.ts +4 -0
- package/lib/typescript/src/app/redux/reducers/user/user_types.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddBank.d.ts +5 -0
- package/lib/typescript/src/app/screens/AddBank.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddBusiness.d.ts +4 -0
- package/lib/typescript/src/app/screens/AddBusiness.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddItems.d.ts +5 -0
- package/lib/typescript/src/app/screens/AddItems.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddScreen.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/All.d.ts +2 -0
- package/lib/typescript/src/app/screens/All.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AllTransactions.d.ts +5 -0
- package/lib/typescript/src/app/screens/AllTransactions.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Banks.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/BillDetails.d.ts +6 -0
- package/lib/typescript/src/app/screens/BillDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BillHome.d.ts +5 -0
- package/lib/typescript/src/app/screens/BillHome.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BillParent.d.ts +5 -0
- package/lib/typescript/src/app/screens/BillParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BusinessDetail.d.ts +4 -0
- package/lib/typescript/src/app/screens/BusinessDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashEntry.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashEntry.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashHome.d.ts +4 -0
- package/lib/typescript/src/app/screens/CashHome.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashReport.d.ts +4 -0
- package/lib/typescript/src/app/screens/CashReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashSummary.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashSummary.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CreateBill.d.ts +5 -0
- package/lib/typescript/src/app/screens/CreateBill.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CustomerEntries.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/Customers.d.ts +1 -3
- package/lib/typescript/src/app/screens/Customers.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/EditCategory.d.ts +4 -0
- package/lib/typescript/src/app/screens/EditCategory.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/EditCategoryStock.d.ts +4 -0
- package/lib/typescript/src/app/screens/EditCategoryStock.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Entry.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/ExpenseDetail.d.ts +3 -0
- package/lib/typescript/src/app/screens/ExpenseDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntries.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntries.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntry.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntry.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntryReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntryReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Geolocation.d.ts +5 -0
- package/lib/typescript/src/app/screens/Geolocation.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/GetStarted.d.ts +4 -0
- package/lib/typescript/src/app/screens/GetStarted.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/HomeScreen.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/InBuy.d.ts +5 -0
- package/lib/typescript/src/app/screens/InBuy.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ItemEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/ItemEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/LowStock.d.ts +4 -0
- package/lib/typescript/src/app/screens/LowStock.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/NewPin.d.ts +5 -0
- package/lib/typescript/src/app/screens/NewPin.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/OutSell.d.ts +6 -0
- package/lib/typescript/src/app/screens/OutSell.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/POSSale.d.ts +9 -0
- package/lib/typescript/src/app/screens/POSSale.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/PinScreen.d.ts +5 -0
- package/lib/typescript/src/app/screens/PinScreen.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/PreviewBill.d.ts +5 -0
- package/lib/typescript/src/app/screens/PreviewBill.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Profile.d.ts +5 -0
- package/lib/typescript/src/app/screens/Profile.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/RateList.d.ts +5 -0
- package/lib/typescript/src/app/screens/RateList.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Report.d.ts +5 -0
- package/lib/typescript/src/app/screens/Report.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SaleItemDetail.d.ts +6 -0
- package/lib/typescript/src/app/screens/SaleItemDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SaleParent.d.ts +2 -0
- package/lib/typescript/src/app/screens/SaleParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SelectBank.d.ts +4 -0
- package/lib/typescript/src/app/screens/SelectBank.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SelectBusiness.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/Splash.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/StockChild.d.ts +7 -0
- package/lib/typescript/src/app/screens/StockChild.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockDetail.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockParent.d.ts +2 -0
- package/lib/typescript/src/app/screens/StockParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockValue.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockValue.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Suppliers.d.ts +1 -3
- package/lib/typescript/src/app/screens/Suppliers.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/TransactionDetails.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/UpdateBusiness.d.ts +5 -0
- package/lib/typescript/src/app/screens/UpdateBusiness.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/VisionCamera.d.ts +2 -0
- package/lib/typescript/src/app/screens/VisionCamera.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/index.d.ts +56 -11
- package/lib/typescript/src/app/screens/index.d.ts.map +1 -1
- package/lib/typescript/src/app/themes/config.d.ts +60 -8
- package/lib/typescript/src/app/themes/config.d.ts.map +1 -1
- package/package.json +6 -2
- package/src/App.js +30 -34
- package/src/app/api/api.js +11 -0
- package/src/app/assets/Icons/Bill.png +0 -0
- package/src/app/assets/Icons/Bill_Grey.png +0 -0
- package/src/app/assets/Icons/Cash.png +0 -0
- package/src/app/assets/Icons/Cash_Grey.png +0 -0
- package/src/app/assets/Icons/Expense.png +0 -0
- package/src/app/assets/Icons/Expense_Grey.png +0 -0
- package/src/app/assets/Icons/Staff.png +0 -0
- package/src/app/assets/Icons/Stock.png +0 -0
- package/src/app/assets/Icons/Stock_Grey.png +0 -0
- package/src/app/assets/Icons/abc.png +0 -0
- package/src/app/assets/Icons/bank_logo.png +0 -0
- package/src/app/assets/Icons/download_sale.png +0 -0
- package/src/app/assets/Icons/recycle-bin.png +0 -0
- package/src/app/assets/animations/recording.json +1 -0
- package/src/app/assets/animations/success.json +1 -0
- package/src/app/assets/animations/voice_visualization.json +1 -0
- package/src/app/assets/businessCards/card_11.png +0 -0
- package/src/app/assets/businessCards/card_12_bg.png +0 -0
- package/src/app/assets/businessCards/card_wall_01.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_02.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_03.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_04.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_05.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_06.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_07.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_08.jpeg +0 -0
- package/src/app/assets/illustrations/empty.png +0 -0
- package/src/app/assets/illustrations/packages.png +0 -0
- package/src/app/assets/images/Digikhata_idzarHgH0q_0.png +0 -0
- package/src/app/assets/images/bank.png +0 -0
- package/src/app/assets/images/digiLogo-main.png +0 -0
- package/src/app/assets/images/svgviewer-output.svg +57 -0
- package/src/app/assets/images/user.png +0 -0
- package/src/app/assets/oldIcons/BILL.svg +3 -0
- package/src/app/assets/oldIcons/CASH.svg +4 -0
- package/src/app/assets/oldIcons/EXPENSE.svg +6 -0
- package/src/app/assets/oldIcons/STAFF.svg +3 -0
- package/src/app/assets/oldIcons/Sale Active.svg +14 -0
- package/src/app/assets/oldIcons/Stock.svg +5 -0
- package/src/app/assets/svg/BILL.svg +4 -0
- package/src/app/assets/svg/CASH.svg +6 -0
- package/src/app/assets/svg/EXPENSE.svg +5 -0
- package/src/app/assets/svg/More Icon.svg +6 -0
- package/src/app/assets/svg/Payment Icon.svg +4 -0
- package/src/app/assets/svg/Pos.svg +13 -0
- package/src/app/assets/svg/STAFF.svg +5 -0
- package/src/app/assets/svg/Sale Active.svg +8 -0
- package/src/app/assets/svg/Sale Icon.svg +3 -0
- package/src/app/assets/svg/Stock.svg +5 -0
- package/src/app/components/AccountSetupSteps.js +58 -0
- package/src/app/components/AddItemBillParent.js +373 -0
- package/src/app/components/AdditemBillChild.js +1257 -0
- package/src/app/components/Balance.js +211 -114
- package/src/app/components/BillList.js +548 -0
- package/src/app/components/BillSetupSteps.js +56 -0
- package/src/app/components/BottomView.js +39 -0
- package/src/app/components/BusinessCards/Card1.js +160 -0
- package/src/app/components/BusinessCards/Card10.js +209 -0
- package/src/app/components/BusinessCards/Card2.js +148 -0
- package/src/app/components/BusinessCards/Card3.js +147 -0
- package/src/app/components/BusinessCards/Card4.js +147 -0
- package/src/app/components/BusinessCards/Card5.js +151 -0
- package/src/app/components/BusinessCards/Card6.js +157 -0
- package/src/app/components/BusinessCards/Card7.js +146 -0
- package/src/app/components/BusinessCards/Card8.js +170 -0
- package/src/app/components/BusinessCards/Card9.js +209 -0
- package/src/app/components/BusinessCards/index.js +10 -0
- package/src/app/components/CashEntryComponent.js +297 -0
- package/src/app/components/CityModal.js +117 -0
- package/src/app/components/CountryPhoneInput.js +373 -267
- package/src/app/components/CreateExpenseAccount.js +141 -0
- package/src/app/components/CustomStatusBar.js +33 -0
- package/src/app/components/CustomToast.js +143 -0
- package/src/app/components/DeleteBusinessModal.js +196 -0
- package/src/app/components/DiscountTaxModal.js +256 -0
- package/src/app/components/Entries.js +87 -67
- package/src/app/components/ExpenseList.js +507 -0
- package/src/app/components/ExpenseParent.js +446 -0
- package/src/app/components/FloatingInput.js +188 -0
- package/src/app/components/Header.js +121 -0
- package/src/app/components/Loader.js +35 -0
- package/src/app/components/PartyModal.js +213 -0
- package/src/app/components/PickerModal.js +176 -0
- package/src/app/components/SalePaymentModal.js +822 -0
- package/src/app/components/SearchBar.js +225 -47
- package/src/app/components/StockDetailChild.js +461 -0
- package/src/app/components/StockList.js +582 -0
- package/src/app/components/StockReportTransaction.js +192 -0
- package/src/app/components/Transaction.js +277 -86
- package/src/app/components/User.js +188 -80
- package/src/app/components/index.js +51 -13
- package/src/app/database/bill.js +305 -0
- package/src/app/database/business.js +499 -0
- package/src/app/database/cash.js +451 -0
- package/src/app/database/clients.js +1536 -43
- package/src/app/database/expense.js +439 -0
- package/src/app/database/schema.js +115 -4
- package/src/app/database/stock.js +724 -0
- package/src/app/htmlTemplates/htmlTemplates.js +2603 -0
- package/src/app/navigation/BillStack/BillStack.js +38 -0
- package/src/app/navigation/BottomTabs/BottomTabs.js +24 -19
- package/src/app/navigation/BusinessStack/BusinessStack.js +27 -0
- package/src/app/navigation/CashStack/CashStack.js +59 -0
- package/src/app/navigation/EntriesStack/EntriesStack.js +186 -0
- package/src/app/navigation/ExpenseStack.js/ExpenseStack.js +50 -0
- package/src/app/navigation/HomeStack/HomeStack.js +106 -39
- package/src/app/navigation/Root.js +16 -1
- package/src/app/navigation/SaleStack/SaleStack.js +62 -0
- package/src/app/navigation/StockStack/StockStack.js +48 -0
- package/src/app/navigation/index.js +5 -1
- package/src/app/redux/Store.js +2 -0
- package/src/app/redux/reducers/client/client_reducers.js +31 -2
- package/src/app/redux/reducers/client/client_types.js +8 -1
- package/src/app/redux/reducers/user/user_reducers.js +24 -0
- package/src/app/redux/reducers/user/user_types.js +3 -0
- package/src/app/screens/AddBank.js +353 -0
- package/src/app/screens/AddBusiness.js +1161 -0
- package/src/app/screens/AddItems.js +515 -0
- package/src/app/screens/AddScreen.js +525 -165
- package/src/app/screens/All.js +1074 -0
- package/src/app/screens/AllTransactions.js +1138 -0
- package/src/app/screens/Banks.js +1134 -133
- package/src/app/screens/BillDetails.js +989 -0
- package/src/app/screens/BillHome.js +97 -0
- package/src/app/screens/BillParent.js +419 -0
- package/src/app/screens/BusinessDetail.js +939 -0
- package/src/app/screens/CashEntry.js +2913 -0
- package/src/app/screens/CashEntryDetails.js +650 -0
- package/src/app/screens/CashHome.js +594 -0
- package/src/app/screens/CashReport.js +1658 -0
- package/src/app/screens/CashSummary.js +607 -0
- package/src/app/screens/CreateBill.js +2504 -0
- package/src/app/screens/CustomerEntries.js +1578 -350
- package/src/app/screens/Customers.js +1066 -213
- package/src/app/screens/EditCategory.js +316 -0
- package/src/app/screens/EditCategoryStock.js +320 -0
- package/src/app/screens/Entry.js +2555 -585
- package/src/app/screens/ExpenseDetail.js +14 -0
- package/src/app/screens/ExpenseEntries.js +837 -0
- package/src/app/screens/ExpenseEntry.js +2478 -0
- package/src/app/screens/ExpenseEntryDetails.js +612 -0
- package/src/app/screens/ExpenseEntryReport.js +1059 -0
- package/src/app/screens/ExpenseReport.js +1071 -0
- package/src/app/screens/Geolocation.js +435 -0
- package/src/app/screens/GetStarted.js +201 -0
- package/src/app/screens/HomeScreen.js +368 -132
- package/src/app/screens/InBuy.js +918 -0
- package/src/app/screens/ItemEntryDetails.js +582 -0
- package/src/app/screens/LowStock.js +417 -0
- package/src/app/screens/NewPin.js +225 -0
- package/src/app/screens/OutSell.js +2153 -0
- package/src/app/screens/POSSale.js +639 -0
- package/src/app/screens/PinScreen.js +720 -0
- package/src/app/screens/PreviewBill.js +302 -0
- package/src/app/screens/Profile.js +1594 -0
- package/src/app/screens/RateList.js +525 -0
- package/src/app/screens/Report.js +1401 -0
- package/src/app/screens/SaleItemDetail.js +1187 -0
- package/src/app/screens/SaleParent.js +345 -0
- package/src/app/screens/SelectBank.js +220 -0
- package/src/app/screens/SelectBusiness.js +670 -163
- package/src/app/screens/Splash.js +96 -15
- package/src/app/screens/StockChild.js +372 -0
- package/src/app/screens/StockDetail.js +758 -0
- package/src/app/screens/StockParent.js +287 -0
- package/src/app/screens/StockReport.js +1359 -0
- package/src/app/screens/StockValue.js +720 -0
- package/src/app/screens/Suppliers.js +1098 -205
- package/src/app/screens/TransactionDetails.js +1674 -180
- package/src/app/screens/UpdateBusiness.js +837 -0
- package/src/app/screens/VisionCamera.js +54 -0
- package/src/app/screens/index.js +111 -21
- package/src/app/screens/new.html +171 -0
- package/src/app/themes/config.js +431 -114
- package/src/app/utils/city.json +7265 -0
|
@@ -0,0 +1,1071 @@
|
|
|
1
|
+
import {
|
|
2
|
+
View,
|
|
3
|
+
Text,
|
|
4
|
+
StyleSheet,
|
|
5
|
+
TouchableOpacity,
|
|
6
|
+
FlatList,
|
|
7
|
+
Image,
|
|
8
|
+
SafeAreaView,
|
|
9
|
+
Dimensions,
|
|
10
|
+
PermissionsAndroid,
|
|
11
|
+
Platform,
|
|
12
|
+
} from 'react-native';
|
|
13
|
+
import React, {
|
|
14
|
+
useState,
|
|
15
|
+
useEffect,
|
|
16
|
+
useRef,
|
|
17
|
+
useCallback,
|
|
18
|
+
useMemo,
|
|
19
|
+
} from 'react';
|
|
20
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
21
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
22
|
+
import {
|
|
23
|
+
addCommas,
|
|
24
|
+
COLORS,
|
|
25
|
+
FONT_BOLD,
|
|
26
|
+
FONT_MEDIUM,
|
|
27
|
+
FONT_NORMAL,
|
|
28
|
+
formatDateTime,
|
|
29
|
+
formatDateTimeShort,
|
|
30
|
+
formatMyDate,
|
|
31
|
+
formatShortDate,
|
|
32
|
+
fromJsDateToSql,
|
|
33
|
+
HP,
|
|
34
|
+
ICON_SIZES,
|
|
35
|
+
mergeDateTime,
|
|
36
|
+
TEXT_SIZES,
|
|
37
|
+
WP,
|
|
38
|
+
} from '../themes/config';
|
|
39
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
40
|
+
import {
|
|
41
|
+
getClientDetails,
|
|
42
|
+
getClientTransactions,
|
|
43
|
+
getTransactionsByClientType,
|
|
44
|
+
insertPhoneNum,
|
|
45
|
+
setPayDate,
|
|
46
|
+
} from '../database/clients';
|
|
47
|
+
import {
|
|
48
|
+
BottomView,
|
|
49
|
+
CountryPhoneInput,
|
|
50
|
+
SearchBar,
|
|
51
|
+
Transaction,
|
|
52
|
+
} from '../components';
|
|
53
|
+
import Modal from 'react-native-modal';
|
|
54
|
+
import {
|
|
55
|
+
ALL_TRANSACTIONS,
|
|
56
|
+
CLIENT_DETAILS,
|
|
57
|
+
} from '../redux/reducers/client/client_types';
|
|
58
|
+
import DateTimePicker, {
|
|
59
|
+
DateTimePickerAndroid,
|
|
60
|
+
} from '@react-native-community/datetimepicker';
|
|
61
|
+
import ViewShot from 'react-native-view-shot';
|
|
62
|
+
import Share from 'react-native-share';
|
|
63
|
+
import { generatePDF } from 'react-native-html-to-pdf';
|
|
64
|
+
import { viewDocument } from '@react-native-documents/viewer';
|
|
65
|
+
import {
|
|
66
|
+
allTransactionsBanksTemplate,
|
|
67
|
+
allTransactionsTemplate,
|
|
68
|
+
} from '../htmlTemplates/htmlTemplates';
|
|
69
|
+
import RNPrint from 'react-native-print';
|
|
70
|
+
import {
|
|
71
|
+
getExpenseCategoriesWithTotals,
|
|
72
|
+
getExpenseTransactions,
|
|
73
|
+
} from '../database/expense';
|
|
74
|
+
|
|
75
|
+
let deviceH = Dimensions.get('screen').height;
|
|
76
|
+
let windowH = Dimensions.get('window').height;
|
|
77
|
+
|
|
78
|
+
let bottomNavBarH = deviceH - windowH;
|
|
79
|
+
|
|
80
|
+
export default function ExpenseReport({ navigation, route }) {
|
|
81
|
+
const dispatch = useDispatch();
|
|
82
|
+
let eId = route?.params?.eId;
|
|
83
|
+
|
|
84
|
+
const [StartDate, setStartDate] = useState('');
|
|
85
|
+
const [EndDate, setEndDate] = useState('');
|
|
86
|
+
const [searchTerm, setSearchTerm] = useState('');
|
|
87
|
+
const [IsFilterModal, setIsFilterModal] = useState(false);
|
|
88
|
+
const [SelectedFilter, setSelectedFilter] = useState('All');
|
|
89
|
+
const [IsReverse, setIsReverse] = useState(false);
|
|
90
|
+
const [searchText, setSearchText] = useState('');
|
|
91
|
+
const [ExpenseCategoryDetails, setExpenseCategoryDetails] = useState(null);
|
|
92
|
+
const [Entries, setEntries] = useState([]);
|
|
93
|
+
const [ExpenseCategories, setExpenseCategories] = useState([]);
|
|
94
|
+
|
|
95
|
+
const selectBusiness = useSelector((state) => state.client.selected_business);
|
|
96
|
+
|
|
97
|
+
const showStartDate = () => {
|
|
98
|
+
DateTimePickerAndroid.open({
|
|
99
|
+
value: StartDate || new Date(),
|
|
100
|
+
onChange: onChangeStartDate,
|
|
101
|
+
mode: 'date',
|
|
102
|
+
is24Hour: false,
|
|
103
|
+
// Start date can't be after EndDate (if chosen)
|
|
104
|
+
maximumDate: EndDate || new Date(),
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const onChangeStartDate = async (event, selectedDate) => {
|
|
109
|
+
const currentDate = selectedDate;
|
|
110
|
+
if (event?.type == 'set') {
|
|
111
|
+
setStartDate(currentDate);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const showEndDate = () => {
|
|
116
|
+
DateTimePickerAndroid.open({
|
|
117
|
+
value: EndDate || new Date(),
|
|
118
|
+
onChange: onChangeEndDate,
|
|
119
|
+
mode: 'date',
|
|
120
|
+
is24Hour: false,
|
|
121
|
+
...(StartDate ? { minimumDate: StartDate } : {}),
|
|
122
|
+
maximumDate: new Date(),
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const onChangeEndDate = async (event, selectedDate) => {
|
|
127
|
+
const currentDate = selectedDate;
|
|
128
|
+
if (event?.type == 'set') {
|
|
129
|
+
setEndDate(currentDate);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
const getTransactions = () => {
|
|
134
|
+
getExpenseTransactions(selectBusiness?.id, eId)
|
|
135
|
+
.then((res) => {
|
|
136
|
+
// ✅ Sort by entryDate (oldest first)
|
|
137
|
+
const ordered = [...res].sort(
|
|
138
|
+
(a, b) => new Date(a.entryDate) - new Date(b.entryDate)
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
let total = 0;
|
|
142
|
+
|
|
143
|
+
const withBalanceAndName = ordered.map((item) => {
|
|
144
|
+
total += Number(item.amount) || 0;
|
|
145
|
+
|
|
146
|
+
// ✅ Find matching category name using eId
|
|
147
|
+
const category = ExpenseCategories.find((cat) => cat.id === item.eId);
|
|
148
|
+
const categoryName = category ? category.name : '';
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
...item,
|
|
152
|
+
balance: total,
|
|
153
|
+
name: categoryName, // ✅ Add category name
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
setEntries(withBalanceAndName.reverse());
|
|
158
|
+
})
|
|
159
|
+
.catch((err) => console.log('Error:', err));
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
const getExpenseCategoryDetails = async () => {
|
|
163
|
+
let all = await getExpenseCategoriesWithTotals(selectBusiness?.id);
|
|
164
|
+
let filtered = all?.find((item) => item?.id == eId);
|
|
165
|
+
|
|
166
|
+
setExpenseCategoryDetails(filtered);
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
const getTotalAmount = () => {
|
|
170
|
+
return Entries.reduce((total, item) => {
|
|
171
|
+
return total + Number(item?.amount || 0);
|
|
172
|
+
}, 0);
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
useEffect(() => {
|
|
176
|
+
const unsubscribe = navigation.addListener('focus', async () => {
|
|
177
|
+
await getExpenseCategoryDetails();
|
|
178
|
+
getTransactions();
|
|
179
|
+
getExpenseCategories();
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
return unsubscribe;
|
|
183
|
+
}, [navigation]);
|
|
184
|
+
|
|
185
|
+
const applyFilter = () => {
|
|
186
|
+
getExpenseTransactions(
|
|
187
|
+
selectBusiness?.id,
|
|
188
|
+
eId,
|
|
189
|
+
StartDate && fromJsDateToSql(StartDate),
|
|
190
|
+
EndDate && fromJsDateToSql(EndDate)
|
|
191
|
+
)
|
|
192
|
+
.then((res) => {
|
|
193
|
+
const ordered = [...res].sort(
|
|
194
|
+
(a, b) => new Date(a.entryDate) - new Date(b.entryDate)
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
let total = 0;
|
|
198
|
+
const withBalance = ordered.map((item) => {
|
|
199
|
+
total += Number(item.amount) || 0;
|
|
200
|
+
return { ...item, balance: total };
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
// reverse for showing latest first
|
|
204
|
+
setEntries(withBalance.reverse());
|
|
205
|
+
})
|
|
206
|
+
.catch((err) => console.log('Error:', err));
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
useEffect(() => {
|
|
210
|
+
applyFilter();
|
|
211
|
+
}, [StartDate, EndDate]);
|
|
212
|
+
|
|
213
|
+
const showSingleDayDate = () => {
|
|
214
|
+
DateTimePickerAndroid.open({
|
|
215
|
+
value: StartDate || new Date(),
|
|
216
|
+
onChange: onChangeSingleDayDate,
|
|
217
|
+
mode: 'date',
|
|
218
|
+
is24Hour: false,
|
|
219
|
+
maximumDate: new Date(),
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
const onChangeSingleDayDate = async (event, selectedDate) => {
|
|
224
|
+
const currentDate = selectedDate;
|
|
225
|
+
if (event?.type == 'set') {
|
|
226
|
+
setSelectedFilter('Single Day');
|
|
227
|
+
setStartDate(currentDate);
|
|
228
|
+
setEndDate(currentDate);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
const onDateRangePress = () => {
|
|
233
|
+
DateTimePickerAndroid.open({
|
|
234
|
+
value: StartDate || new Date(),
|
|
235
|
+
onChange: (event, selectedStartDate) => {
|
|
236
|
+
if (event.type === 'set' && selectedStartDate) {
|
|
237
|
+
// Save start date
|
|
238
|
+
setStartDate(selectedStartDate);
|
|
239
|
+
|
|
240
|
+
// Open end date picker after a slight delay
|
|
241
|
+
setTimeout(() => {
|
|
242
|
+
DateTimePickerAndroid.open({
|
|
243
|
+
value: EndDate || selectedStartDate,
|
|
244
|
+
onChange: (event2, selectedEndDate) => {
|
|
245
|
+
if (event2.type === 'set' && selectedEndDate) {
|
|
246
|
+
// Validate: end date cannot be before start date
|
|
247
|
+
if (selectedEndDate < selectedStartDate) {
|
|
248
|
+
alert('End date cannot be before Start date');
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
// Save end date
|
|
252
|
+
setEndDate(selectedEndDate);
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
mode: 'date',
|
|
256
|
+
is24Hour: false,
|
|
257
|
+
maximumDate: new Date(),
|
|
258
|
+
// ✅ Only include minimumDate if selectedStartDate exists
|
|
259
|
+
...(selectedStartDate ? { minimumDate: selectedStartDate } : {}),
|
|
260
|
+
});
|
|
261
|
+
}, 300);
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
mode: 'date',
|
|
265
|
+
is24Hour: false,
|
|
266
|
+
maximumDate: new Date(),
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
const filteredEntries = Entries.filter((item) => {
|
|
271
|
+
if (!searchTerm.trim()) return true;
|
|
272
|
+
|
|
273
|
+
const term = searchTerm.toLowerCase();
|
|
274
|
+
|
|
275
|
+
const billNo = item?.details?.includes('_bill_')
|
|
276
|
+
? item?.details?.split('_bill_')[1]?.toLowerCase()
|
|
277
|
+
: '';
|
|
278
|
+
|
|
279
|
+
const details = item?.details?.split('_bill_')[0]?.toLowerCase() || '';
|
|
280
|
+
const amount = String(item?.amount || '').toLowerCase();
|
|
281
|
+
const balance = String(item?.balance || '').toLowerCase();
|
|
282
|
+
const name = String(item?.name || '').toLowerCase();
|
|
283
|
+
|
|
284
|
+
return (
|
|
285
|
+
billNo.includes(term) ||
|
|
286
|
+
details.includes(term) ||
|
|
287
|
+
amount.includes(term) ||
|
|
288
|
+
name.includes(termit) ||
|
|
289
|
+
balance.includes(term)
|
|
290
|
+
);
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
const getExpenseCategories = () => {
|
|
294
|
+
getExpenseCategoriesWithTotals(selectBusiness?.id)
|
|
295
|
+
.then((res) => {
|
|
296
|
+
setExpenseCategories(res);
|
|
297
|
+
})
|
|
298
|
+
.catch((err) => {
|
|
299
|
+
console.error('Failed to fetch invoices:', err);
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
useEffect(() => {
|
|
304
|
+
getTransactions();
|
|
305
|
+
}, [ExpenseCategories]);
|
|
306
|
+
|
|
307
|
+
return (
|
|
308
|
+
<>
|
|
309
|
+
<SafeAreaView style={Styles._mainContainer}>
|
|
310
|
+
<LinearGradient
|
|
311
|
+
style={Styles._headerMain}
|
|
312
|
+
start={{ x: 0, y: 0 }}
|
|
313
|
+
end={{ x: 1, y: 0 }}
|
|
314
|
+
colors={[COLORS.secondaryColor, COLORS.primaryColor]}
|
|
315
|
+
>
|
|
316
|
+
<TouchableOpacity
|
|
317
|
+
activeOpacity={0.8}
|
|
318
|
+
onPress={() => navigation?.goBack()}
|
|
319
|
+
>
|
|
320
|
+
<Ionicons
|
|
321
|
+
name={'chevron-back'}
|
|
322
|
+
color={COLORS.whiteColor}
|
|
323
|
+
size={25}
|
|
324
|
+
/>
|
|
325
|
+
</TouchableOpacity>
|
|
326
|
+
|
|
327
|
+
<Text style={Styles._headerTitle}>
|
|
328
|
+
{ExpenseCategoryDetails
|
|
329
|
+
? 'Report of ' + ExpenseCategoryDetails?.name
|
|
330
|
+
: 'Expenses'}
|
|
331
|
+
</Text>
|
|
332
|
+
</LinearGradient>
|
|
333
|
+
|
|
334
|
+
<LinearGradient
|
|
335
|
+
style={[Styles._headerMain, { height: 30 }]}
|
|
336
|
+
start={{ x: 0, y: 0 }}
|
|
337
|
+
end={{ x: 1, y: 0 }}
|
|
338
|
+
colors={[COLORS.secondaryColor, COLORS.primaryColor]}
|
|
339
|
+
/>
|
|
340
|
+
|
|
341
|
+
<View style={Styles._searchMain}>
|
|
342
|
+
<SearchBar
|
|
343
|
+
containerStyle={{
|
|
344
|
+
height: '90%',
|
|
345
|
+
width: '100%',
|
|
346
|
+
// borderRadius: 0,
|
|
347
|
+
// borderTopWidth: 0,
|
|
348
|
+
// borderBottomWidth: 0,
|
|
349
|
+
// borderLeftWidth: 0,
|
|
350
|
+
// borderRightWidth: 0,
|
|
351
|
+
// borderWidth:0
|
|
352
|
+
}}
|
|
353
|
+
onChangeText={(text) => setSearchTerm(text)}
|
|
354
|
+
filterLabel={SelectedFilter} // 👈 will appear inside input
|
|
355
|
+
onFilterPress={() => setIsFilterModal(true)} // 👈 open modal on click
|
|
356
|
+
/>
|
|
357
|
+
|
|
358
|
+
{/* <TouchableOpacity
|
|
359
|
+
activeOpacity={0.8}
|
|
360
|
+
onPress={() => setIsFilterModal(true)}
|
|
361
|
+
style={{
|
|
362
|
+
flexDirection: 'row',
|
|
363
|
+
justifyContent: 'flex-end',
|
|
364
|
+
alignItems: 'center',
|
|
365
|
+
width: '35%',
|
|
366
|
+
paddingRight: 15,
|
|
367
|
+
gap: 5,
|
|
368
|
+
}}
|
|
369
|
+
>
|
|
370
|
+
<Text
|
|
371
|
+
style={{
|
|
372
|
+
color: COLORS.primaryColor,
|
|
373
|
+
fontFamily: FONT_MEDIUM,
|
|
374
|
+
fontSize: 12,
|
|
375
|
+
}}
|
|
376
|
+
>
|
|
377
|
+
{SelectedFilter}
|
|
378
|
+
</Text>
|
|
379
|
+
<Ionicons
|
|
380
|
+
name={'chevron-down'}
|
|
381
|
+
color={COLORS.primaryColor}
|
|
382
|
+
size={18}
|
|
383
|
+
/>
|
|
384
|
+
</TouchableOpacity> */}
|
|
385
|
+
</View>
|
|
386
|
+
|
|
387
|
+
<View
|
|
388
|
+
style={[
|
|
389
|
+
Styles._searchMain,
|
|
390
|
+
{ position: 'relative', top: 25, alignItems: 'center' },
|
|
391
|
+
]}
|
|
392
|
+
>
|
|
393
|
+
<TouchableOpacity
|
|
394
|
+
activeOpacity={0.8}
|
|
395
|
+
style={{
|
|
396
|
+
flexDirection: 'row',
|
|
397
|
+
width: '50%',
|
|
398
|
+
height: '80%',
|
|
399
|
+
justifyContent: 'center',
|
|
400
|
+
alignItems: 'center',
|
|
401
|
+
gap: 8,
|
|
402
|
+
borderRightColor: COLORS.gray,
|
|
403
|
+
borderRightWidth: 1,
|
|
404
|
+
}}
|
|
405
|
+
onPress={showStartDate}
|
|
406
|
+
>
|
|
407
|
+
<Ionicons
|
|
408
|
+
name={'calendar-outline'}
|
|
409
|
+
color={COLORS.primaryColor}
|
|
410
|
+
size={22}
|
|
411
|
+
/>
|
|
412
|
+
|
|
413
|
+
{StartDate ? (
|
|
414
|
+
<View
|
|
415
|
+
style={{ flexDirection: 'row', alignItems: 'center', gap: 7 }}
|
|
416
|
+
>
|
|
417
|
+
<Text
|
|
418
|
+
style={{
|
|
419
|
+
color: COLORS.primaryColor,
|
|
420
|
+
fontFamily: FONT_NORMAL,
|
|
421
|
+
fontSize: 12,
|
|
422
|
+
}}
|
|
423
|
+
>
|
|
424
|
+
{formatShortDate(StartDate)}
|
|
425
|
+
</Text>
|
|
426
|
+
<TouchableOpacity
|
|
427
|
+
activeOpacity={0.8}
|
|
428
|
+
style={{
|
|
429
|
+
backgroundColor: 'red',
|
|
430
|
+
justifyContent: 'center',
|
|
431
|
+
alignItems: 'center',
|
|
432
|
+
width: 15,
|
|
433
|
+
height: 15,
|
|
434
|
+
borderRadius: 50,
|
|
435
|
+
}}
|
|
436
|
+
onPress={() => {
|
|
437
|
+
setStartDate('');
|
|
438
|
+
setSelectedFilter('All');
|
|
439
|
+
}}
|
|
440
|
+
>
|
|
441
|
+
<Ionicons name={'close'} color={'white'} size={12} />
|
|
442
|
+
</TouchableOpacity>
|
|
443
|
+
</View>
|
|
444
|
+
) : (
|
|
445
|
+
<Text
|
|
446
|
+
style={{
|
|
447
|
+
color: COLORS.primaryColor,
|
|
448
|
+
fontFamily: FONT_NORMAL,
|
|
449
|
+
fontSize: 12,
|
|
450
|
+
}}
|
|
451
|
+
>
|
|
452
|
+
Start Date
|
|
453
|
+
</Text>
|
|
454
|
+
)}
|
|
455
|
+
</TouchableOpacity>
|
|
456
|
+
|
|
457
|
+
<TouchableOpacity
|
|
458
|
+
activeOpacity={0.8}
|
|
459
|
+
style={{
|
|
460
|
+
flexDirection: 'row',
|
|
461
|
+
width: '50%',
|
|
462
|
+
height: '80%',
|
|
463
|
+
justifyContent: 'center',
|
|
464
|
+
alignItems: 'center',
|
|
465
|
+
gap: 8,
|
|
466
|
+
}}
|
|
467
|
+
onPress={showEndDate}
|
|
468
|
+
>
|
|
469
|
+
<Ionicons
|
|
470
|
+
name={'calendar-outline'}
|
|
471
|
+
color={COLORS.primaryColor}
|
|
472
|
+
size={22}
|
|
473
|
+
/>
|
|
474
|
+
|
|
475
|
+
{EndDate ? (
|
|
476
|
+
<View
|
|
477
|
+
style={{ flexDirection: 'row', alignItems: 'center', gap: 7 }}
|
|
478
|
+
>
|
|
479
|
+
<Text
|
|
480
|
+
style={{
|
|
481
|
+
color: COLORS.primaryColor,
|
|
482
|
+
fontFamily: FONT_NORMAL,
|
|
483
|
+
fontSize: 12,
|
|
484
|
+
}}
|
|
485
|
+
>
|
|
486
|
+
{formatShortDate(EndDate)}
|
|
487
|
+
</Text>
|
|
488
|
+
<TouchableOpacity
|
|
489
|
+
activeOpacity={0.8}
|
|
490
|
+
style={{
|
|
491
|
+
backgroundColor: 'red',
|
|
492
|
+
justifyContent: 'center',
|
|
493
|
+
alignItems: 'center',
|
|
494
|
+
width: 15,
|
|
495
|
+
height: 15,
|
|
496
|
+
borderRadius: 50,
|
|
497
|
+
}}
|
|
498
|
+
onPress={() => {
|
|
499
|
+
setEndDate('');
|
|
500
|
+
setSelectedFilter('All');
|
|
501
|
+
}}
|
|
502
|
+
>
|
|
503
|
+
<Ionicons name={'close'} color={'white'} size={12} />
|
|
504
|
+
</TouchableOpacity>
|
|
505
|
+
</View>
|
|
506
|
+
) : (
|
|
507
|
+
<Text
|
|
508
|
+
style={{
|
|
509
|
+
color: COLORS.primaryColor,
|
|
510
|
+
fontFamily: FONT_NORMAL,
|
|
511
|
+
fontSize: 12,
|
|
512
|
+
}}
|
|
513
|
+
>
|
|
514
|
+
End Date
|
|
515
|
+
</Text>
|
|
516
|
+
)}
|
|
517
|
+
</TouchableOpacity>
|
|
518
|
+
</View>
|
|
519
|
+
|
|
520
|
+
<View style={Styles._tableHeader}>
|
|
521
|
+
<View style={Styles._headerCell}>
|
|
522
|
+
<Text style={Styles._headerCellText}>Entries</Text>
|
|
523
|
+
<Text
|
|
524
|
+
style={[
|
|
525
|
+
Styles._headerCellText,
|
|
526
|
+
{ opacity: 1, fontFamily: FONT_MEDIUM },
|
|
527
|
+
]}
|
|
528
|
+
>
|
|
529
|
+
{Entries?.length}
|
|
530
|
+
</Text>
|
|
531
|
+
</View>
|
|
532
|
+
|
|
533
|
+
<View
|
|
534
|
+
style={[
|
|
535
|
+
Styles._headerCell,
|
|
536
|
+
{ width: '30%', alignItems: 'flex-end' },
|
|
537
|
+
]}
|
|
538
|
+
>
|
|
539
|
+
<Text style={Styles._headerCellText}>Expense</Text>
|
|
540
|
+
<Text
|
|
541
|
+
style={[
|
|
542
|
+
Styles._headerCellText,
|
|
543
|
+
{ opacity: 1, fontFamily: FONT_BOLD, color: COLORS.redColor },
|
|
544
|
+
]}
|
|
545
|
+
>
|
|
546
|
+
Rs {addCommas(Number(getTotalAmount()))}
|
|
547
|
+
</Text>
|
|
548
|
+
</View>
|
|
549
|
+
</View>
|
|
550
|
+
|
|
551
|
+
<FlatList
|
|
552
|
+
data={filteredEntries}
|
|
553
|
+
keyExtractor={(item, index) => index.toString()}
|
|
554
|
+
scrollEnabled
|
|
555
|
+
contentContainerStyle={{ paddingBottom: 150 }}
|
|
556
|
+
renderItem={({ item, index }) => (
|
|
557
|
+
<View style={[Styles._tableHeader, { marginTop: 5 }]}>
|
|
558
|
+
<View
|
|
559
|
+
style={[Styles._headerCell, { gap: 8, paddingVertical: 15 }]}
|
|
560
|
+
>
|
|
561
|
+
<View style={{ width: '70%', alignItems: 'flex-start' }}>
|
|
562
|
+
<Text
|
|
563
|
+
style={[
|
|
564
|
+
Styles._headerCellText,
|
|
565
|
+
{
|
|
566
|
+
paddingHorizontal: 8,
|
|
567
|
+
color: COLORS.blackColor,
|
|
568
|
+
opacity: 1,
|
|
569
|
+
},
|
|
570
|
+
]}
|
|
571
|
+
>
|
|
572
|
+
{item?.name}
|
|
573
|
+
</Text>
|
|
574
|
+
</View>
|
|
575
|
+
|
|
576
|
+
<Text style={Styles._headerCellText}>
|
|
577
|
+
{formatDateTime(item?.entryDate)}
|
|
578
|
+
</Text>
|
|
579
|
+
{item?.details?.includes('_bill_') &&
|
|
580
|
+
item?.details?.split('_bill_')[1] ? (
|
|
581
|
+
<View style={{ width: '30%', alignItems: 'flex-start' }}>
|
|
582
|
+
<Text
|
|
583
|
+
style={[Styles._headerCellText, { paddingHorizontal: 8 }]}
|
|
584
|
+
>
|
|
585
|
+
Bill No: {item.details.split('_bill_')[1]}
|
|
586
|
+
</Text>
|
|
587
|
+
</View>
|
|
588
|
+
) : null}
|
|
589
|
+
|
|
590
|
+
{item?.details?.split('_bill_')[0] ? (
|
|
591
|
+
<View style={{ width: '70%', alignItems: 'flex-start' }}>
|
|
592
|
+
<Text
|
|
593
|
+
style={[
|
|
594
|
+
Styles._headerCellText,
|
|
595
|
+
{
|
|
596
|
+
paddingHorizontal: 8,
|
|
597
|
+
color: COLORS.blackColor,
|
|
598
|
+
opacity: 1,
|
|
599
|
+
},
|
|
600
|
+
]}
|
|
601
|
+
>
|
|
602
|
+
{item.details.split('_bill_')[0]?.trim()}
|
|
603
|
+
</Text>
|
|
604
|
+
</View>
|
|
605
|
+
) : null}
|
|
606
|
+
|
|
607
|
+
{item?.attachments && item?.attachments.length > 0 && (
|
|
608
|
+
<Ionicons name={'attach'} color={COLORS.gray} size={22} />
|
|
609
|
+
)}
|
|
610
|
+
</View>
|
|
611
|
+
|
|
612
|
+
<View
|
|
613
|
+
style={[
|
|
614
|
+
Styles._headerCell,
|
|
615
|
+
{
|
|
616
|
+
width: '30%',
|
|
617
|
+
alignItems: 'flex-end',
|
|
618
|
+
backgroundColor: 'rgba(255,0,0,0.05)',
|
|
619
|
+
},
|
|
620
|
+
]}
|
|
621
|
+
>
|
|
622
|
+
<Text
|
|
623
|
+
style={[
|
|
624
|
+
Styles._headerCellText,
|
|
625
|
+
{
|
|
626
|
+
color: COLORS.redColor,
|
|
627
|
+
fontFamily: FONT_BOLD,
|
|
628
|
+
opacity: 1,
|
|
629
|
+
},
|
|
630
|
+
]}
|
|
631
|
+
>
|
|
632
|
+
{addCommas(Number(item?.amount))}
|
|
633
|
+
</Text>
|
|
634
|
+
</View>
|
|
635
|
+
</View>
|
|
636
|
+
)}
|
|
637
|
+
/>
|
|
638
|
+
</SafeAreaView>
|
|
639
|
+
|
|
640
|
+
<Modal
|
|
641
|
+
isVisible={IsFilterModal}
|
|
642
|
+
style={Styles._modal}
|
|
643
|
+
onBackButtonPress={() => setIsFilterModal(false)}
|
|
644
|
+
onBackdropPress={() => setIsFilterModal(false)}
|
|
645
|
+
>
|
|
646
|
+
<View style={Styles._modalMain}>
|
|
647
|
+
<Text style={Styles._modalTitle}>Select Report Duration</Text>
|
|
648
|
+
|
|
649
|
+
<View style={Styles._optionsMain}>
|
|
650
|
+
{/* All */}
|
|
651
|
+
<TouchableOpacity
|
|
652
|
+
style={Styles._option}
|
|
653
|
+
activeOpacity={0.8}
|
|
654
|
+
onPress={() => {
|
|
655
|
+
getTransactions();
|
|
656
|
+
|
|
657
|
+
setSelectedFilter('All');
|
|
658
|
+
setIsFilterModal(false);
|
|
659
|
+
setStartDate('');
|
|
660
|
+
setEndDate('');
|
|
661
|
+
}}
|
|
662
|
+
>
|
|
663
|
+
<Text
|
|
664
|
+
style={[
|
|
665
|
+
Styles._optionTitle,
|
|
666
|
+
{
|
|
667
|
+
color:
|
|
668
|
+
SelectedFilter === 'All'
|
|
669
|
+
? COLORS.primaryColor
|
|
670
|
+
: COLORS.blackColor,
|
|
671
|
+
},
|
|
672
|
+
]}
|
|
673
|
+
>
|
|
674
|
+
All
|
|
675
|
+
</Text>
|
|
676
|
+
<Ionicons
|
|
677
|
+
name={
|
|
678
|
+
SelectedFilter === 'All'
|
|
679
|
+
? 'radio-button-on'
|
|
680
|
+
: 'radio-button-off'
|
|
681
|
+
}
|
|
682
|
+
color={
|
|
683
|
+
SelectedFilter === 'All'
|
|
684
|
+
? COLORS.primaryColor
|
|
685
|
+
: COLORS.darkGrey
|
|
686
|
+
}
|
|
687
|
+
size={25}
|
|
688
|
+
/>
|
|
689
|
+
</TouchableOpacity>
|
|
690
|
+
|
|
691
|
+
{/* This Month */}
|
|
692
|
+
<TouchableOpacity
|
|
693
|
+
style={Styles._option}
|
|
694
|
+
activeOpacity={0.8}
|
|
695
|
+
onPress={() => {
|
|
696
|
+
setSelectedFilter('This Month');
|
|
697
|
+
setIsFilterModal(false);
|
|
698
|
+
let now = new Date();
|
|
699
|
+
|
|
700
|
+
let start = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
701
|
+
|
|
702
|
+
let end = new Date(
|
|
703
|
+
now.getFullYear(),
|
|
704
|
+
now.getMonth() + 1,
|
|
705
|
+
0,
|
|
706
|
+
23,
|
|
707
|
+
59,
|
|
708
|
+
59
|
|
709
|
+
);
|
|
710
|
+
|
|
711
|
+
setStartDate(start);
|
|
712
|
+
setEndDate(end);
|
|
713
|
+
}}
|
|
714
|
+
>
|
|
715
|
+
<Text
|
|
716
|
+
style={[
|
|
717
|
+
Styles._optionTitle,
|
|
718
|
+
{
|
|
719
|
+
color:
|
|
720
|
+
SelectedFilter === 'This Month'
|
|
721
|
+
? COLORS.primaryColor
|
|
722
|
+
: COLORS.blackColor,
|
|
723
|
+
},
|
|
724
|
+
]}
|
|
725
|
+
>
|
|
726
|
+
This Month
|
|
727
|
+
</Text>
|
|
728
|
+
<Ionicons
|
|
729
|
+
name={
|
|
730
|
+
SelectedFilter === 'This Month'
|
|
731
|
+
? 'radio-button-on'
|
|
732
|
+
: 'radio-button-off'
|
|
733
|
+
}
|
|
734
|
+
color={
|
|
735
|
+
SelectedFilter === 'This Month'
|
|
736
|
+
? COLORS.primaryColor
|
|
737
|
+
: COLORS.darkGrey
|
|
738
|
+
}
|
|
739
|
+
size={25}
|
|
740
|
+
/>
|
|
741
|
+
</TouchableOpacity>
|
|
742
|
+
|
|
743
|
+
{/* Single Day */}
|
|
744
|
+
<TouchableOpacity
|
|
745
|
+
style={Styles._option}
|
|
746
|
+
activeOpacity={0.8}
|
|
747
|
+
onPress={() => {
|
|
748
|
+
setIsFilterModal(false);
|
|
749
|
+
showSingleDayDate();
|
|
750
|
+
}}
|
|
751
|
+
>
|
|
752
|
+
<Text
|
|
753
|
+
style={[
|
|
754
|
+
Styles._optionTitle,
|
|
755
|
+
{
|
|
756
|
+
color:
|
|
757
|
+
SelectedFilter === 'Single Day'
|
|
758
|
+
? COLORS.primaryColor
|
|
759
|
+
: COLORS.blackColor,
|
|
760
|
+
},
|
|
761
|
+
]}
|
|
762
|
+
>
|
|
763
|
+
Single Day
|
|
764
|
+
</Text>
|
|
765
|
+
<Ionicons
|
|
766
|
+
name={
|
|
767
|
+
SelectedFilter === 'Single Day'
|
|
768
|
+
? 'radio-button-on'
|
|
769
|
+
: 'radio-button-off'
|
|
770
|
+
}
|
|
771
|
+
color={
|
|
772
|
+
SelectedFilter === 'Single Day'
|
|
773
|
+
? COLORS.primaryColor
|
|
774
|
+
: COLORS.darkGrey
|
|
775
|
+
}
|
|
776
|
+
size={25}
|
|
777
|
+
/>
|
|
778
|
+
</TouchableOpacity>
|
|
779
|
+
|
|
780
|
+
{/* Last Week */}
|
|
781
|
+
<TouchableOpacity
|
|
782
|
+
style={Styles._option}
|
|
783
|
+
activeOpacity={0.8}
|
|
784
|
+
onPress={() => {
|
|
785
|
+
setSelectedFilter('Last Week');
|
|
786
|
+
setIsFilterModal(false);
|
|
787
|
+
|
|
788
|
+
let now = new Date();
|
|
789
|
+
|
|
790
|
+
let dayOfWeek = now.getDay();
|
|
791
|
+
let lastSunday = new Date(now);
|
|
792
|
+
|
|
793
|
+
lastSunday.setDate(lastSunday.getDate() - dayOfWeek - 1);
|
|
794
|
+
lastSunday.setHours(23, 59, 59, 999);
|
|
795
|
+
|
|
796
|
+
let prevSunday = new Date(lastSunday);
|
|
797
|
+
prevSunday.setDate(prevSunday.getDate() - 6);
|
|
798
|
+
prevSunday.setHours(0, 0, 0, 0);
|
|
799
|
+
|
|
800
|
+
setStartDate(prevSunday);
|
|
801
|
+
setEndDate(lastSunday);
|
|
802
|
+
}}
|
|
803
|
+
>
|
|
804
|
+
<Text
|
|
805
|
+
style={[
|
|
806
|
+
Styles._optionTitle,
|
|
807
|
+
{
|
|
808
|
+
color:
|
|
809
|
+
SelectedFilter === 'Last Week'
|
|
810
|
+
? COLORS.primaryColor
|
|
811
|
+
: COLORS.blackColor,
|
|
812
|
+
},
|
|
813
|
+
]}
|
|
814
|
+
>
|
|
815
|
+
Last Week
|
|
816
|
+
</Text>
|
|
817
|
+
<Ionicons
|
|
818
|
+
name={
|
|
819
|
+
SelectedFilter === 'Last Week'
|
|
820
|
+
? 'radio-button-on'
|
|
821
|
+
: 'radio-button-off'
|
|
822
|
+
}
|
|
823
|
+
color={
|
|
824
|
+
SelectedFilter === 'Last Week'
|
|
825
|
+
? COLORS.primaryColor
|
|
826
|
+
: COLORS.darkGrey
|
|
827
|
+
}
|
|
828
|
+
size={25}
|
|
829
|
+
/>
|
|
830
|
+
</TouchableOpacity>
|
|
831
|
+
|
|
832
|
+
{/* Last Month */}
|
|
833
|
+
<TouchableOpacity
|
|
834
|
+
style={Styles._option}
|
|
835
|
+
activeOpacity={0.8}
|
|
836
|
+
onPress={() => {
|
|
837
|
+
setSelectedFilter('Last Month');
|
|
838
|
+
setIsFilterModal(false);
|
|
839
|
+
|
|
840
|
+
let now = new Date();
|
|
841
|
+
|
|
842
|
+
let start = new Date(now.getFullYear(), now.getMonth() - 1, 1);
|
|
843
|
+
start.setHours(0, 0, 0, 0);
|
|
844
|
+
|
|
845
|
+
let end = new Date(now.getFullYear(), now.getMonth(), 0);
|
|
846
|
+
end.setHours(23, 59, 59, 999);
|
|
847
|
+
|
|
848
|
+
setStartDate(start);
|
|
849
|
+
setEndDate(end);
|
|
850
|
+
}}
|
|
851
|
+
>
|
|
852
|
+
<Text
|
|
853
|
+
style={[
|
|
854
|
+
Styles._optionTitle,
|
|
855
|
+
{
|
|
856
|
+
color:
|
|
857
|
+
SelectedFilter === 'Last Month'
|
|
858
|
+
? COLORS.primaryColor
|
|
859
|
+
: COLORS.blackColor,
|
|
860
|
+
},
|
|
861
|
+
]}
|
|
862
|
+
>
|
|
863
|
+
Last Month
|
|
864
|
+
</Text>
|
|
865
|
+
<Ionicons
|
|
866
|
+
name={
|
|
867
|
+
SelectedFilter === 'Last Month'
|
|
868
|
+
? 'radio-button-on'
|
|
869
|
+
: 'radio-button-off'
|
|
870
|
+
}
|
|
871
|
+
color={
|
|
872
|
+
SelectedFilter === 'Last Month'
|
|
873
|
+
? COLORS.primaryColor
|
|
874
|
+
: COLORS.darkGrey
|
|
875
|
+
}
|
|
876
|
+
size={25}
|
|
877
|
+
/>
|
|
878
|
+
</TouchableOpacity>
|
|
879
|
+
|
|
880
|
+
{/* Date Range */}
|
|
881
|
+
<TouchableOpacity
|
|
882
|
+
style={Styles._option}
|
|
883
|
+
activeOpacity={0.8}
|
|
884
|
+
onPress={() => {
|
|
885
|
+
setSelectedFilter('Date Range');
|
|
886
|
+
setIsFilterModal(false);
|
|
887
|
+
|
|
888
|
+
onDateRangePress();
|
|
889
|
+
}}
|
|
890
|
+
>
|
|
891
|
+
<Text
|
|
892
|
+
style={[
|
|
893
|
+
Styles._optionTitle,
|
|
894
|
+
{
|
|
895
|
+
color:
|
|
896
|
+
SelectedFilter === 'Date Range'
|
|
897
|
+
? COLORS.primaryColor
|
|
898
|
+
: COLORS.blackColor,
|
|
899
|
+
},
|
|
900
|
+
]}
|
|
901
|
+
>
|
|
902
|
+
Date Range
|
|
903
|
+
</Text>
|
|
904
|
+
<Ionicons
|
|
905
|
+
name={
|
|
906
|
+
SelectedFilter === 'Date Range'
|
|
907
|
+
? 'radio-button-on'
|
|
908
|
+
: 'radio-button-off'
|
|
909
|
+
}
|
|
910
|
+
color={
|
|
911
|
+
SelectedFilter === 'Date Range'
|
|
912
|
+
? COLORS.primaryColor
|
|
913
|
+
: COLORS.darkGrey
|
|
914
|
+
}
|
|
915
|
+
size={25}
|
|
916
|
+
/>
|
|
917
|
+
</TouchableOpacity>
|
|
918
|
+
</View>
|
|
919
|
+
</View>
|
|
920
|
+
</Modal>
|
|
921
|
+
</>
|
|
922
|
+
);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
const Styles = StyleSheet.create({
|
|
926
|
+
_mainContainer: {
|
|
927
|
+
flex: 1,
|
|
928
|
+
backgroundColor: COLORS.backgroundColor,
|
|
929
|
+
},
|
|
930
|
+
_headerMain: {
|
|
931
|
+
width: WP(100),
|
|
932
|
+
height: 60,
|
|
933
|
+
flexDirection: 'row',
|
|
934
|
+
alignItems: 'center',
|
|
935
|
+
// justifyContent: "space-between",
|
|
936
|
+
paddingHorizontal: Platform.OS == 'android' && 10,
|
|
937
|
+
gap: 15,
|
|
938
|
+
},
|
|
939
|
+
_headerTitle: {
|
|
940
|
+
color: COLORS.whiteColor,
|
|
941
|
+
fontFamily: FONT_NORMAL,
|
|
942
|
+
fontSize: 15,
|
|
943
|
+
},
|
|
944
|
+
_searchMain: {
|
|
945
|
+
width: '95%',
|
|
946
|
+
height: 45,
|
|
947
|
+
backgroundColor: COLORS.whiteColor,
|
|
948
|
+
alignSelf: 'center',
|
|
949
|
+
position: 'absolute',
|
|
950
|
+
top: 60,
|
|
951
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
952
|
+
shadowColor: '#000',
|
|
953
|
+
shadowOffset: {
|
|
954
|
+
width: 0,
|
|
955
|
+
height: 2,
|
|
956
|
+
},
|
|
957
|
+
shadowOpacity: 0.2,
|
|
958
|
+
shadowRadius: 3.84,
|
|
959
|
+
elevation: 5,
|
|
960
|
+
flexDirection: 'row',
|
|
961
|
+
alignItems: 'center',
|
|
962
|
+
overflow: 'hidden',
|
|
963
|
+
},
|
|
964
|
+
_netBalanceMain: {
|
|
965
|
+
width: '100%',
|
|
966
|
+
height: 45,
|
|
967
|
+
backgroundColor: COLORS.whiteColor,
|
|
968
|
+
marginTop: 35,
|
|
969
|
+
flexDirection: 'row',
|
|
970
|
+
justifyContent: 'space-between',
|
|
971
|
+
alignItems: 'center',
|
|
972
|
+
paddingHorizontal: 15,
|
|
973
|
+
},
|
|
974
|
+
_tableCal: {
|
|
975
|
+
color: COLORS.blackColor,
|
|
976
|
+
fontFamily: FONT_NORMAL,
|
|
977
|
+
fontSize: 10,
|
|
978
|
+
},
|
|
979
|
+
_btnsMain: {
|
|
980
|
+
width: WP(100),
|
|
981
|
+
// height: 70,
|
|
982
|
+
backgroundColor: COLORS.whiteColor,
|
|
983
|
+
position: 'absolute',
|
|
984
|
+
// bottom: bottomNavBarH,
|
|
985
|
+
bottom: 0,
|
|
986
|
+
flexDirection: 'row',
|
|
987
|
+
justifyContent: 'space-between',
|
|
988
|
+
// alignItems: "center",
|
|
989
|
+
paddingHorizontal: 10,
|
|
990
|
+
paddingTop: 8,
|
|
991
|
+
},
|
|
992
|
+
_printButton: {
|
|
993
|
+
width: 50,
|
|
994
|
+
height: 50,
|
|
995
|
+
backgroundColor: '#f4f6fb',
|
|
996
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
997
|
+
justifyContent: 'center',
|
|
998
|
+
alignItems: 'center',
|
|
999
|
+
},
|
|
1000
|
+
_btn: {
|
|
1001
|
+
width: '85%',
|
|
1002
|
+
height: 50,
|
|
1003
|
+
borderColor: 'red',
|
|
1004
|
+
borderWidth: 1,
|
|
1005
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1006
|
+
flexDirection: 'row',
|
|
1007
|
+
justifyContent: 'center',
|
|
1008
|
+
alignItems: 'center',
|
|
1009
|
+
gap: 3,
|
|
1010
|
+
},
|
|
1011
|
+
_modal: {
|
|
1012
|
+
margin: 0,
|
|
1013
|
+
padding: 0,
|
|
1014
|
+
justifyContent: 'flex-end',
|
|
1015
|
+
},
|
|
1016
|
+
_modalMain: {
|
|
1017
|
+
width: WP(100),
|
|
1018
|
+
// height: HP(45),
|
|
1019
|
+
backgroundColor: COLORS.whiteColor,
|
|
1020
|
+
borderTopRightRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1021
|
+
borderTopLeftRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1022
|
+
paddingHorizontal: 20,
|
|
1023
|
+
paddingTop: 15,
|
|
1024
|
+
},
|
|
1025
|
+
_modalTitle: {
|
|
1026
|
+
color: COLORS.blackColor,
|
|
1027
|
+
fontFamily: FONT_MEDIUM,
|
|
1028
|
+
fontSize: 14,
|
|
1029
|
+
},
|
|
1030
|
+
_optionsMain: {
|
|
1031
|
+
paddingTop: 15,
|
|
1032
|
+
},
|
|
1033
|
+
_option: {
|
|
1034
|
+
width: '100%',
|
|
1035
|
+
height: 45,
|
|
1036
|
+
// backgroundColor: "red",
|
|
1037
|
+
alignSelf: 'center',
|
|
1038
|
+
flexDirection: 'row',
|
|
1039
|
+
justifyContent: 'space-between',
|
|
1040
|
+
alignItems: 'center',
|
|
1041
|
+
},
|
|
1042
|
+
_optionTitle: {
|
|
1043
|
+
color: COLORS.blackColor,
|
|
1044
|
+
fontFamily: FONT_NORMAL,
|
|
1045
|
+
fontSize: 14,
|
|
1046
|
+
},
|
|
1047
|
+
_tableHeader: {
|
|
1048
|
+
width: '95%',
|
|
1049
|
+
// height: 30,
|
|
1050
|
+
// backgroundColor: "red",
|
|
1051
|
+
flexDirection: 'row',
|
|
1052
|
+
marginTop: 43,
|
|
1053
|
+
borderBottomColor: COLORS.darkGrey,
|
|
1054
|
+
borderBottomWidth: 0.7,
|
|
1055
|
+
alignSelf: 'center',
|
|
1056
|
+
},
|
|
1057
|
+
_headerCell: {
|
|
1058
|
+
width: '70%',
|
|
1059
|
+
// height: '100%',
|
|
1060
|
+
// backgroundColor: "pink",
|
|
1061
|
+
justifyContent: 'center',
|
|
1062
|
+
paddingLeft: 5,
|
|
1063
|
+
paddingVertical: 10,
|
|
1064
|
+
},
|
|
1065
|
+
_headerCellText: {
|
|
1066
|
+
color: COLORS.blackColor,
|
|
1067
|
+
opacity: 0.5,
|
|
1068
|
+
fontFamily: FONT_MEDIUM,
|
|
1069
|
+
fontSize: 12,
|
|
1070
|
+
},
|
|
1071
|
+
});
|