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
|
@@ -1,18 +1,305 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { View, Text, StyleSheet, TouchableOpacity, TextInput, Image } from 'react-native';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { COLORS, FONT_MEDIUM, FONT_NORMAL, WP } from "../themes/config.js";
|
|
3
|
+
import { View, Text, StyleSheet, TouchableOpacity, TextInput, Image, Pressable, Animated, FlatList, Alert } from 'react-native';
|
|
4
|
+
import React, { useRef, useState, useEffect } from 'react';
|
|
5
|
+
import { Button_Text_SIZES, COLORS, FONT_MEDIUM, FONT_NORMAL, HP, Input_Field_SIZES, TEXT_SIZES, WP } from "../themes/config.js";
|
|
6
6
|
import LinearGradient from 'react-native-linear-gradient';
|
|
7
|
-
import Ionicons from
|
|
8
|
-
import { CountryPhoneInput } from "../components/index.js";
|
|
7
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
8
|
+
import { BottomView, CountryPhoneInput, CustomToast, DeleteBusinessModal, Header, Loader } from "../components/index.js";
|
|
9
|
+
import { generatePDF } from 'react-native-html-to-pdf';
|
|
10
|
+
import { viewDocument } from '@react-native-documents/viewer';
|
|
11
|
+
import { getAllBusinesses, selectBusiness, softDeleteBusiness } from "../database/business.js";
|
|
12
|
+
import { Menu, MenuOptions, MenuOption, MenuTrigger } from 'react-native-popup-menu';
|
|
13
|
+
import { getAllClients, getClientsByType } from "../database/clients.js";
|
|
14
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
15
|
+
import { ALL_CLIENTS, HOME_BANKS, HOME_CUSTOMERS, HOME_SUPPLIERS, SELECTED_BUSINESS } from "../redux/reducers/client/client_types.js";
|
|
16
|
+
import { USER_BUSINESS, USER_CLIENTS } from "../redux/reducers/user/user_types.js";
|
|
17
|
+
import axios from 'axios';
|
|
18
|
+
import { GET_CLIENTS_BY_BUSINESS_ID } from "../api/api.js";
|
|
9
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
20
|
export default function SelectBusiness({
|
|
11
21
|
navigation
|
|
12
22
|
}) {
|
|
23
|
+
const dispatch = useDispatch();
|
|
24
|
+
const [menuVisible, setMenuVisible] = useState(false);
|
|
25
|
+
const [toast, setToast] = useState(null);
|
|
26
|
+
const [Loading, setLoading] = useState(false);
|
|
27
|
+
const userBusiness = useSelector(state => state.user.user_business);
|
|
28
|
+
const userData = useSelector(state => state.user.user_data);
|
|
29
|
+
const userClients = useSelector(state => state.user.user_clients);
|
|
30
|
+
const slideAnim = useRef(new Animated.Value(0)).current;
|
|
31
|
+
const [deleteModalVisible, setDeleteModalVisible] = useState(false);
|
|
32
|
+
const [selectedBusinessName, setSelectedBusinessName] = useState('');
|
|
33
|
+
const [selectedBusinessId, setSelectedBusinessId] = useState(null);
|
|
34
|
+
const [Business, setBusiness] = useState([]);
|
|
35
|
+
const openMenu = () => {
|
|
36
|
+
setMenuVisible(true);
|
|
37
|
+
Animated.timing(slideAnim, {
|
|
38
|
+
toValue: 1,
|
|
39
|
+
duration: 200,
|
|
40
|
+
useNativeDriver: true
|
|
41
|
+
}).start();
|
|
42
|
+
};
|
|
43
|
+
const closeMenu = () => {
|
|
44
|
+
Animated.timing(slideAnim, {
|
|
45
|
+
toValue: 0,
|
|
46
|
+
duration: 200,
|
|
47
|
+
useNativeDriver: true
|
|
48
|
+
}).start(() => setMenuVisible(false));
|
|
49
|
+
};
|
|
50
|
+
const toggleMenu = () => {
|
|
51
|
+
if (menuVisible) {
|
|
52
|
+
closeMenu();
|
|
53
|
+
} else {
|
|
54
|
+
openMenu();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const handleDelete = business => {
|
|
58
|
+
closeMenu();
|
|
59
|
+
setSelectedBusinessName(business?.name || '');
|
|
60
|
+
setSelectedBusinessId(business?.id || null);
|
|
61
|
+
setDeleteModalVisible(true);
|
|
62
|
+
};
|
|
63
|
+
const confirmDelete = async () => {
|
|
64
|
+
const finalData = {
|
|
65
|
+
id: selectedBusinessId,
|
|
66
|
+
businessName: selectedBusinessName
|
|
67
|
+
};
|
|
68
|
+
console.log('Final Delete Data:', finalData);
|
|
69
|
+
try {
|
|
70
|
+
const result = await softDeleteBusiness(selectedBusinessId); // <-- your delete API call
|
|
71
|
+
console.log('✅ Business Deleted:', result);
|
|
72
|
+
// Alert.alert(
|
|
73
|
+
// 'Success',
|
|
74
|
+
// `${selectedBusinessName} has been deleted successfully.`
|
|
75
|
+
// );
|
|
76
|
+
setToast({
|
|
77
|
+
type: 'success',
|
|
78
|
+
title: 'Business Deleted',
|
|
79
|
+
message: `${selectedBusinessName} has been deleted successfully.`
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// Close modal and refresh list
|
|
83
|
+
setDeleteModalVisible(false);
|
|
84
|
+
getAllBusinesses().then(async res => {
|
|
85
|
+
await selectBusiness(res[0]?.id);
|
|
86
|
+
dispatch({
|
|
87
|
+
type: SELECTED_BUSINESS,
|
|
88
|
+
payload: res[0]
|
|
89
|
+
});
|
|
90
|
+
setBusiness(res);
|
|
91
|
+
setTimeout(() => {
|
|
92
|
+
navigation?.goBack();
|
|
93
|
+
}, 200);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// Optionally go back or show success message
|
|
97
|
+
// navigation.goBack();
|
|
98
|
+
} catch (error) {
|
|
99
|
+
console.error('❌ Error deleting business:', error);
|
|
100
|
+
// Alert.alert(
|
|
101
|
+
// 'Error',
|
|
102
|
+
// 'Something went wrong while deleting your business.'
|
|
103
|
+
// );
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const slideDownStyle = {
|
|
107
|
+
transform: [{
|
|
108
|
+
translateY: slideAnim.interpolate({
|
|
109
|
+
inputRange: [0, 1],
|
|
110
|
+
outputRange: [-20, 0] // slide down from above
|
|
111
|
+
})
|
|
112
|
+
}]
|
|
113
|
+
};
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
const unsubscribe = navigation.addListener('focus', async () => {
|
|
116
|
+
try {
|
|
117
|
+
const businesses = await getAllBusinesses();
|
|
118
|
+
const allClients = await getAllClients();
|
|
119
|
+
if (!businesses || businesses.length === 0) {
|
|
120
|
+
console.log('No businesses found');
|
|
121
|
+
setBusiness([]);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// ✅ Map each business with its number of clients
|
|
126
|
+
const updatedBusinesses = businesses.map(business => {
|
|
127
|
+
const clientCount = allClients.filter(client => client?.business_id === business?.id).length;
|
|
128
|
+
return {
|
|
129
|
+
...business,
|
|
130
|
+
noOfClients: clientCount
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
setBusiness(updatedBusinesses);
|
|
134
|
+
} catch (err) {
|
|
135
|
+
console.error('Error in focus listener:', err);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
return unsubscribe;
|
|
139
|
+
}, [navigation]);
|
|
140
|
+
const onSelectBusiness = async item => {
|
|
141
|
+
try {
|
|
142
|
+
await selectBusiness(item?.id);
|
|
143
|
+
|
|
144
|
+
// 1️⃣ Get all businesses and clients
|
|
145
|
+
const businesses = await getAllBusinesses();
|
|
146
|
+
const allClients = await getAllClients();
|
|
147
|
+
|
|
148
|
+
// 2️⃣ Add client counts to each business
|
|
149
|
+
const updatedBusinesses = businesses.map(business => {
|
|
150
|
+
const clientCount = allClients.filter(client => client?.business_id === business?.id).length;
|
|
151
|
+
return {
|
|
152
|
+
...business,
|
|
153
|
+
noOfClients: clientCount
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// 3️⃣ Find selected business (from updated list)
|
|
158
|
+
const filtered = updatedBusinesses.find(b => b.id === item?.id);
|
|
159
|
+
if (!filtered) {
|
|
160
|
+
console.warn('Business not found!');
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// 4️⃣ Load categorized clients (type 0=customers, 1=suppliers, 2=banks)
|
|
165
|
+
const [customers, suppliers, banks, allClientsForBusiness] = await Promise.all([getClientsByType(0, null, null, filtered.id), getClientsByType(1, null, null, filtered.id), getClientsByType(2, null, null, filtered.id), getAllClients(null, filtered.id)]);
|
|
166
|
+
|
|
167
|
+
// 5️⃣ Dispatch data
|
|
168
|
+
dispatch({
|
|
169
|
+
type: HOME_CUSTOMERS,
|
|
170
|
+
payload: customers
|
|
171
|
+
});
|
|
172
|
+
dispatch({
|
|
173
|
+
type: HOME_SUPPLIERS,
|
|
174
|
+
payload: suppliers
|
|
175
|
+
});
|
|
176
|
+
dispatch({
|
|
177
|
+
type: HOME_BANKS,
|
|
178
|
+
payload: banks
|
|
179
|
+
});
|
|
180
|
+
dispatch({
|
|
181
|
+
type: ALL_CLIENTS,
|
|
182
|
+
payload: allClientsForBusiness
|
|
183
|
+
});
|
|
184
|
+
dispatch({
|
|
185
|
+
type: SELECTED_BUSINESS,
|
|
186
|
+
payload: filtered
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
// 6️⃣ Update UI and navigate
|
|
190
|
+
setBusiness(updatedBusinesses);
|
|
191
|
+
|
|
192
|
+
// Optional logs
|
|
193
|
+
console.log({
|
|
194
|
+
filtered,
|
|
195
|
+
customersCount: customers?.length,
|
|
196
|
+
suppliersCount: suppliers?.length,
|
|
197
|
+
banksCount: banks?.length,
|
|
198
|
+
allClientsCount: allClientsForBusiness?.length
|
|
199
|
+
});
|
|
200
|
+
setTimeout(() => {
|
|
201
|
+
navigation.goBack();
|
|
202
|
+
}, 200);
|
|
203
|
+
} catch (error) {
|
|
204
|
+
console.error('Error in onSelectBusiness:', error);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
// const onSelectBusiness = async (item) => {
|
|
209
|
+
// try {
|
|
210
|
+
// setLoading(true)
|
|
211
|
+
|
|
212
|
+
// // 1️⃣ Get all businesses and clients
|
|
213
|
+
// const businesses = userBusiness?.data || [];
|
|
214
|
+
// const allClients = userClients?.data || [];
|
|
215
|
+
|
|
216
|
+
// // 2️⃣ Add client counts to each business and update isSelected
|
|
217
|
+
// const updatedBusinesses = businesses.map((business) => {
|
|
218
|
+
|
|
219
|
+
// return {
|
|
220
|
+
// ...business,
|
|
221
|
+
// noOfClients: business?.clients?.length,
|
|
222
|
+
// isSelected: business?.id === item?.id,
|
|
223
|
+
// };
|
|
224
|
+
// });
|
|
225
|
+
|
|
226
|
+
// // 3️⃣ Find selected business (from updated list)
|
|
227
|
+
// const filtered = updatedBusinesses.find((b) => b.id === item?.id);
|
|
228
|
+
|
|
229
|
+
// dispatch({
|
|
230
|
+
// type: USER_BUSINESS,
|
|
231
|
+
// payload: { data: updatedBusinesses },
|
|
232
|
+
// })
|
|
233
|
+
|
|
234
|
+
// dispatch({
|
|
235
|
+
// type: SELECTED_BUSINESS,
|
|
236
|
+
// payload: filtered,
|
|
237
|
+
// })
|
|
238
|
+
|
|
239
|
+
// const clientResponse = await axios.get(
|
|
240
|
+
// `${GET_CLIENTS_BY_BUSINESS_ID}/${item?.id}`,
|
|
241
|
+
// {
|
|
242
|
+
// headers: {
|
|
243
|
+
// Authorization: `Bearer ${userData?.azureToken}`,
|
|
244
|
+
// },
|
|
245
|
+
// }
|
|
246
|
+
// );
|
|
247
|
+
|
|
248
|
+
// const allClientss = clientResponse?.data?.[0]?.data;
|
|
249
|
+
|
|
250
|
+
// dispatch({
|
|
251
|
+
// type: USER_CLIENTS,
|
|
252
|
+
// payload: allClientss
|
|
253
|
+
// })
|
|
254
|
+
|
|
255
|
+
// if (!filtered) {
|
|
256
|
+
// console.warn('Business not found!');
|
|
257
|
+
// return;
|
|
258
|
+
// }
|
|
259
|
+
|
|
260
|
+
// // 4️⃣ Load categorized clients (type 0=customers, 1=suppliers, 2=banks)
|
|
261
|
+
// // const [customers, suppliers, banks, allClientsForBusiness] =
|
|
262
|
+
// // await Promise.all([
|
|
263
|
+
// // getClientsByType(0, null, null, filtered.id),
|
|
264
|
+
// // getClientsByType(1, null, null, filtered.id),
|
|
265
|
+
// // getClientsByType(2, null, null, filtered.id),
|
|
266
|
+
// // getAllClients(null, filtered.id),
|
|
267
|
+
// // ]);
|
|
268
|
+
|
|
269
|
+
// // // 5️⃣ Dispatch data
|
|
270
|
+
// // dispatch({ type: HOME_CUSTOMERS, payload: customers });
|
|
271
|
+
// // dispatch({ type: HOME_SUPPLIERS, payload: suppliers });
|
|
272
|
+
// // dispatch({ type: HOME_BANKS, payload: banks });
|
|
273
|
+
// // dispatch({ type: ALL_CLIENTS, payload: allClientsForBusiness });
|
|
274
|
+
// // dispatch({ type: SELECTED_BUSINESS, payload: filtered });
|
|
275
|
+
|
|
276
|
+
// // // 6️⃣ Update UI and navigate
|
|
277
|
+
// // setBusiness(updatedBusinesses);
|
|
278
|
+
|
|
279
|
+
// // // Optional logs
|
|
280
|
+
// // console.log({
|
|
281
|
+
// // filtered,
|
|
282
|
+
// // customersCount: customers?.length,
|
|
283
|
+
// // suppliersCount: suppliers?.length,
|
|
284
|
+
// // banksCount: banks?.length,
|
|
285
|
+
// // allClientsCount: allClientsForBusiness?.length,
|
|
286
|
+
// // });
|
|
287
|
+
|
|
288
|
+
// setTimeout(() => {
|
|
289
|
+
// setLoading(false)
|
|
290
|
+
// navigation.goBack();
|
|
291
|
+
// }, 200);
|
|
292
|
+
// } catch (error) {
|
|
293
|
+
// setLoading(false)
|
|
294
|
+
// console.error('Error in onSelectBusiness:', error);
|
|
295
|
+
// }
|
|
296
|
+
// };
|
|
297
|
+
|
|
13
298
|
return /*#__PURE__*/_jsxs(View, {
|
|
14
299
|
style: Styles._mainContainers,
|
|
15
|
-
children: [/*#__PURE__*/_jsx(
|
|
300
|
+
children: [/*#__PURE__*/_jsx(Loader, {
|
|
301
|
+
isVisible: Loading
|
|
302
|
+
}), /*#__PURE__*/_jsx(LinearGradient, {
|
|
16
303
|
start: {
|
|
17
304
|
x: 0,
|
|
18
305
|
y: 0
|
|
@@ -21,77 +308,129 @@ export default function SelectBusiness({
|
|
|
21
308
|
x: 1,
|
|
22
309
|
y: 0
|
|
23
310
|
},
|
|
24
|
-
colors: [COLORS.
|
|
311
|
+
colors: [COLORS.secondaryColor, COLORS.primaryColor],
|
|
25
312
|
style: Styles._linearGradient,
|
|
26
|
-
children: /*#__PURE__*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
activeOpacity: 0.8,
|
|
30
|
-
onPress: () => {
|
|
31
|
-
navigation.goBack();
|
|
32
|
-
},
|
|
33
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
34
|
-
name: "chevron-back",
|
|
35
|
-
color: COLORS.whiteColor,
|
|
36
|
-
size: 20
|
|
37
|
-
})
|
|
38
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
39
|
-
style: Styles._title,
|
|
40
|
-
children: "Select Business"
|
|
41
|
-
})]
|
|
313
|
+
children: /*#__PURE__*/_jsx(Header, {
|
|
314
|
+
navigation: navigation,
|
|
315
|
+
title: 'Select Business'
|
|
42
316
|
})
|
|
43
|
-
}), /*#__PURE__*/
|
|
317
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
44
318
|
style: Styles._contentMain,
|
|
45
|
-
children:
|
|
319
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
46
320
|
style: {
|
|
47
|
-
width:
|
|
48
|
-
alignItems:
|
|
321
|
+
width: '100%',
|
|
322
|
+
alignItems: 'center',
|
|
49
323
|
gap: 12
|
|
50
324
|
},
|
|
51
|
-
children: /*#__PURE__*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
325
|
+
children: /*#__PURE__*/_jsx(FlatList, {
|
|
326
|
+
data: Business
|
|
327
|
+
// data={userBusiness?.data?.filter(item => item?.is_deleted === "0")}
|
|
328
|
+
,
|
|
329
|
+
contentContainerStyle: {
|
|
330
|
+
paddingBottom: 150
|
|
331
|
+
},
|
|
332
|
+
renderItem: ({
|
|
333
|
+
item,
|
|
334
|
+
index
|
|
335
|
+
}) => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
336
|
+
activeOpacity: 0.8,
|
|
337
|
+
onPress: async () => {
|
|
338
|
+
await onSelectBusiness(item);
|
|
57
339
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
style: Styles.
|
|
68
|
-
|
|
340
|
+
style: Styles.businessMain,
|
|
341
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
342
|
+
style: {
|
|
343
|
+
flexDirection: 'row',
|
|
344
|
+
gap: 10
|
|
345
|
+
},
|
|
346
|
+
children: [/*#__PURE__*/_jsx(Image, {
|
|
347
|
+
source: require('../assets/images/digiKhataSolo256.png'),
|
|
348
|
+
resizeMode: "contain",
|
|
349
|
+
style: Styles._logo
|
|
350
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
351
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
352
|
+
style: Styles._txt,
|
|
353
|
+
children: item?.name
|
|
354
|
+
}), item?.noOfClients > 0 && /*#__PURE__*/_jsxs(Text, {
|
|
355
|
+
style: Styles._txt2,
|
|
356
|
+
children: [item?.noOfClients, " Customers"]
|
|
357
|
+
})]
|
|
69
358
|
})]
|
|
359
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
360
|
+
style: {
|
|
361
|
+
flexDirection: 'row',
|
|
362
|
+
gap: 10
|
|
363
|
+
},
|
|
364
|
+
children: /*#__PURE__*/_jsxs(Menu, {
|
|
365
|
+
children: [/*#__PURE__*/_jsxs(MenuTrigger, {
|
|
366
|
+
customStyles: {
|
|
367
|
+
TriggerTouchableComponent: TouchableOpacity,
|
|
368
|
+
triggerWrapper: Styles.triggerWrapper
|
|
369
|
+
},
|
|
370
|
+
children: [item?.isSelected && item?.isSelected != 0 && /*#__PURE__*/_jsx(Ionicons, {
|
|
371
|
+
name: "checkmark",
|
|
372
|
+
color: COLORS.primaryColor,
|
|
373
|
+
size: 20
|
|
374
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
375
|
+
name: "ellipsis-vertical",
|
|
376
|
+
color: COLORS.blackColor,
|
|
377
|
+
size: 20
|
|
378
|
+
})]
|
|
379
|
+
}), /*#__PURE__*/_jsxs(MenuOptions, {
|
|
380
|
+
optionsContainerStyle: Styles.menuContainer,
|
|
381
|
+
children: [/*#__PURE__*/_jsx(MenuOption, {
|
|
382
|
+
onSelect: () => navigation.navigate('BusinessDetail', {
|
|
383
|
+
businessId: item?.id
|
|
384
|
+
}),
|
|
385
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
386
|
+
style: Styles.menuText,
|
|
387
|
+
children: "Update Business"
|
|
388
|
+
})
|
|
389
|
+
}), Business && Business?.length != 1 && /*#__PURE__*/_jsx(MenuOption, {
|
|
390
|
+
onSelect: () => handleDelete(item),
|
|
391
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
392
|
+
style: Styles.menuText,
|
|
393
|
+
children: "Delete Business"
|
|
394
|
+
})
|
|
395
|
+
})]
|
|
396
|
+
})]
|
|
397
|
+
})
|
|
70
398
|
})]
|
|
71
|
-
})
|
|
72
|
-
style: {
|
|
73
|
-
flexDirection: "row",
|
|
74
|
-
gap: 10
|
|
75
|
-
},
|
|
76
|
-
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
77
|
-
name: "checkmark",
|
|
78
|
-
color: COLORS.primaryColor,
|
|
79
|
-
size: 20
|
|
80
|
-
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
81
|
-
name: "ellipsis-vertical",
|
|
82
|
-
color: COLORS.grey,
|
|
83
|
-
size: 20
|
|
84
|
-
})]
|
|
85
|
-
})]
|
|
399
|
+
})
|
|
86
400
|
})
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
401
|
+
})
|
|
402
|
+
}), /*#__PURE__*/_jsx(BottomView, {
|
|
403
|
+
style: Styles.bottomBar,
|
|
404
|
+
children: /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
405
|
+
style: Styles.totalButton,
|
|
406
|
+
onPress: () => {
|
|
407
|
+
navigation.navigate('BusinessStack');
|
|
408
|
+
},
|
|
409
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
410
|
+
name: "add",
|
|
411
|
+
size: 24,
|
|
412
|
+
color: "#fff" // You can change this to match your theme
|
|
413
|
+
,
|
|
414
|
+
style: {
|
|
415
|
+
marginRight: 10
|
|
416
|
+
}
|
|
417
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
91
418
|
style: Styles._continueBtnTxt,
|
|
92
419
|
children: "Add New Business"
|
|
93
|
-
})
|
|
94
|
-
})
|
|
420
|
+
}), ' ']
|
|
421
|
+
})
|
|
422
|
+
}), /*#__PURE__*/_jsx(DeleteBusinessModal, {
|
|
423
|
+
visible: deleteModalVisible,
|
|
424
|
+
businessName: selectedBusinessName // ✅ show correct name in modal
|
|
425
|
+
,
|
|
426
|
+
selectedBusinessId: selectedBusinessId,
|
|
427
|
+
onCancel: () => setDeleteModalVisible(false),
|
|
428
|
+
onConfirm: confirmDelete
|
|
429
|
+
}), toast && /*#__PURE__*/_jsx(CustomToast, {
|
|
430
|
+
type: toast.type,
|
|
431
|
+
title: toast.title,
|
|
432
|
+
message: toast.message,
|
|
433
|
+
onClose: () => setToast(null)
|
|
95
434
|
})]
|
|
96
435
|
});
|
|
97
436
|
}
|
|
@@ -99,34 +438,34 @@ const Styles = StyleSheet.create({
|
|
|
99
438
|
_mainContainers: {
|
|
100
439
|
flex: 1,
|
|
101
440
|
backgroundColor: COLORS.backgroundColor,
|
|
102
|
-
alignItems:
|
|
441
|
+
alignItems: 'center'
|
|
103
442
|
},
|
|
104
443
|
_linearGradient: {
|
|
105
444
|
width: WP(100),
|
|
106
445
|
height: 80,
|
|
107
|
-
alignItems:
|
|
446
|
+
alignItems: 'center'
|
|
108
447
|
},
|
|
109
448
|
_titleMain: {
|
|
110
449
|
width: WP(94),
|
|
111
450
|
height: 30,
|
|
112
451
|
// backgroundColor: "red",
|
|
113
|
-
flexDirection:
|
|
114
|
-
alignItems:
|
|
452
|
+
flexDirection: 'row',
|
|
453
|
+
alignItems: 'center',
|
|
115
454
|
marginTop: 10
|
|
116
455
|
},
|
|
117
456
|
_title: {
|
|
118
457
|
color: COLORS.whiteColor,
|
|
119
458
|
fontFamily: FONT_NORMAL,
|
|
120
|
-
fontSize:
|
|
121
|
-
marginLeft:
|
|
459
|
+
fontSize: 18,
|
|
460
|
+
marginLeft: 20
|
|
122
461
|
},
|
|
123
462
|
_contentMain: {
|
|
124
|
-
width: WP(
|
|
125
|
-
height:
|
|
463
|
+
width: WP(95),
|
|
464
|
+
height: '90%',
|
|
126
465
|
backgroundColor: COLORS.whiteColor,
|
|
127
|
-
position:
|
|
466
|
+
position: 'absolute',
|
|
128
467
|
top: 50,
|
|
129
|
-
shadowColor:
|
|
468
|
+
shadowColor: '#000',
|
|
130
469
|
shadowOffset: {
|
|
131
470
|
width: 0,
|
|
132
471
|
height: 2
|
|
@@ -134,16 +473,16 @@ const Styles = StyleSheet.create({
|
|
|
134
473
|
shadowOpacity: 0.2,
|
|
135
474
|
shadowRadius: 3.84,
|
|
136
475
|
elevation: 5,
|
|
137
|
-
borderRadius:
|
|
138
|
-
alignItems:
|
|
139
|
-
justifyContent:
|
|
476
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
477
|
+
alignItems: 'center',
|
|
478
|
+
justifyContent: 'space-between',
|
|
140
479
|
paddingVertical: 12
|
|
141
480
|
},
|
|
142
481
|
_input: {
|
|
143
|
-
width:
|
|
482
|
+
width: '95%',
|
|
144
483
|
height: 50,
|
|
145
484
|
backgroundColor: COLORS.whiteColor,
|
|
146
|
-
borderRadius:
|
|
485
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
147
486
|
paddingLeft: 12,
|
|
148
487
|
borderColor: COLORS.grey,
|
|
149
488
|
borderWidth: 1,
|
|
@@ -152,23 +491,31 @@ const Styles = StyleSheet.create({
|
|
|
152
491
|
fontSize: 13
|
|
153
492
|
},
|
|
154
493
|
_continueBtn: {
|
|
155
|
-
width:
|
|
494
|
+
width: '100%',
|
|
156
495
|
height: 50,
|
|
157
496
|
backgroundColor: COLORS.primaryColor,
|
|
158
|
-
borderRadius:
|
|
159
|
-
justifyContent:
|
|
160
|
-
alignItems:
|
|
497
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
498
|
+
justifyContent: 'center',
|
|
499
|
+
alignItems: 'center',
|
|
500
|
+
marginBottom: 40,
|
|
501
|
+
// bottom: HP(1),
|
|
502
|
+
flexDirection: 'row'
|
|
503
|
+
},
|
|
504
|
+
_btnsMain: {
|
|
505
|
+
backgroundColor: 'transparent',
|
|
506
|
+
flexDirection: 'row',
|
|
507
|
+
justifyContent: 'space-between'
|
|
161
508
|
},
|
|
162
509
|
_continueBtnTxt: {
|
|
163
510
|
color: COLORS.whiteColor,
|
|
164
511
|
fontFamily: FONT_NORMAL,
|
|
165
|
-
fontSize:
|
|
512
|
+
fontSize: Button_Text_SIZES.Button_Text
|
|
166
513
|
},
|
|
167
514
|
businessMain: {
|
|
168
|
-
width:
|
|
169
|
-
height:
|
|
515
|
+
width: '97%',
|
|
516
|
+
height: Input_Field_SIZES.Input_Field,
|
|
170
517
|
backgroundColor: COLORS.whiteColor,
|
|
171
|
-
shadowColor:
|
|
518
|
+
shadowColor: '#000',
|
|
172
519
|
shadowOffset: {
|
|
173
520
|
width: 0,
|
|
174
521
|
height: 2
|
|
@@ -176,11 +523,13 @@ const Styles = StyleSheet.create({
|
|
|
176
523
|
shadowOpacity: 0.2,
|
|
177
524
|
shadowRadius: 3.84,
|
|
178
525
|
elevation: 5,
|
|
179
|
-
borderRadius:
|
|
180
|
-
flexDirection:
|
|
181
|
-
alignItems:
|
|
182
|
-
justifyContent:
|
|
183
|
-
paddingHorizontal: 10
|
|
526
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
527
|
+
flexDirection: 'row',
|
|
528
|
+
alignItems: 'center',
|
|
529
|
+
justifyContent: 'space-between',
|
|
530
|
+
paddingHorizontal: 10,
|
|
531
|
+
marginVertical: 5,
|
|
532
|
+
alignSelf: 'center'
|
|
184
533
|
},
|
|
185
534
|
_logo: {
|
|
186
535
|
width: 30,
|
|
@@ -196,6 +545,61 @@ const Styles = StyleSheet.create({
|
|
|
196
545
|
opacity: 0.6,
|
|
197
546
|
fontFamily: FONT_NORMAL,
|
|
198
547
|
fontSize: 11
|
|
548
|
+
},
|
|
549
|
+
triggerWrapper: {
|
|
550
|
+
padding: 6,
|
|
551
|
+
flexDirection: 'row',
|
|
552
|
+
gap: WP(5)
|
|
553
|
+
},
|
|
554
|
+
menuContainer: {
|
|
555
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
556
|
+
// paddingVertical: 5,
|
|
557
|
+
backgroundColor: '#fff',
|
|
558
|
+
elevation: 6,
|
|
559
|
+
shadowColor: '#000',
|
|
560
|
+
shadowOpacity: 0.15,
|
|
561
|
+
shadowRadius: 4,
|
|
562
|
+
shadowOffset: {
|
|
563
|
+
width: 0,
|
|
564
|
+
height: 2
|
|
565
|
+
},
|
|
566
|
+
minWidth: 160
|
|
567
|
+
},
|
|
568
|
+
menuText: {
|
|
569
|
+
fontSize: 15,
|
|
570
|
+
paddingVertical: 5,
|
|
571
|
+
paddingHorizontal: 14,
|
|
572
|
+
color: COLORS.blackColor
|
|
573
|
+
},
|
|
574
|
+
bottomBar: {
|
|
575
|
+
position: 'absolute',
|
|
576
|
+
bottom: 0,
|
|
577
|
+
left: 0,
|
|
578
|
+
right: 0,
|
|
579
|
+
backgroundColor: '#fff',
|
|
580
|
+
borderTopLeftRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
581
|
+
borderTopRightRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
582
|
+
alignItems: 'center',
|
|
583
|
+
justifyContent: 'center',
|
|
584
|
+
paddingVertical: 10,
|
|
585
|
+
elevation: 10
|
|
586
|
+
},
|
|
587
|
+
totalButton: {
|
|
588
|
+
borderWidth: 1,
|
|
589
|
+
marginBottom: 10,
|
|
590
|
+
flexDirection: 'row',
|
|
591
|
+
borderColor: '#FF3B30',
|
|
592
|
+
backgroundColor: COLORS.primaryColor,
|
|
593
|
+
borderRadius: 100,
|
|
594
|
+
width: '100%',
|
|
595
|
+
height: 50,
|
|
596
|
+
alignItems: 'center',
|
|
597
|
+
justifyContent: 'center'
|
|
598
|
+
},
|
|
599
|
+
totalText: {
|
|
600
|
+
color: COLORS.whiteColor,
|
|
601
|
+
fontFamily: FONT_NORMAL,
|
|
602
|
+
fontSize: 13
|
|
199
603
|
}
|
|
200
604
|
});
|
|
201
605
|
//# sourceMappingURL=SelectBusiness.js.map
|