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,170 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, ImageBackground, StyleSheet } from 'react-native';
|
|
3
|
+
import { COLORS, FONT_BOLD, FONT_NORMAL } from '../../themes/config';
|
|
4
|
+
|
|
5
|
+
export default function Card8({
|
|
6
|
+
businessName,
|
|
7
|
+
businessCategory,
|
|
8
|
+
businessType,
|
|
9
|
+
ownerName,
|
|
10
|
+
phoneNumber,
|
|
11
|
+
email,
|
|
12
|
+
city,
|
|
13
|
+
address,
|
|
14
|
+
createAddress,
|
|
15
|
+
businessTypeDetail,
|
|
16
|
+
businessCategoryDetail,
|
|
17
|
+
}) {
|
|
18
|
+
console.log(
|
|
19
|
+
'check_card_data',
|
|
20
|
+
businessName,
|
|
21
|
+
businessCategory,
|
|
22
|
+
businessType,
|
|
23
|
+
ownerName,
|
|
24
|
+
phoneNumber,
|
|
25
|
+
email,
|
|
26
|
+
createAddress,
|
|
27
|
+
address
|
|
28
|
+
);
|
|
29
|
+
const typeData = [
|
|
30
|
+
{ id: '1', title: 'Retailer/ Shop' },
|
|
31
|
+
{ id: '2', title: 'Wholesaler' },
|
|
32
|
+
{ id: '3', title: 'Distributor' },
|
|
33
|
+
{ id: '4', title: 'Manufacturer' },
|
|
34
|
+
{ id: '5', title: 'Services' },
|
|
35
|
+
{ id: '6', title: 'Other' },
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
const categoryData = [
|
|
39
|
+
{ id: '1', title: 'Kirana/Grocery' },
|
|
40
|
+
{ id: '2', title: 'Textile/Fashion' },
|
|
41
|
+
{ id: '3', title: 'Medical' },
|
|
42
|
+
{ id: '4', title: 'Electronics' },
|
|
43
|
+
{ id: '5', title: 'Mobile' },
|
|
44
|
+
{ id: '6', title: 'Automobile' },
|
|
45
|
+
{ id: '7', title: 'Sports' },
|
|
46
|
+
{ id: '8', title: 'Kids/Toys' },
|
|
47
|
+
{ id: '9', title: 'Hardware/Tools' },
|
|
48
|
+
{ id: '10', title: 'Others' },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
const typeTitle =
|
|
52
|
+
typeData.find((t) => t.id === businessType)?.title || 'Type';
|
|
53
|
+
const categoryTitle =
|
|
54
|
+
categoryData.find((c) => c.id === businessCategory)?.title || 'Category';
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<ImageBackground
|
|
58
|
+
source={require('../../assets/businessCards/card_wall_08.jpeg')}
|
|
59
|
+
resizeMode="contain"
|
|
60
|
+
style={styles.bg}
|
|
61
|
+
imageStyle={{ borderRadius: 12 }}
|
|
62
|
+
>
|
|
63
|
+
<View style={styles.container}>
|
|
64
|
+
{/* Top Center */}
|
|
65
|
+
<View style={styles.topCenter}>
|
|
66
|
+
<Text style={styles.businessName}>
|
|
67
|
+
{businessName || 'business name'}
|
|
68
|
+
</Text>
|
|
69
|
+
{businessType && businessCategory && (
|
|
70
|
+
<Text style={styles.category}>
|
|
71
|
+
{typeTitle} / {categoryTitle}
|
|
72
|
+
</Text>
|
|
73
|
+
)}
|
|
74
|
+
|
|
75
|
+
{businessTypeDetail && businessCategoryDetail && (
|
|
76
|
+
<Text style={styles.category}>
|
|
77
|
+
{businessTypeDetail} / {businessCategoryDetail}
|
|
78
|
+
</Text>
|
|
79
|
+
)}
|
|
80
|
+
</View>
|
|
81
|
+
|
|
82
|
+
{/* Bottom Row */}
|
|
83
|
+
<View style={styles.bottomRow}>
|
|
84
|
+
{/* Left Side */}
|
|
85
|
+
<View style={styles.leftSide}>
|
|
86
|
+
<Text style={styles.ownerName}>{ownerName || 'name'}</Text>
|
|
87
|
+
<Text style={styles.contactText}>{phoneNumber || 'number'}</Text>
|
|
88
|
+
<Text style={styles.contactText}>{email || 'email'}</Text>
|
|
89
|
+
</View>
|
|
90
|
+
|
|
91
|
+
{/* Right Side */}
|
|
92
|
+
<View style={styles.rightSide}>
|
|
93
|
+
<Text
|
|
94
|
+
style={styles.contactTextRight}
|
|
95
|
+
numberOfLines={3}
|
|
96
|
+
ellipsizeMode="tail"
|
|
97
|
+
>
|
|
98
|
+
{createAddress?.formattedAddress || address || 'address'}
|
|
99
|
+
</Text>
|
|
100
|
+
<Text style={styles.contactTextRight}>{city || 'city'}</Text>
|
|
101
|
+
</View>
|
|
102
|
+
</View>
|
|
103
|
+
</View>
|
|
104
|
+
</ImageBackground>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const styles = StyleSheet.create({
|
|
109
|
+
bg: {
|
|
110
|
+
width: '100%',
|
|
111
|
+
height: '100%',
|
|
112
|
+
justifyContent: 'center',
|
|
113
|
+
},
|
|
114
|
+
container: {
|
|
115
|
+
flex: 1,
|
|
116
|
+
paddingHorizontal: 20,
|
|
117
|
+
paddingVertical: 15,
|
|
118
|
+
justifyContent: 'space-between',
|
|
119
|
+
},
|
|
120
|
+
topCenter: {
|
|
121
|
+
alignItems: 'center',
|
|
122
|
+
marginTop: '30%',
|
|
123
|
+
},
|
|
124
|
+
businessName: {
|
|
125
|
+
color: COLORS.redColor,
|
|
126
|
+
fontSize: 14,
|
|
127
|
+
fontFamily: FONT_NORMAL,
|
|
128
|
+
textAlign: 'center',
|
|
129
|
+
// textTransform: 'lowercase',
|
|
130
|
+
},
|
|
131
|
+
category: {
|
|
132
|
+
color: COLORS.redColor,
|
|
133
|
+
fontSize: 10,
|
|
134
|
+
fontFamily: FONT_NORMAL,
|
|
135
|
+
textAlign: 'center',
|
|
136
|
+
// fontStyle: 'italic',
|
|
137
|
+
textTransform: 'lowercase',
|
|
138
|
+
},
|
|
139
|
+
bottomRow: {
|
|
140
|
+
flexDirection: 'row',
|
|
141
|
+
justifyContent: 'space-between',
|
|
142
|
+
// alignItems: 'flex-end',
|
|
143
|
+
bottom: '10%',
|
|
144
|
+
},
|
|
145
|
+
leftSide: {
|
|
146
|
+
alignItems: 'flex-start',
|
|
147
|
+
},
|
|
148
|
+
rightSide: {
|
|
149
|
+
alignItems: 'flex-end',
|
|
150
|
+
maxWidth: '45%',
|
|
151
|
+
},
|
|
152
|
+
ownerName: {
|
|
153
|
+
color: COLORS.blackColor,
|
|
154
|
+
fontSize: 14,
|
|
155
|
+
fontFamily: FONT_NORMAL,
|
|
156
|
+
},
|
|
157
|
+
contactText: {
|
|
158
|
+
color: COLORS.blackColor,
|
|
159
|
+
fontSize: 10,
|
|
160
|
+
fontFamily: FONT_NORMAL,
|
|
161
|
+
marginTop: 2,
|
|
162
|
+
},
|
|
163
|
+
contactTextRight: {
|
|
164
|
+
color: COLORS.blackColor,
|
|
165
|
+
fontSize: 8,
|
|
166
|
+
fontFamily: FONT_NORMAL,
|
|
167
|
+
marginTop: 2,
|
|
168
|
+
textAlign: 'right',
|
|
169
|
+
},
|
|
170
|
+
});
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, ImageBackground, StyleSheet } from 'react-native';
|
|
3
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
4
|
+
import {
|
|
5
|
+
COLORS,
|
|
6
|
+
FONT_BOLD,
|
|
7
|
+
FONT_MEDIUM,
|
|
8
|
+
FONT_NORMAL,
|
|
9
|
+
WP,
|
|
10
|
+
} from '../../themes/config';
|
|
11
|
+
|
|
12
|
+
export default function Card9({
|
|
13
|
+
businessName,
|
|
14
|
+
businessType,
|
|
15
|
+
businessCategory,
|
|
16
|
+
ownerName,
|
|
17
|
+
phoneNumber,
|
|
18
|
+
email,
|
|
19
|
+
address,
|
|
20
|
+
createAddress,
|
|
21
|
+
city,
|
|
22
|
+
businessTypeDetail,
|
|
23
|
+
businessCategoryDetail,
|
|
24
|
+
}) {
|
|
25
|
+
const typeData = [
|
|
26
|
+
{ id: '1', title: 'Retailer/ Shop' },
|
|
27
|
+
{ id: '2', title: 'Wholesaler' },
|
|
28
|
+
{ id: '3', title: 'Distributor' },
|
|
29
|
+
{ id: '4', title: 'Manufacturer' },
|
|
30
|
+
{ id: '5', title: 'Services' },
|
|
31
|
+
{ id: '6', title: 'Other' },
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
const categoryData = [
|
|
35
|
+
{ id: '1', title: 'Kirana/Grocery' },
|
|
36
|
+
{ id: '2', title: 'Textile/Fashion' },
|
|
37
|
+
{ id: '3', title: 'Medical' },
|
|
38
|
+
{ id: '4', title: 'Electronics' },
|
|
39
|
+
{ id: '5', title: 'Mobile' },
|
|
40
|
+
{ id: '6', title: 'Automobile' },
|
|
41
|
+
{ id: '7', title: 'Sports' },
|
|
42
|
+
{ id: '8', title: 'Kids/Toys' },
|
|
43
|
+
{ id: '9', title: 'Hardware/Tools' },
|
|
44
|
+
{ id: '10', title: 'Others' },
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
const typeTitle =
|
|
48
|
+
typeData.find((t) => t.id === businessType)?.title || 'Type';
|
|
49
|
+
const categoryTitle =
|
|
50
|
+
categoryData.find((c) => c.id === businessCategory)?.title || 'Category';
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<ImageBackground
|
|
54
|
+
source={require('../../assets/businessCards/card_11.png')}
|
|
55
|
+
resizeMode="contain"
|
|
56
|
+
style={styles.bg}
|
|
57
|
+
imageStyle={styles.imageStyle}
|
|
58
|
+
>
|
|
59
|
+
<View style={styles.overlay}>
|
|
60
|
+
{/* Left Side */}
|
|
61
|
+
<View style={styles.leftSection}>
|
|
62
|
+
<Text style={styles.businessName}>
|
|
63
|
+
{businessName || 'business name'}
|
|
64
|
+
</Text>
|
|
65
|
+
{businessType && businessCategory && (
|
|
66
|
+
<Text style={styles.category}>
|
|
67
|
+
{typeTitle} / {categoryTitle}
|
|
68
|
+
</Text>
|
|
69
|
+
)}
|
|
70
|
+
|
|
71
|
+
{businessTypeDetail && businessCategoryDetail && (
|
|
72
|
+
<Text style={styles.category}>
|
|
73
|
+
{businessTypeDetail} / {businessCategoryDetail}
|
|
74
|
+
</Text>
|
|
75
|
+
)}
|
|
76
|
+
</View>
|
|
77
|
+
|
|
78
|
+
{/* Divider */}
|
|
79
|
+
<View style={styles.divider} />
|
|
80
|
+
|
|
81
|
+
{/* Right Side */}
|
|
82
|
+
<View style={styles.rightSection}>
|
|
83
|
+
<View style={styles.infoRow}>
|
|
84
|
+
<View style={styles.iconBg}>
|
|
85
|
+
<Ionicons
|
|
86
|
+
name="person-outline"
|
|
87
|
+
size={12}
|
|
88
|
+
color={COLORS.primaryColor}
|
|
89
|
+
/>
|
|
90
|
+
</View>
|
|
91
|
+
<Text
|
|
92
|
+
style={[
|
|
93
|
+
styles.infoText,
|
|
94
|
+
{ fontFamily: FONT_MEDIUM, fontSize: 16 },
|
|
95
|
+
]}
|
|
96
|
+
>
|
|
97
|
+
{ownerName || 'name'}
|
|
98
|
+
</Text>
|
|
99
|
+
</View>
|
|
100
|
+
<View style={styles.infoRow}>
|
|
101
|
+
<View style={styles.iconBg}>
|
|
102
|
+
<Ionicons
|
|
103
|
+
name="call-outline"
|
|
104
|
+
size={12}
|
|
105
|
+
color={COLORS.primaryColor}
|
|
106
|
+
/>
|
|
107
|
+
</View>
|
|
108
|
+
<Text style={styles.infoText}>{phoneNumber || 'number'}</Text>
|
|
109
|
+
</View>
|
|
110
|
+
<View style={styles.infoRow}>
|
|
111
|
+
<View style={styles.iconBg}>
|
|
112
|
+
<Ionicons
|
|
113
|
+
name="mail-outline"
|
|
114
|
+
size={12}
|
|
115
|
+
color={COLORS.primaryColor}
|
|
116
|
+
/>
|
|
117
|
+
</View>
|
|
118
|
+
<Text style={styles.infoText}>{email || 'email'}</Text>
|
|
119
|
+
</View>
|
|
120
|
+
<View style={styles.parentInfo}>
|
|
121
|
+
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
122
|
+
<View style={styles.iconBg}>
|
|
123
|
+
<Ionicons
|
|
124
|
+
name="location-outline"
|
|
125
|
+
size={12}
|
|
126
|
+
color={COLORS.primaryColor}
|
|
127
|
+
/>
|
|
128
|
+
</View>
|
|
129
|
+
<Text style={styles.infoText}>
|
|
130
|
+
{createAddress?.formattedAddress || address || 'address'}
|
|
131
|
+
</Text>
|
|
132
|
+
</View>
|
|
133
|
+
<Text style={styles.infoTextCity}>{city || 'city'}</Text>
|
|
134
|
+
</View>
|
|
135
|
+
</View>
|
|
136
|
+
</View>
|
|
137
|
+
</ImageBackground>
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const styles = StyleSheet.create({
|
|
142
|
+
bg: {
|
|
143
|
+
width: '100%',
|
|
144
|
+
height: '100%',
|
|
145
|
+
justifyContent: 'center',
|
|
146
|
+
},
|
|
147
|
+
imageStyle: {
|
|
148
|
+
borderRadius: 10,
|
|
149
|
+
},
|
|
150
|
+
overlay: {
|
|
151
|
+
flex: 1,
|
|
152
|
+
flexDirection: 'row',
|
|
153
|
+
alignItems: 'center',
|
|
154
|
+
justifyContent: 'space-between',
|
|
155
|
+
paddingHorizontal: 20,
|
|
156
|
+
// backgroundColor: 'rgba(0,0,0,0.4)',
|
|
157
|
+
},
|
|
158
|
+
leftSection: {
|
|
159
|
+
// flex: 1,
|
|
160
|
+
width: '50%',
|
|
161
|
+
paddingRight: 10,
|
|
162
|
+
},
|
|
163
|
+
rightSection: {
|
|
164
|
+
flex: 1.2,
|
|
165
|
+
paddingLeft: 10,
|
|
166
|
+
},
|
|
167
|
+
iconBg: {
|
|
168
|
+
backgroundColor: COLORS.whiteColor,
|
|
169
|
+
padding: 6,
|
|
170
|
+
borderRadius: 50,
|
|
171
|
+
},
|
|
172
|
+
businessName: {
|
|
173
|
+
color: COLORS.whiteColor,
|
|
174
|
+
fontSize: 14,
|
|
175
|
+
marginBottom: 4,
|
|
176
|
+
fontFamily: FONT_MEDIUM,
|
|
177
|
+
},
|
|
178
|
+
categoryText: {
|
|
179
|
+
color: COLORS.whiteColor,
|
|
180
|
+
fontSize: 10,
|
|
181
|
+
// paddingLeft: WP(5),
|
|
182
|
+
},
|
|
183
|
+
divider: {
|
|
184
|
+
width: 3,
|
|
185
|
+
backgroundColor: COLORS.whiteColor,
|
|
186
|
+
height: '65%',
|
|
187
|
+
},
|
|
188
|
+
infoRow: {
|
|
189
|
+
flexDirection: 'row',
|
|
190
|
+
alignItems: 'center',
|
|
191
|
+
marginBottom: 6,
|
|
192
|
+
},
|
|
193
|
+
infoText: {
|
|
194
|
+
color: COLORS.whiteColor,
|
|
195
|
+
fontSize: 9,
|
|
196
|
+
marginLeft: 10,
|
|
197
|
+
},
|
|
198
|
+
infoTextCity: {
|
|
199
|
+
color: COLORS.whiteColor,
|
|
200
|
+
fontSize: 9,
|
|
201
|
+
marginLeft: '20.5%',
|
|
202
|
+
},
|
|
203
|
+
category: {
|
|
204
|
+
color: COLORS.whiteColor,
|
|
205
|
+
fontSize: 10,
|
|
206
|
+
fontFamily: FONT_NORMAL,
|
|
207
|
+
// marginTop: 2,
|
|
208
|
+
},
|
|
209
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as Card1 } from './Card1';
|
|
2
|
+
export { default as Card2 } from './Card2';
|
|
3
|
+
export { default as Card3 } from './Card3';
|
|
4
|
+
export { default as Card4 } from './Card4';
|
|
5
|
+
export { default as Card5 } from './Card5.js';
|
|
6
|
+
export { default as Card6 } from './Card6';
|
|
7
|
+
export { default as Card7 } from './Card7';
|
|
8
|
+
export { default as Card8 } from './Card8';
|
|
9
|
+
export { default as Card9 } from './Card9';
|
|
10
|
+
export { default as Card10 } from './Card10';
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
2
|
+
import React, { useState, useEffect } from 'react';
|
|
3
|
+
import {
|
|
4
|
+
addCommas,
|
|
5
|
+
COLORS,
|
|
6
|
+
FONT_MEDIUM,
|
|
7
|
+
FONT_NORMAL,
|
|
8
|
+
formatDateTime,
|
|
9
|
+
formatDateTimeShort,
|
|
10
|
+
formatMyDate,
|
|
11
|
+
formatTime,
|
|
12
|
+
TEXT_SIZES,
|
|
13
|
+
} from '../themes/config';
|
|
14
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
15
|
+
import { getCashCategoryById } from '../database/cash';
|
|
16
|
+
import { useNavigation } from '@react-navigation/native';
|
|
17
|
+
import { getClientDetails } from '../database/clients';
|
|
18
|
+
import { AutoSizeText, ResizeTextMode } from 'react-native-auto-size-text';
|
|
19
|
+
import CashIcon from '../assets/svg/CASH.svg';
|
|
20
|
+
import ExpenseIcon from '../assets/oldIcons/EXPENSE.svg';
|
|
21
|
+
import {
|
|
22
|
+
getExpenseCategoriesWithTotals,
|
|
23
|
+
getExpenseTransactions,
|
|
24
|
+
} from '../database/expense';
|
|
25
|
+
import { useSelector } from 'react-redux';
|
|
26
|
+
|
|
27
|
+
export default function CashEntryComponent({
|
|
28
|
+
date,
|
|
29
|
+
category,
|
|
30
|
+
notes,
|
|
31
|
+
isAttachment,
|
|
32
|
+
item,
|
|
33
|
+
}) {
|
|
34
|
+
const selectBusiness = useSelector((state) => state.client.selected_business);
|
|
35
|
+
|
|
36
|
+
const navigation = useNavigation();
|
|
37
|
+
let billNo = notes?.split('_')[2];
|
|
38
|
+
const [catName, setCatName] = useState('');
|
|
39
|
+
const [CustomerName, setCustomerName] = useState('');
|
|
40
|
+
const [ItemDetails, setItemDetails] = useState(null);
|
|
41
|
+
const [ExpenseCategoryDetails, setExpenseCategoryDetails] = useState(null);
|
|
42
|
+
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
const fetchCat = async () => {
|
|
45
|
+
const res = await getCashCategoryById(category);
|
|
46
|
+
await clientName(item?.customerId);
|
|
47
|
+
setCatName(res?.name || '');
|
|
48
|
+
};
|
|
49
|
+
fetchCat();
|
|
50
|
+
}, [category]);
|
|
51
|
+
|
|
52
|
+
const clientName = async (id) => {
|
|
53
|
+
let details = await getClientDetails(id);
|
|
54
|
+
setCustomerName(details?.type == 2 ? details?.phone : details?.name);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const getExpenseItem = async () => {
|
|
58
|
+
let parsed = JSON.parse(item?.fromExpense);
|
|
59
|
+
|
|
60
|
+
let all = await getExpenseTransactions(selectBusiness?.id);
|
|
61
|
+
let filtered = all.find((item) => item?.id == parsed?.expenseId);
|
|
62
|
+
|
|
63
|
+
setItemDetails(filtered);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const getExpenseCategoryDetails = async () => {
|
|
67
|
+
let parsed = JSON.parse(item?.fromExpense);
|
|
68
|
+
|
|
69
|
+
let all = await getExpenseCategoriesWithTotals(selectBusiness?.id);
|
|
70
|
+
let filtered = all?.find((item) => item?.id == parsed?.expenseCategoryId);
|
|
71
|
+
|
|
72
|
+
setExpenseCategoryDetails(filtered);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
const fetchExpenseItem = async () => {
|
|
77
|
+
if (item?.fromExpense) {
|
|
78
|
+
await getExpenseItem();
|
|
79
|
+
await getExpenseCategoryDetails();
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
fetchExpenseItem();
|
|
84
|
+
}, [item]);
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<TouchableOpacity
|
|
88
|
+
style={[
|
|
89
|
+
Styles._searchMain,
|
|
90
|
+
{
|
|
91
|
+
borderBottomColor: COLORS.gray,
|
|
92
|
+
borderBottomWidth: 0.5,
|
|
93
|
+
// paddingVertical: 10,
|
|
94
|
+
},
|
|
95
|
+
]}
|
|
96
|
+
activeOpacity={0.8}
|
|
97
|
+
onPress={() => {
|
|
98
|
+
if (item?.fromSale) {
|
|
99
|
+
navigation.navigate('PreviewBill', { invoiceId: item?.fromSale?.split("_")[1], fromSale: true });
|
|
100
|
+
} else {
|
|
101
|
+
navigation.navigate("CashEntryDetails", { entryId: item?.id })
|
|
102
|
+
}
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
<View style={Styles._tableHeaderOne}>
|
|
106
|
+
<Text style={[Styles._headerSub, { fontFamily: FONT_MEDIUM }]}>{formatTime(date)}</Text>
|
|
107
|
+
{
|
|
108
|
+
item?.fromSale &&
|
|
109
|
+
<Text style={{ color: COLORS.blackColor, fontFamily: FONT_NORMAL, fontSize: 12, backgroundColor: COLORS.lightGrey, alignSelf: "flex-start", paddingVertical: 2, paddingHorizontal: 5, borderRadius: 100 }}>POS</Text>
|
|
110
|
+
}
|
|
111
|
+
{
|
|
112
|
+
item?.fromExpense &&
|
|
113
|
+
<View style={[Styles._categoryChip, { backgroundColor: COLORS.whiteColor, flexDirection: "row", borderRadius: 5, paddingHorizontal: 2, gap: 5 }]}>
|
|
114
|
+
<ExpenseIcon width={25} height={25} />
|
|
115
|
+
|
|
116
|
+
<Text
|
|
117
|
+
style={{
|
|
118
|
+
color: COLORS.blackColor,
|
|
119
|
+
fontFamily: FONT_NORMAL,
|
|
120
|
+
fontSize: 12,
|
|
121
|
+
}}
|
|
122
|
+
>
|
|
123
|
+
{ExpenseCategoryDetails?.name}
|
|
124
|
+
</Text>
|
|
125
|
+
</View>
|
|
126
|
+
}
|
|
127
|
+
{item?.customerId && (
|
|
128
|
+
<View
|
|
129
|
+
style={[
|
|
130
|
+
Styles._categoryChip,
|
|
131
|
+
{
|
|
132
|
+
backgroundColor: COLORS.whiteColor,
|
|
133
|
+
borderColor: COLORS.primaryColor,
|
|
134
|
+
flexDirection: 'row',
|
|
135
|
+
gap: 5,
|
|
136
|
+
paddingHorizontal: 5,
|
|
137
|
+
},
|
|
138
|
+
]}
|
|
139
|
+
>
|
|
140
|
+
<Ionicons
|
|
141
|
+
name={'person-circle-outline'}
|
|
142
|
+
color={COLORS.primaryColor}
|
|
143
|
+
size={16}
|
|
144
|
+
/>
|
|
145
|
+
<Text style={[Styles._chipText, { color: COLORS.primaryColor }]}>
|
|
146
|
+
{CustomerName}
|
|
147
|
+
</Text>
|
|
148
|
+
</View>
|
|
149
|
+
)}
|
|
150
|
+
|
|
151
|
+
{category && (
|
|
152
|
+
<View style={Styles._categoryChip}>
|
|
153
|
+
<Text style={Styles._chipText}>{catName}</Text>
|
|
154
|
+
</View>
|
|
155
|
+
)}
|
|
156
|
+
|
|
157
|
+
{notes && notes !== '_bill_' && (
|
|
158
|
+
<Text numberOfLines={1} style={Styles._notes}>
|
|
159
|
+
{notes.split('_')[0]}
|
|
160
|
+
</Text>
|
|
161
|
+
)}
|
|
162
|
+
|
|
163
|
+
{billNo ? (
|
|
164
|
+
<Text numberOfLines={1} style={Styles._notes}>
|
|
165
|
+
Bill No. {billNo}
|
|
166
|
+
</Text>
|
|
167
|
+
) : null}
|
|
168
|
+
|
|
169
|
+
{/* <Text style={Styles._notes}>Bill No. 007 notes</Text> */}
|
|
170
|
+
|
|
171
|
+
{isAttachment && (
|
|
172
|
+
<Ionicons
|
|
173
|
+
name={'attach'}
|
|
174
|
+
color={COLORS.darkGrey}
|
|
175
|
+
size={25}
|
|
176
|
+
style={{ marginTop: 5 }}
|
|
177
|
+
/>
|
|
178
|
+
)}
|
|
179
|
+
</View>
|
|
180
|
+
{/* 🔴 CASH OUT Section */}
|
|
181
|
+
<View
|
|
182
|
+
style={[
|
|
183
|
+
Styles._tableHeaderTwo,
|
|
184
|
+
{
|
|
185
|
+
alignItems: 'flex-end',
|
|
186
|
+
backgroundColor: COLORS.lightRedColor
|
|
187
|
+
},
|
|
188
|
+
]}
|
|
189
|
+
>
|
|
190
|
+
<AutoSizeText
|
|
191
|
+
style={[
|
|
192
|
+
Styles._headerSub,
|
|
193
|
+
{ color: COLORS.redColor, textAlign: 'center' },
|
|
194
|
+
]}
|
|
195
|
+
fontSize={TEXT_SIZES.CARD_AMOUNT}
|
|
196
|
+
numberOfLines={1}
|
|
197
|
+
mode={ResizeTextMode.max_lines}
|
|
198
|
+
>
|
|
199
|
+
{item?.cashOUT && item?.cashOUT != 0
|
|
200
|
+
? `${addCommas(item?.cashOUT)}`
|
|
201
|
+
: ''}
|
|
202
|
+
</AutoSizeText>
|
|
203
|
+
</View>
|
|
204
|
+
|
|
205
|
+
{/* 🟢 CASH IN Section */}
|
|
206
|
+
<View
|
|
207
|
+
style={[
|
|
208
|
+
Styles._tableHeaderTwo,
|
|
209
|
+
{
|
|
210
|
+
alignItems: 'flex-end',
|
|
211
|
+
backgroundColor: COLORS.lightGreenColor
|
|
212
|
+
},
|
|
213
|
+
]}
|
|
214
|
+
>
|
|
215
|
+
<AutoSizeText
|
|
216
|
+
style={[
|
|
217
|
+
Styles._headerSub,
|
|
218
|
+
{ color: COLORS.greenColor },
|
|
219
|
+
]}
|
|
220
|
+
fontSize={TEXT_SIZES.CARD_AMOUNT}
|
|
221
|
+
numberOfLines={1}
|
|
222
|
+
mode={ResizeTextMode.max_lines}
|
|
223
|
+
>
|
|
224
|
+
{item?.cashIN && item?.cashIN != 0
|
|
225
|
+
? `${addCommas(item?.cashIN)}`
|
|
226
|
+
: ''}
|
|
227
|
+
</AutoSizeText>
|
|
228
|
+
</View>
|
|
229
|
+
</TouchableOpacity>
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const Styles = StyleSheet.create({
|
|
234
|
+
_searchMain: {
|
|
235
|
+
width: '100%',
|
|
236
|
+
flexDirection: 'row',
|
|
237
|
+
justifyContent: 'space-between',
|
|
238
|
+
// alignItems: 'center',
|
|
239
|
+
// paddingHorizontal: 10,
|
|
240
|
+
backgroundColor: COLORS.whiteColor,
|
|
241
|
+
minHeight: 50
|
|
242
|
+
},
|
|
243
|
+
_tableHeaderOne: {
|
|
244
|
+
width: '50%',
|
|
245
|
+
// height: 50,
|
|
246
|
+
// backgroundColor: "red",
|
|
247
|
+
paddingHorizontal: 10,
|
|
248
|
+
paddingVertical: 10,
|
|
249
|
+
|
|
250
|
+
justifyContent: 'center',
|
|
251
|
+
},
|
|
252
|
+
_tableHeaderTwo: {
|
|
253
|
+
width: '25%',
|
|
254
|
+
// height: 100,
|
|
255
|
+
paddingHorizontal: 10,
|
|
256
|
+
// paddingVertical: 20,
|
|
257
|
+
|
|
258
|
+
// backgroundColor: "green",
|
|
259
|
+
justifyContent: 'center',
|
|
260
|
+
},
|
|
261
|
+
_tableDate: {
|
|
262
|
+
color: COLORS.blackColor,
|
|
263
|
+
fontFamily: FONT_MEDIUM,
|
|
264
|
+
fontSize: 14,
|
|
265
|
+
},
|
|
266
|
+
_headerSub: {
|
|
267
|
+
color: COLORS.darkGrey,
|
|
268
|
+
fontFamily: FONT_NORMAL,
|
|
269
|
+
fontSize: TEXT_SIZES.CARD_AMOUNT,
|
|
270
|
+
},
|
|
271
|
+
_categoryChip: {
|
|
272
|
+
backgroundColor: COLORS.lightGrey,
|
|
273
|
+
paddingHorizontal: 12,
|
|
274
|
+
// height: 20,
|
|
275
|
+
// flexDirection: "row",
|
|
276
|
+
justifyContent: 'center',
|
|
277
|
+
alignItems: 'center',
|
|
278
|
+
borderRadius: 100,
|
|
279
|
+
borderColor: COLORS.lightGrey,
|
|
280
|
+
borderWidth: 1,
|
|
281
|
+
alignSelf: 'flex-start',
|
|
282
|
+
marginTop: 5,
|
|
283
|
+
// width:"20%"
|
|
284
|
+
// gap: 5,
|
|
285
|
+
},
|
|
286
|
+
_chipText: {
|
|
287
|
+
color: COLORS.blackColor,
|
|
288
|
+
fontFamily: FONT_NORMAL,
|
|
289
|
+
fontSize: 11,
|
|
290
|
+
},
|
|
291
|
+
_notes: {
|
|
292
|
+
color: COLORS.blackColor,
|
|
293
|
+
fontFamily: FONT_MEDIUM,
|
|
294
|
+
fontSize: 13,
|
|
295
|
+
marginTop: 5,
|
|
296
|
+
},
|
|
297
|
+
});
|