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,53 +1,132 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { View, Text, StyleSheet, TouchableOpacity, FlatList } from 'react-native';
|
|
4
|
-
import React, { useState, useEffect } from 'react';
|
|
3
|
+
import { View, Text, StyleSheet, TouchableOpacity, FlatList, Image, SafeAreaView, Dimensions, PermissionsAndroid, Platform, Linking, Alert, PixelRatio } from 'react-native';
|
|
4
|
+
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
|
5
5
|
import LinearGradient from 'react-native-linear-gradient';
|
|
6
|
-
import Ionicons from
|
|
7
|
-
import { COLORS, FONT_MEDIUM, FONT_NORMAL, formatDateTime, HP, WP } from "../themes/config.js";
|
|
8
|
-
import { useSelector } from
|
|
9
|
-
import { getClientTransactions } from "../database/clients.js";
|
|
10
|
-
import { SearchBar, Transaction } from "../components/index.js";
|
|
11
|
-
import
|
|
6
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
7
|
+
import { addCommas, COLORS, FONT_BOLD, FONT_MEDIUM, FONT_NORMAL, formatDateTime, formatDateTimeShort, formatShortDate, getCurrentMonthName, HP, ICON_SIZES, mergeDateTime, TEXT_SIZES, WP } from "../themes/config.js";
|
|
8
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
9
|
+
import { changeClientType, getClientDetails, getClientTransactions, insertPhoneNum, setPayDate, softDeleteClient, switchClientToSupplier } from "../database/clients.js";
|
|
10
|
+
import { BottomView, CountryPhoneInput, SearchBar, Transaction } from "../components/index.js";
|
|
11
|
+
import Modal from 'react-native-modal';
|
|
12
|
+
import { CLIENT_DETAILS, STATUS_BAR_COLOR } from "../redux/reducers/client/client_types.js";
|
|
13
|
+
import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
|
|
14
|
+
import ViewShot from 'react-native-view-shot';
|
|
15
|
+
import Share from 'react-native-share';
|
|
16
|
+
import { Menu, MenuOptions, MenuOption, MenuTrigger } from 'react-native-popup-menu';
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
|
+
let deviceH = Dimensions.get('screen').height;
|
|
19
|
+
let windowH = Dimensions.get('window').height;
|
|
20
|
+
let bottomNavBarH = deviceH - windowH;
|
|
12
21
|
export default function CustomerEntries({
|
|
13
22
|
navigation,
|
|
14
23
|
route
|
|
15
24
|
}) {
|
|
25
|
+
const dispatch = useDispatch();
|
|
26
|
+
const ref = useRef();
|
|
27
|
+
let monthName = getCurrentMonthName();
|
|
16
28
|
const ClientDetails = useSelector(state => state.client.client_details);
|
|
17
|
-
const homeDetails = route?.params?.homeDetails;
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
// const homeDetails = route?.params?.homeDetails;
|
|
30
|
+
const [homeDetails, sethomeDetails] = useState(route?.params?.homeDetails);
|
|
31
|
+
let amount = Number(homeDetails?.total_subamount) - Number(homeDetails?.total_amount);
|
|
32
|
+
// let amount = Number(homeDetails?.subamount) - Number(homeDetails?.amount);
|
|
33
|
+
|
|
34
|
+
// Variant 2: Only current month
|
|
35
|
+
const currentDate = new Date();
|
|
36
|
+
const currentMonth = currentDate.getMonth();
|
|
37
|
+
const currentYear = currentDate.getFullYear();
|
|
38
|
+
const dateStr = homeDetails?.latest_transaction_date || homeDetails?.created_at;
|
|
39
|
+
let amountCurrentMonth = 0;
|
|
40
|
+
if (dateStr) {
|
|
41
|
+
const date = new Date(dateStr.replace(' ', 'T'));
|
|
42
|
+
if (date.getMonth() === currentMonth && date.getFullYear() === currentYear) {
|
|
43
|
+
amountCurrentMonth = Number(homeDetails?.total_subamount) - Number(homeDetails?.total_amount);
|
|
44
|
+
}
|
|
24
45
|
}
|
|
25
|
-
amount = Math.abs(amount);
|
|
26
46
|
const [Entries, setEntries] = useState([]);
|
|
47
|
+
const [DateModal, setDateModal] = useState(false);
|
|
48
|
+
const [PaymentDate, setPaymentDate] = useState(new Date());
|
|
49
|
+
const [SelectedDateOption, setSelectedDateOption] = useState('');
|
|
50
|
+
const [ReminderModal, setReminderModal] = useState(false);
|
|
51
|
+
const [NumberModal, setNumberModal] = useState(false);
|
|
52
|
+
const [PhoneNum, setPhoneNum] = useState('');
|
|
53
|
+
const [searchTerm, setSearchTerm] = useState('');
|
|
54
|
+
const [refresh, setRefresh] = useState(false);
|
|
55
|
+
const today = new Date();
|
|
56
|
+
const nextWeek = new Date();
|
|
57
|
+
nextWeek.setDate(today.getDate() + 7);
|
|
58
|
+
const nextMonth = new Date();
|
|
59
|
+
nextMonth.setMonth(today.getMonth() + 1);
|
|
60
|
+
const formatDate = date => {
|
|
61
|
+
return date.toLocaleDateString('en-GB', {
|
|
62
|
+
day: '2-digit',
|
|
63
|
+
month: 'short',
|
|
64
|
+
year: 'numeric'
|
|
65
|
+
}).replace(',', '');
|
|
66
|
+
};
|
|
67
|
+
const dateOptions = [{
|
|
68
|
+
id: 1,
|
|
69
|
+
name: 'Next Week',
|
|
70
|
+
date: formatDate(nextWeek),
|
|
71
|
+
rawDate: nextWeek
|
|
72
|
+
}, {
|
|
73
|
+
id: 2,
|
|
74
|
+
name: 'Next Month',
|
|
75
|
+
date: formatDate(nextMonth),
|
|
76
|
+
rawDate: nextMonth
|
|
77
|
+
}, {
|
|
78
|
+
id: 3,
|
|
79
|
+
name: 'Calender'
|
|
80
|
+
}];
|
|
27
81
|
useEffect(() => {
|
|
28
82
|
const unsubscribe = navigation.addListener('focus', () => {
|
|
83
|
+
dispatch({
|
|
84
|
+
type: STATUS_BAR_COLOR,
|
|
85
|
+
color: COLORS.primaryColor
|
|
86
|
+
});
|
|
87
|
+
setSelectedDateOption(ClientDetails?.fb_id);
|
|
29
88
|
getClientTransactions(ClientDetails.id).then(res => {
|
|
30
89
|
setEntries(res);
|
|
31
90
|
});
|
|
91
|
+
// setEntries(ClientDetails?.transactions);
|
|
32
92
|
});
|
|
33
93
|
return () => unsubscribe();
|
|
34
94
|
}, [navigation]);
|
|
95
|
+
let type = 'none';
|
|
96
|
+
if (amount > 0) {
|
|
97
|
+
type = 'receivable';
|
|
98
|
+
} else if (amount < 0) {
|
|
99
|
+
type = 'payable';
|
|
100
|
+
}
|
|
101
|
+
amount = Math.abs(amount);
|
|
35
102
|
const options = [{
|
|
36
|
-
name:
|
|
37
|
-
icon:
|
|
38
|
-
disabled:
|
|
103
|
+
name: 'Report',
|
|
104
|
+
icon: 'document-outline',
|
|
105
|
+
disabled: false,
|
|
106
|
+
isVisible: true,
|
|
107
|
+
onPress: () => navigation.navigate('Report', {
|
|
108
|
+
homeDetails
|
|
109
|
+
})
|
|
39
110
|
}, {
|
|
40
|
-
name:
|
|
41
|
-
icon:
|
|
42
|
-
disabled:
|
|
111
|
+
name: 'Set Date',
|
|
112
|
+
icon: 'calendar-outline',
|
|
113
|
+
disabled: false,
|
|
114
|
+
onPress: () => setDateModal(true),
|
|
115
|
+
isVisible: ClientDetails?.type == 0 ? true : false
|
|
43
116
|
}, {
|
|
44
|
-
name:
|
|
45
|
-
icon:
|
|
46
|
-
disabled: true
|
|
117
|
+
name: 'Reminder',
|
|
118
|
+
icon: 'logo-whatsapp',
|
|
119
|
+
disabled: type == 'payable' ? false : true,
|
|
120
|
+
isVisible: true,
|
|
121
|
+
onPress: () => {
|
|
122
|
+
ClientDetails?.phone ? setReminderModal(true) : setNumberModal(true);
|
|
123
|
+
}
|
|
47
124
|
}, {
|
|
48
|
-
name:
|
|
49
|
-
icon:
|
|
50
|
-
disabled: true
|
|
125
|
+
name: 'SMS',
|
|
126
|
+
icon: 'chatbox-ellipses-outline',
|
|
127
|
+
disabled: type == 'payable' ? false : true,
|
|
128
|
+
isVisible: true,
|
|
129
|
+
onPress: () => sendSms()
|
|
51
130
|
}];
|
|
52
131
|
const calculateBalances = transactions => {
|
|
53
132
|
let balance = 0;
|
|
@@ -64,13 +143,187 @@ export default function CustomerEntries({
|
|
|
64
143
|
return withBalances.reverse();
|
|
65
144
|
};
|
|
66
145
|
const balancesData = calculateBalances(Entries);
|
|
146
|
+
const totalAmount = balancesData?.reduce((sum, item) => {
|
|
147
|
+
return sum + Number(item.amount);
|
|
148
|
+
}, 0);
|
|
149
|
+
const showDate = item => {
|
|
150
|
+
DateTimePickerAndroid.open({
|
|
151
|
+
value: PaymentDate,
|
|
152
|
+
onChange: (event, selectedDate) => onChangeDate(event, selectedDate, item),
|
|
153
|
+
mode: 'date',
|
|
154
|
+
is24Hour: false
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
const onChangeDate = async (event, selectedDate, item) => {
|
|
158
|
+
const currentDate = selectedDate;
|
|
159
|
+
setPaymentDate(currentDate);
|
|
160
|
+
let date = new Date(currentDate);
|
|
161
|
+
let time = new Date(currentDate);
|
|
162
|
+
let formatted = mergeDateTime({
|
|
163
|
+
date,
|
|
164
|
+
time
|
|
165
|
+
});
|
|
166
|
+
await onSelectDate(formatted, ClientDetails?.id, item?.id);
|
|
167
|
+
};
|
|
168
|
+
const onSelectDate = async (date, id, optionId) => {
|
|
169
|
+
setPayDate(date, id, optionId).then(res => {
|
|
170
|
+
console.log('Paydate updated:', res.rowsAffected);
|
|
171
|
+
}).catch(err => console.log('Update failed', err));
|
|
172
|
+
getClientDetails(ClientDetails?.id).then(resp => {
|
|
173
|
+
dispatch({
|
|
174
|
+
type: CLIENT_DETAILS,
|
|
175
|
+
payload: resp
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
setSelectedDateOption(optionId);
|
|
179
|
+
setDateModal(false);
|
|
180
|
+
};
|
|
181
|
+
const onCapture = useCallback(uri => {
|
|
182
|
+
ref.current.capture().then(uri => {
|
|
183
|
+
console.log('Captured URI:', uri);
|
|
184
|
+
sendToWhatsApp(uri, ClientDetails?.phone?.split('+')[1]);
|
|
185
|
+
}).catch(err => console.error('Capture failed', err));
|
|
186
|
+
}, []);
|
|
187
|
+
const sendToWhatsApp = async (uri, phoneNumber) => {
|
|
188
|
+
try {
|
|
189
|
+
await Share.open({
|
|
190
|
+
url: uri,
|
|
191
|
+
// the captured image uri
|
|
192
|
+
social: Share.Social.WHATSAPP,
|
|
193
|
+
whatsAppNumber: phoneNumber,
|
|
194
|
+
// e.g. '923001234567'
|
|
195
|
+
filename: 'reminder.jpg',
|
|
196
|
+
// optional
|
|
197
|
+
type: 'image/jpeg'
|
|
198
|
+
});
|
|
199
|
+
} catch (err) {
|
|
200
|
+
console.log('Error sharing to WhatsApp:', err);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
const onNumSave = async () => {
|
|
204
|
+
if (PhoneNum) {
|
|
205
|
+
await insertPhoneNum(PhoneNum, ClientDetails?.id);
|
|
206
|
+
getClientDetails(ClientDetails?.id).then(resp => {
|
|
207
|
+
dispatch({
|
|
208
|
+
type: CLIENT_DETAILS,
|
|
209
|
+
payload: resp
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
setNumberModal(false);
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
const searchBalances = (balancesData, searchTerm) => {
|
|
216
|
+
if (!searchTerm) return balancesData;
|
|
217
|
+
const lower = searchTerm.toLowerCase();
|
|
218
|
+
return balancesData.filter(item => {
|
|
219
|
+
// combine whatever fields you want to search
|
|
220
|
+
return item.notes && item.notes.toLowerCase().includes(lower) || item.customer_id && item.customer_id.toString().includes(lower) || item.amount && item.amount.toString().includes(lower) || item.subamount && item.subamount.toString().includes(lower);
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
const makeCall = async phoneNumber => {
|
|
224
|
+
const url = `tel:${phoneNumber}`;
|
|
67
225
|
|
|
68
|
-
|
|
226
|
+
// Check if device can handle this URL (some simulators cannot)
|
|
227
|
+
const supported = await Linking.canOpenURL(url);
|
|
228
|
+
if (supported) {
|
|
229
|
+
await Linking.openURL(url);
|
|
230
|
+
} else {
|
|
231
|
+
Alert.alert('Error', 'Calling not supported on this device');
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
const sendSms = async () => {
|
|
235
|
+
let phoneNumber = ClientDetails?.phone;
|
|
236
|
+
const message = `Payment Request
|
|
69
237
|
|
|
70
|
-
|
|
238
|
+
Dear,
|
|
239
|
+
Balance Rs ${amount} is outstanding in your ledger.
|
|
240
|
+
Thanks for your cooperation.`;
|
|
241
|
+
const separator = Platform.OS === 'ios' ? '&' : '?';
|
|
242
|
+
const url = `sms:${phoneNumber}${separator}body=${encodeURIComponent(message)}`;
|
|
243
|
+
const supported = await Linking.canOpenURL(url);
|
|
244
|
+
if (supported) {
|
|
245
|
+
await Linking.openURL(url);
|
|
246
|
+
} else {
|
|
247
|
+
Alert.alert('Error', 'SMS not supported on this device');
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
const onToggleClientTypePress = client => {
|
|
251
|
+
const fromType = client.type === 0 ? 'Customer' : 'Supplier';
|
|
252
|
+
const toType = client.type === 0 ? 'Supplier' : 'Customer';
|
|
253
|
+
Alert.alert('Change Client Type', `${client.name} and all related records will be safely changed from ${fromType} to ${toType}. Do you want to continue?`, [{
|
|
254
|
+
text: 'Cancel',
|
|
255
|
+
onPress: () => console.log('Cancelled changing client type'),
|
|
256
|
+
style: 'cancel'
|
|
257
|
+
}, {
|
|
258
|
+
text: 'Change',
|
|
259
|
+
onPress: async () => {
|
|
260
|
+
try {
|
|
261
|
+
const newType = client.type === 0 ? 1 : 0;
|
|
262
|
+
await changeClientType(client.id, newType);
|
|
263
|
+
console.log(`Client type changed to ${newType}`);
|
|
264
|
+
navigation.reset({
|
|
265
|
+
index: 0,
|
|
266
|
+
// active screen
|
|
267
|
+
routes: [{
|
|
268
|
+
name: 'HomeScreen',
|
|
269
|
+
state: {
|
|
270
|
+
routes: [{
|
|
271
|
+
name: 'Customers'
|
|
272
|
+
}] // nested screen
|
|
273
|
+
}
|
|
274
|
+
}]
|
|
275
|
+
});
|
|
276
|
+
} catch (err) {
|
|
277
|
+
console.log('Error changing client type:', err);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}], {
|
|
281
|
+
cancelable: true
|
|
282
|
+
});
|
|
283
|
+
};
|
|
284
|
+
const onDeleteClient = () => {
|
|
285
|
+
const typeLabel = ClientDetails?.type === 0 ? 'Customer' : ClientDetails?.type === 1 ? 'Supplier' : 'Bank';
|
|
286
|
+
const routeName = ClientDetails?.type === 0 ? 'Customers' : ClientDetails?.type === 1 ? 'Suppliers' : 'Banks';
|
|
287
|
+
Alert.alert(`Delete ${typeLabel}`,
|
|
288
|
+
// Title
|
|
289
|
+
`Are you sure you want to delete this ${typeLabel}?`, [{
|
|
290
|
+
text: 'Cancel',
|
|
291
|
+
onPress: () => console.log('Cancel'),
|
|
292
|
+
style: 'cancel'
|
|
293
|
+
}, {
|
|
294
|
+
text: 'Delete',
|
|
295
|
+
style: 'destructive',
|
|
296
|
+
// optional: shows in red on iOS
|
|
297
|
+
onPress: async () => {
|
|
298
|
+
try {
|
|
299
|
+
await softDeleteClient(ClientDetails?.id);
|
|
300
|
+
navigation.reset({
|
|
301
|
+
index: 0,
|
|
302
|
+
// active screen
|
|
303
|
+
routes: [{
|
|
304
|
+
name: 'HomeScreen',
|
|
305
|
+
state: {
|
|
306
|
+
routes: [{
|
|
307
|
+
name: routeName
|
|
308
|
+
}] // nested screen
|
|
309
|
+
}
|
|
310
|
+
}]
|
|
311
|
+
});
|
|
312
|
+
} catch (err) {
|
|
313
|
+
console.log('Error soft deleting transaction:', err);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}], {
|
|
317
|
+
cancelable: true
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
const finalData = searchBalances(balancesData, searchTerm);
|
|
321
|
+
return /*#__PURE__*/_jsxs(SafeAreaView, {
|
|
71
322
|
style: Styles._mainContainer,
|
|
72
323
|
children: [/*#__PURE__*/_jsxs(LinearGradient, {
|
|
73
|
-
style: Styles._headerMain,
|
|
324
|
+
style: [Styles._headerMain, {
|
|
325
|
+
justifyContent: 'space-between'
|
|
326
|
+
}],
|
|
74
327
|
start: {
|
|
75
328
|
x: 0,
|
|
76
329
|
y: 0
|
|
@@ -83,39 +336,169 @@ export default function CustomerEntries({
|
|
|
83
336
|
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
84
337
|
activeOpacity: 0.8,
|
|
85
338
|
onPress: () => navigation?.goBack(),
|
|
339
|
+
style: {
|
|
340
|
+
// height: '100%',
|
|
341
|
+
// width: '10%',
|
|
342
|
+
justifyContent: 'center',
|
|
343
|
+
alignItems: 'center',
|
|
344
|
+
padding: 5
|
|
345
|
+
// marginLeft
|
|
346
|
+
},
|
|
347
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
348
|
+
name: 'chevron-back',
|
|
349
|
+
color: COLORS.whiteColor,
|
|
350
|
+
size: 60 / PixelRatio.get()
|
|
351
|
+
})
|
|
352
|
+
}), ClientDetails?.phone && ClientDetails?.type != 2 && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
353
|
+
activeOpacity: 0.8,
|
|
354
|
+
onPress: () => makeCall(ClientDetails?.phone),
|
|
355
|
+
style: {
|
|
356
|
+
height: '100%',
|
|
357
|
+
width: '10%',
|
|
358
|
+
justifyContent: 'center',
|
|
359
|
+
alignItems: 'center',
|
|
360
|
+
position: 'absolute',
|
|
361
|
+
left: '80%'
|
|
362
|
+
},
|
|
86
363
|
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
87
|
-
name:
|
|
364
|
+
name: 'call-outline',
|
|
88
365
|
color: COLORS.whiteColor,
|
|
89
366
|
size: 25
|
|
90
367
|
})
|
|
91
|
-
}), /*#__PURE__*/
|
|
92
|
-
style:
|
|
368
|
+
}), ClientDetails?.local_path && /*#__PURE__*/_jsx(View, {
|
|
369
|
+
style: {
|
|
370
|
+
position: 'absolute',
|
|
371
|
+
left: '11%'
|
|
372
|
+
},
|
|
373
|
+
children: /*#__PURE__*/_jsx(Image, {
|
|
374
|
+
source: {
|
|
375
|
+
uri: ClientDetails?.local_path
|
|
376
|
+
},
|
|
377
|
+
style: [Styles._icon, {
|
|
378
|
+
borderRadius: ClientDetails?.type == 2 ? 0 : 100,
|
|
379
|
+
marginHorizontal: 0
|
|
380
|
+
}],
|
|
381
|
+
resizeMode: "cover"
|
|
382
|
+
})
|
|
383
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
384
|
+
style: [Styles._dataMain, {
|
|
385
|
+
width: '50%',
|
|
386
|
+
position: 'absolute',
|
|
387
|
+
left: !ClientDetails?.local_path ? '10%' : '25%'
|
|
388
|
+
}],
|
|
389
|
+
activeOpacity: 0.8,
|
|
390
|
+
onPress: () => navigation.navigate('Profile', {
|
|
391
|
+
amount,
|
|
392
|
+
type
|
|
393
|
+
}),
|
|
93
394
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
94
395
|
style: Styles._nameMain,
|
|
95
396
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
397
|
+
numberOfLines: 1,
|
|
96
398
|
style: Styles._nameTxt,
|
|
97
|
-
children: ClientDetails?.name
|
|
98
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
399
|
+
children: ClientDetails?.type == 2 ? ClientDetails?.name : ClientDetails?.name
|
|
400
|
+
}), ClientDetails?.type != 2 && /*#__PURE__*/_jsx(View, {
|
|
99
401
|
style: Styles._badge,
|
|
100
402
|
children: /*#__PURE__*/_jsx(Text, {
|
|
101
403
|
style: Styles._badgeText,
|
|
102
|
-
children: ClientDetails.type == 0 ?
|
|
404
|
+
children: ClientDetails.type == 0 ? 'Customer' : 'Supplier'
|
|
103
405
|
})
|
|
104
406
|
})]
|
|
105
407
|
}), /*#__PURE__*/_jsx(Text, {
|
|
106
408
|
style: Styles._clickText,
|
|
107
409
|
children: "Click here to view settings"
|
|
108
410
|
})]
|
|
109
|
-
}), /*#__PURE__*/
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
411
|
+
}), /*#__PURE__*/_jsxs(Menu, {
|
|
412
|
+
style: {
|
|
413
|
+
height: '100%',
|
|
414
|
+
width: '10%'
|
|
415
|
+
},
|
|
416
|
+
children: [/*#__PURE__*/_jsx(MenuTrigger, {
|
|
417
|
+
style: {
|
|
418
|
+
width: '100%',
|
|
419
|
+
height: '100%',
|
|
420
|
+
justifyContent: 'center',
|
|
421
|
+
alignItems: 'center'
|
|
422
|
+
},
|
|
423
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
424
|
+
name: 'ellipsis-vertical',
|
|
425
|
+
color: COLORS.whiteColor,
|
|
426
|
+
size: 25
|
|
427
|
+
})
|
|
428
|
+
}), /*#__PURE__*/_jsxs(MenuOptions, {
|
|
429
|
+
children: [/*#__PURE__*/_jsx(MenuOption, {
|
|
430
|
+
style: {
|
|
431
|
+
backgroundColor: COLORS.whiteColor,
|
|
432
|
+
height: 40,
|
|
433
|
+
justifyContent: 'center'
|
|
434
|
+
},
|
|
435
|
+
onSelect: () => navigation.navigate('Profile', {
|
|
436
|
+
amount,
|
|
437
|
+
type
|
|
438
|
+
}),
|
|
439
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
440
|
+
style: {
|
|
441
|
+
color: COLORS.blackColor,
|
|
442
|
+
fontFamily: FONT_NORMAL,
|
|
443
|
+
fontSize: 14
|
|
444
|
+
},
|
|
445
|
+
children: [ClientDetails?.type === 0 ? 'Customer' : ClientDetails?.type === 1 ? 'Supplier' : 'Bank', ' ', "Profile"]
|
|
446
|
+
})
|
|
447
|
+
}), ClientDetails?.type != 2 && /*#__PURE__*/_jsx(MenuOption, {
|
|
448
|
+
style: {
|
|
449
|
+
backgroundColor: COLORS.whiteColor,
|
|
450
|
+
height: 40,
|
|
451
|
+
justifyContent: 'center'
|
|
452
|
+
},
|
|
453
|
+
onSelect: () => onToggleClientTypePress(ClientDetails),
|
|
454
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
455
|
+
style: {
|
|
456
|
+
color: COLORS.blackColor,
|
|
457
|
+
fontFamily: FONT_NORMAL,
|
|
458
|
+
fontSize: 14
|
|
459
|
+
},
|
|
460
|
+
children: ["Switch to ", ClientDetails?.type == 0 ? 'Supplier' : 'Customer']
|
|
461
|
+
})
|
|
462
|
+
}), /*#__PURE__*/_jsx(MenuOption, {
|
|
463
|
+
style: {
|
|
464
|
+
backgroundColor: COLORS.whiteColor,
|
|
465
|
+
height: 40,
|
|
466
|
+
justifyContent: 'center'
|
|
467
|
+
},
|
|
468
|
+
onSelect: () => navigation.navigate('Report', {
|
|
469
|
+
homeDetails
|
|
470
|
+
}),
|
|
471
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
472
|
+
style: {
|
|
473
|
+
color: COLORS.blackColor,
|
|
474
|
+
fontFamily: FONT_NORMAL,
|
|
475
|
+
fontSize: 14
|
|
476
|
+
},
|
|
477
|
+
children: "Report"
|
|
478
|
+
})
|
|
479
|
+
}), /*#__PURE__*/_jsx(MenuOption, {
|
|
480
|
+
style: {
|
|
481
|
+
backgroundColor: COLORS.whiteColor,
|
|
482
|
+
height: 40,
|
|
483
|
+
justifyContent: 'center'
|
|
484
|
+
},
|
|
485
|
+
onSelect: () => onDeleteClient(),
|
|
486
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
487
|
+
style: {
|
|
488
|
+
color: COLORS.blackColor,
|
|
489
|
+
fontFamily: FONT_NORMAL,
|
|
490
|
+
fontSize: 14
|
|
491
|
+
},
|
|
492
|
+
children: ["Delete", ' ', ClientDetails?.type === 0 ? 'Customer' : ClientDetails?.type === 1 ? 'Supplier' : 'Bank Account']
|
|
493
|
+
})
|
|
494
|
+
})]
|
|
495
|
+
})]
|
|
113
496
|
})]
|
|
114
497
|
}), !Entries?.length && /*#__PURE__*/_jsxs(View, {
|
|
115
498
|
style: Styles._privacyMain,
|
|
116
499
|
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
117
|
-
name:
|
|
118
|
-
color:
|
|
500
|
+
name: 'lock-closed',
|
|
501
|
+
color: 'green',
|
|
119
502
|
size: 20
|
|
120
503
|
}), /*#__PURE__*/_jsx(Text, {
|
|
121
504
|
style: Styles._privacyText,
|
|
@@ -136,88 +519,187 @@ export default function CustomerEntries({
|
|
|
136
519
|
y: 0
|
|
137
520
|
},
|
|
138
521
|
colors: [COLORS.primaryColor, COLORS.secondaryColor]
|
|
139
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
522
|
+
}), ClientDetails?.type == 2 ? /*#__PURE__*/_jsxs(View, {
|
|
523
|
+
style: Styles._calculationMainBank,
|
|
524
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
525
|
+
style: {
|
|
526
|
+
width: '45%',
|
|
527
|
+
height: '60%',
|
|
528
|
+
justifyContent: 'center',
|
|
529
|
+
borderRightColor: COLORS.blackColor,
|
|
530
|
+
borderRightWidth: 0.7
|
|
531
|
+
},
|
|
532
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
533
|
+
style: {
|
|
534
|
+
color: COLORS.blackColor,
|
|
535
|
+
fontFamily: FONT_MEDIUM,
|
|
536
|
+
fontSize: 14
|
|
537
|
+
},
|
|
538
|
+
children: ["Rs ", addCommas(Math.abs(totalAmount))]
|
|
539
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
540
|
+
style: {
|
|
541
|
+
color: COLORS.blackColor,
|
|
542
|
+
opacity: 0.6,
|
|
543
|
+
fontFamily: FONT_NORMAL,
|
|
544
|
+
fontSize: 12
|
|
545
|
+
},
|
|
546
|
+
children: ["Total in for ", monthName]
|
|
547
|
+
})]
|
|
548
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
549
|
+
style: {
|
|
550
|
+
width: '40%',
|
|
551
|
+
height: '60%',
|
|
552
|
+
justifyContent: 'center',
|
|
553
|
+
borderRightColor: COLORS.blackColor,
|
|
554
|
+
borderRightWidth: 0.7,
|
|
555
|
+
alignItems: 'center',
|
|
556
|
+
marginRight: 0
|
|
557
|
+
},
|
|
558
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
559
|
+
style: {
|
|
560
|
+
color: COLORS.blackColor,
|
|
561
|
+
fontFamily: FONT_MEDIUM,
|
|
562
|
+
fontSize: 14
|
|
563
|
+
},
|
|
564
|
+
children: ["Rs ", addCommas(Math.abs(amountCurrentMonth))]
|
|
565
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
566
|
+
style: {
|
|
567
|
+
color: COLORS.blackColor,
|
|
568
|
+
opacity: 0.6,
|
|
569
|
+
fontFamily: FONT_NORMAL,
|
|
570
|
+
fontSize: 12
|
|
571
|
+
},
|
|
572
|
+
children: "Balance"
|
|
573
|
+
})]
|
|
574
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
575
|
+
activeOpacity: 0.8,
|
|
576
|
+
style: {
|
|
577
|
+
height: '100%',
|
|
578
|
+
justifyContent: 'center',
|
|
579
|
+
alignItems: 'center',
|
|
580
|
+
width: '15%'
|
|
581
|
+
},
|
|
582
|
+
onPress: () => navigation.navigate('Report', {
|
|
583
|
+
homeDetails
|
|
584
|
+
}),
|
|
585
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
586
|
+
name: 'chevron-forward',
|
|
587
|
+
color: COLORS.primaryColor,
|
|
588
|
+
size: 20
|
|
589
|
+
})
|
|
590
|
+
})]
|
|
591
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
140
592
|
style: Styles._calculationMain,
|
|
141
593
|
children: [/*#__PURE__*/_jsxs(Text, {
|
|
142
594
|
style: {
|
|
143
|
-
color: type == "
|
|
144
|
-
fontFamily:
|
|
595
|
+
color: type == "payable" ? COLORS.redColor : COLORS.greenColor,
|
|
596
|
+
fontFamily: FONT_BOLD,
|
|
145
597
|
fontSize: 14
|
|
146
598
|
},
|
|
147
|
-
children: ["Rs ", amount]
|
|
599
|
+
children: ["Rs ", addCommas(amount)]
|
|
148
600
|
}), /*#__PURE__*/_jsx(Text, {
|
|
149
601
|
style: {
|
|
150
602
|
color: COLORS.blackColor,
|
|
151
603
|
opacity: 0.6,
|
|
152
|
-
fontFamily:
|
|
604
|
+
fontFamily: FONT_MEDIUM,
|
|
153
605
|
fontSize: 12
|
|
154
606
|
},
|
|
155
|
-
children: type ==
|
|
607
|
+
children: type == 'receivable' ? "You will give" : type == 'payable' ? ClientDetails.type == 0 ? "You will get" : 'Received' : 'Settled Up'
|
|
156
608
|
})]
|
|
157
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
609
|
+
}), ClientDetails?.type !== 2 && /*#__PURE__*/_jsx(View, {
|
|
158
610
|
style: Styles._optionsMain,
|
|
159
611
|
children: /*#__PURE__*/_jsx(FlatList, {
|
|
160
|
-
data: options,
|
|
612
|
+
data: options.filter(item => item.isVisible),
|
|
161
613
|
horizontal: true,
|
|
162
614
|
showsHorizontalScrollIndicator: false,
|
|
163
615
|
scrollEnabled: false,
|
|
164
616
|
keyExtractor: (item, index) => index.toString(),
|
|
165
617
|
contentContainerStyle: {
|
|
166
|
-
|
|
167
|
-
|
|
618
|
+
width: '100%',
|
|
619
|
+
justifyContent: 'space-between',
|
|
620
|
+
paddingHorizontal: '2.5%'
|
|
168
621
|
},
|
|
169
622
|
renderItem: ({
|
|
170
623
|
item,
|
|
171
624
|
index
|
|
172
625
|
}) => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
626
|
+
onPress: () => {
|
|
627
|
+
!item?.disabled && item?.onPress();
|
|
628
|
+
},
|
|
173
629
|
activeOpacity: 0.8,
|
|
174
|
-
style: Styles._listItem,
|
|
630
|
+
style: [Styles._listItem, {
|
|
631
|
+
width: ClientDetails?.type == 0 ? HP(9) : HP(13)
|
|
632
|
+
}],
|
|
175
633
|
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
176
634
|
name: item.icon,
|
|
177
635
|
size: 25,
|
|
178
|
-
color: COLORS.yellowColor
|
|
636
|
+
color: item?.disabled ? COLORS.gray : COLORS.yellowColor
|
|
179
637
|
}), /*#__PURE__*/_jsx(Text, {
|
|
180
638
|
style: {
|
|
181
639
|
color: COLORS.blackColor,
|
|
182
640
|
fontSize: 11,
|
|
183
|
-
fontFamily:
|
|
184
|
-
textAlign:
|
|
641
|
+
fontFamily: FONT_MEDIUM,
|
|
642
|
+
textAlign: 'center'
|
|
185
643
|
},
|
|
186
|
-
children: item.name
|
|
644
|
+
children: item.name == 'Set Date' && ClientDetails?.paydate ? formatShortDate(ClientDetails?.paydate) : item?.name
|
|
187
645
|
})]
|
|
188
646
|
}, index)
|
|
189
647
|
})
|
|
190
648
|
}), /*#__PURE__*/_jsxs(View, {
|
|
191
|
-
style: Styles._entriesMain,
|
|
192
|
-
|
|
649
|
+
style: [Styles._entriesMain, {
|
|
650
|
+
marginTop: ClientDetails?.type == 2 ? 60 : 0
|
|
651
|
+
}],
|
|
652
|
+
children: [/*#__PURE__*/_jsx(SearchBar, {
|
|
653
|
+
onChangeText: text => setSearchTerm(text)
|
|
654
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
193
655
|
style: Styles._tableHeader,
|
|
194
656
|
children: [/*#__PURE__*/_jsx(View, {
|
|
195
657
|
style: [Styles._headerCell, {
|
|
196
|
-
width:
|
|
658
|
+
width: '50%'
|
|
197
659
|
}],
|
|
198
660
|
children: /*#__PURE__*/_jsx(Text, {
|
|
199
661
|
style: Styles._headerCellText,
|
|
200
662
|
children: "Entries"
|
|
201
663
|
})
|
|
202
|
-
}), /*#__PURE__*/
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
664
|
+
}), ClientDetails?.type == 1 || ClientDetails?.type == 2 ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
665
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
666
|
+
style: [Styles._headerCell, {
|
|
667
|
+
alignItems: 'flex-end'
|
|
668
|
+
}],
|
|
669
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
670
|
+
style: Styles._headerCellText,
|
|
671
|
+
children: ClientDetails.type == 0 ? 'You Got' : ClientDetails?.type == 1 ? 'Purchase' : 'Out'
|
|
672
|
+
})
|
|
673
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
674
|
+
style: [Styles._headerCell, {
|
|
675
|
+
alignItems: 'flex-end'
|
|
676
|
+
}],
|
|
677
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
678
|
+
style: Styles._headerCellText,
|
|
679
|
+
children: ClientDetails.type == 0 ? 'You Gave' : ClientDetails?.type == 1 ? 'Payment' : 'In'
|
|
680
|
+
})
|
|
681
|
+
})]
|
|
682
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
683
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
684
|
+
style: [Styles._headerCell, {
|
|
685
|
+
alignItems: 'flex-end'
|
|
686
|
+
}],
|
|
687
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
688
|
+
style: Styles._headerCellText,
|
|
689
|
+
children: ClientDetails.type == 0 ? 'You Gave' : ClientDetails?.type == 1 ? 'Payment' : 'In'
|
|
690
|
+
})
|
|
691
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
692
|
+
style: [Styles._headerCell, {
|
|
693
|
+
alignItems: 'flex-end'
|
|
694
|
+
}],
|
|
695
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
696
|
+
style: Styles._headerCellText,
|
|
697
|
+
children: ClientDetails.type == 0 ? 'You Got' : ClientDetails?.type == 1 ? 'Purchase' : 'Out'
|
|
698
|
+
})
|
|
699
|
+
})]
|
|
218
700
|
})]
|
|
219
701
|
}), /*#__PURE__*/_jsx(FlatList, {
|
|
220
|
-
data: balancesData,
|
|
702
|
+
data: searchBalances(balancesData, searchTerm),
|
|
221
703
|
keyExtractor: (item, index) => index.toString(),
|
|
222
704
|
scrollEnabled: true,
|
|
223
705
|
contentContainerStyle: {
|
|
@@ -227,75 +709,436 @@ export default function CustomerEntries({
|
|
|
227
709
|
item,
|
|
228
710
|
index
|
|
229
711
|
}) => /*#__PURE__*/_jsx(Transaction, {
|
|
712
|
+
item: item,
|
|
230
713
|
balance: item.balance,
|
|
231
|
-
isAttachment: item?.attachments?.length ? true : false,
|
|
714
|
+
isAttachment: item?.attachments?.length || item?.local_path ? true : false,
|
|
232
715
|
notes: item?.notes,
|
|
233
|
-
date:
|
|
716
|
+
date: formatDateTimeShort(item?.date),
|
|
234
717
|
firstCell: item?.amount,
|
|
235
718
|
secondCell: item?.subamount,
|
|
236
|
-
onPress: () => navigation.navigate(
|
|
237
|
-
item
|
|
238
|
-
|
|
719
|
+
onPress: () => navigation.navigate('TransactionDetails', {
|
|
720
|
+
item,
|
|
721
|
+
onGoBack: homeDetails => {
|
|
722
|
+
sethomeDetails(homeDetails);
|
|
723
|
+
}
|
|
724
|
+
}),
|
|
725
|
+
swap: ClientDetails?.type == 1 || ClientDetails?.type == 2 ? true : false
|
|
239
726
|
})
|
|
240
727
|
})]
|
|
241
728
|
})]
|
|
242
|
-
}), /*#__PURE__*/
|
|
243
|
-
style:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
729
|
+
}), /*#__PURE__*/_jsx(BottomView, {
|
|
730
|
+
style: {
|
|
731
|
+
paddingHorizontal: '2.5%',
|
|
732
|
+
width: '100%'
|
|
733
|
+
},
|
|
734
|
+
children: ClientDetails?.type != 1 ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
735
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
736
|
+
style: Styles._btn,
|
|
737
|
+
activeOpacity: 0.8,
|
|
738
|
+
onPress: () => {
|
|
739
|
+
navigation.navigate('Entry', {
|
|
740
|
+
type: 'red',
|
|
741
|
+
amount,
|
|
742
|
+
pay_type: homeDetails?.pay_type,
|
|
743
|
+
onGoBack: homeDetails => {
|
|
744
|
+
sethomeDetails(homeDetails);
|
|
745
|
+
}
|
|
746
|
+
});
|
|
257
747
|
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
748
|
+
children: /*#__PURE__*/_jsxs(LinearGradient, {
|
|
749
|
+
colors: [COLORS.redColor, COLORS.gradient_red],
|
|
750
|
+
style: {
|
|
751
|
+
width: '100%',
|
|
752
|
+
height: '100%',
|
|
753
|
+
justifyContent: 'center',
|
|
754
|
+
alignItems: 'center',
|
|
755
|
+
flexDirection: 'row',
|
|
756
|
+
gap: 5
|
|
757
|
+
},
|
|
758
|
+
start: {
|
|
759
|
+
x: 0,
|
|
760
|
+
y: 0
|
|
761
|
+
},
|
|
762
|
+
end: {
|
|
763
|
+
x: 1,
|
|
764
|
+
y: 0
|
|
765
|
+
},
|
|
766
|
+
children: [ClientDetails?.type == 2 && /*#__PURE__*/_jsx(Ionicons, {
|
|
767
|
+
color: COLORS.whiteColor,
|
|
768
|
+
name: 'add-circle',
|
|
769
|
+
size: 25
|
|
770
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
771
|
+
style: Styles._btnTitle,
|
|
772
|
+
children: [ClientDetails.type == 0 ? 'YOU GAVE' : ClientDetails?.type == 1 ? 'PAYMENT' : 'IN', ' ', ClientDetails?.type !== 2 && 'Rs']
|
|
773
|
+
})]
|
|
774
|
+
})
|
|
775
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
776
|
+
style: Styles._btn,
|
|
777
|
+
activeOpacity: 0.8,
|
|
778
|
+
onPress: () => {
|
|
779
|
+
navigation.navigate('Entry', {
|
|
780
|
+
type: 'green',
|
|
781
|
+
onGoBack: homeDetails => {
|
|
782
|
+
sethomeDetails(homeDetails);
|
|
783
|
+
}
|
|
784
|
+
});
|
|
261
785
|
},
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
786
|
+
children: /*#__PURE__*/_jsxs(LinearGradient, {
|
|
787
|
+
colors: [COLORS.greenColor, COLORS.gradient_green],
|
|
788
|
+
style: {
|
|
789
|
+
width: '100%',
|
|
790
|
+
height: '100%',
|
|
791
|
+
justifyContent: 'center',
|
|
792
|
+
alignItems: 'center',
|
|
793
|
+
flexDirection: 'row',
|
|
794
|
+
gap: 5
|
|
795
|
+
},
|
|
796
|
+
start: {
|
|
797
|
+
x: 0,
|
|
798
|
+
y: 0
|
|
799
|
+
},
|
|
800
|
+
end: {
|
|
801
|
+
x: 1,
|
|
802
|
+
y: 0
|
|
803
|
+
},
|
|
804
|
+
children: [ClientDetails?.type == 2 && /*#__PURE__*/_jsx(Ionicons, {
|
|
805
|
+
color: COLORS.whiteColor,
|
|
806
|
+
name: 'remove-circle',
|
|
807
|
+
size: 25
|
|
808
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
809
|
+
style: Styles._btnTitle,
|
|
810
|
+
children: [ClientDetails.type == 0 ? 'YOU GOT' : ClientDetails?.type == 1 ? 'PURCHASE' : 'OUT', ' ', ClientDetails?.type !== 2 && 'Rs']
|
|
811
|
+
})]
|
|
812
|
+
})
|
|
813
|
+
})]
|
|
814
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
815
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
816
|
+
style: Styles._btn,
|
|
817
|
+
activeOpacity: 0.8,
|
|
818
|
+
onPress: () => {
|
|
819
|
+
navigation.navigate('Entry', {
|
|
820
|
+
type: 'green',
|
|
821
|
+
onGoBack: homeDetails => {
|
|
822
|
+
sethomeDetails(homeDetails);
|
|
823
|
+
}
|
|
824
|
+
});
|
|
265
825
|
},
|
|
266
|
-
children: /*#__PURE__*/_jsxs(
|
|
267
|
-
|
|
268
|
-
|
|
826
|
+
children: /*#__PURE__*/_jsxs(LinearGradient, {
|
|
827
|
+
colors: [COLORS.greenColor, COLORS.greenColor],
|
|
828
|
+
style: {
|
|
829
|
+
width: '100%',
|
|
830
|
+
height: '100%',
|
|
831
|
+
justifyContent: 'center',
|
|
832
|
+
alignItems: 'center',
|
|
833
|
+
flexDirection: 'row',
|
|
834
|
+
gap: 5
|
|
835
|
+
},
|
|
836
|
+
start: {
|
|
837
|
+
x: 0,
|
|
838
|
+
y: 0
|
|
839
|
+
},
|
|
840
|
+
end: {
|
|
841
|
+
x: 1,
|
|
842
|
+
y: 0
|
|
843
|
+
},
|
|
844
|
+
children: [ClientDetails?.type == 2 && /*#__PURE__*/_jsx(Ionicons, {
|
|
845
|
+
color: COLORS.whiteColor,
|
|
846
|
+
name: 'remove',
|
|
847
|
+
size: 20
|
|
848
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
849
|
+
style: Styles._btnTitle,
|
|
850
|
+
children: [ClientDetails.type == 0 ? 'YOU GOT' : ClientDetails?.type == 1 ? 'PURCHASE' : 'OUT', ' ', ClientDetails?.type !== 2 && 'Rs']
|
|
851
|
+
})]
|
|
269
852
|
})
|
|
270
|
-
})
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
853
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
854
|
+
style: Styles._btn,
|
|
855
|
+
activeOpacity: 0.8,
|
|
856
|
+
onPress: () => {
|
|
857
|
+
navigation.navigate('Entry', {
|
|
858
|
+
type: 'red',
|
|
859
|
+
amount,
|
|
860
|
+
pay_type: 'payable',
|
|
861
|
+
onGoBack: homeDetails => {
|
|
862
|
+
sethomeDetails(homeDetails);
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
},
|
|
866
|
+
children: /*#__PURE__*/_jsxs(LinearGradient, {
|
|
867
|
+
colors: [COLORS.redColor, COLORS.redColor],
|
|
868
|
+
style: {
|
|
869
|
+
width: '100%',
|
|
870
|
+
height: '100%',
|
|
871
|
+
justifyContent: 'center',
|
|
872
|
+
alignItems: 'center',
|
|
873
|
+
flexDirection: 'row',
|
|
874
|
+
gap: 5
|
|
875
|
+
},
|
|
876
|
+
start: {
|
|
877
|
+
x: 0,
|
|
878
|
+
y: 0
|
|
879
|
+
},
|
|
880
|
+
end: {
|
|
881
|
+
x: 1,
|
|
882
|
+
y: 0
|
|
883
|
+
},
|
|
884
|
+
children: [ClientDetails?.type == 2 && /*#__PURE__*/_jsx(Ionicons, {
|
|
885
|
+
color: COLORS.whiteColor,
|
|
886
|
+
name: 'add',
|
|
887
|
+
size: 20
|
|
888
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
889
|
+
style: Styles._btnTitle,
|
|
890
|
+
children: [ClientDetails.type == 0 ? 'YOU GAVE' : ClientDetails?.type == 1 ? 'PAYMENT' : 'IN', ' ', ClientDetails?.type !== 2 && 'Rs']
|
|
891
|
+
})]
|
|
892
|
+
})
|
|
893
|
+
})]
|
|
894
|
+
})
|
|
895
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
896
|
+
isVisible: DateModal,
|
|
897
|
+
style: Styles._modal,
|
|
898
|
+
onBackButtonPress: () => setDateModal(false),
|
|
899
|
+
onBackdropPress: () => setDateModal(false),
|
|
900
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
901
|
+
style: Styles._modalMain,
|
|
902
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
279
903
|
style: {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
904
|
+
gap: 10,
|
|
905
|
+
borderBottomColor: COLORS.gray,
|
|
906
|
+
borderBottomWidth: 1,
|
|
907
|
+
paddingBottom: 10,
|
|
908
|
+
marginBottom: 25
|
|
284
909
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
910
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
911
|
+
style: {
|
|
912
|
+
fontFamily: FONT_MEDIUM,
|
|
913
|
+
fontSize: 13,
|
|
914
|
+
color: COLORS.blackColor
|
|
915
|
+
},
|
|
916
|
+
children: ["Set Date for ", ClientDetails?.name]
|
|
917
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
918
|
+
style: {
|
|
919
|
+
fontFamily: FONT_NORMAL,
|
|
920
|
+
fontSize: 13,
|
|
921
|
+
color: COLORS.blackColor
|
|
922
|
+
},
|
|
923
|
+
children: "DigiKhata will remind customer on selected Date."
|
|
924
|
+
})]
|
|
925
|
+
}), dateOptions?.map((item, index) => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
926
|
+
activeOpacity: 0.8,
|
|
927
|
+
style: Styles._dateOption,
|
|
928
|
+
onPress: () => {
|
|
929
|
+
if (item?.id == 3) {
|
|
930
|
+
showDate(item);
|
|
931
|
+
} else {
|
|
932
|
+
let date = new Date(item?.rawDate);
|
|
933
|
+
let time = new Date(item?.rawDate);
|
|
934
|
+
let formatted = mergeDateTime({
|
|
935
|
+
date,
|
|
936
|
+
time
|
|
937
|
+
});
|
|
938
|
+
onSelectDate(formatted, ClientDetails?.id, item?.id);
|
|
939
|
+
}
|
|
288
940
|
},
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
941
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
942
|
+
style: {
|
|
943
|
+
flexDirection: 'row',
|
|
944
|
+
alignItems: 'center',
|
|
945
|
+
gap: 10
|
|
946
|
+
},
|
|
947
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
948
|
+
name: SelectedDateOption == item?.id ? 'radio-button-on' : 'radio-button-off',
|
|
949
|
+
color: SelectedDateOption == item?.id ? COLORS.primaryColor : COLORS.blackColor,
|
|
950
|
+
size: 22
|
|
951
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
952
|
+
children: item?.name
|
|
953
|
+
})]
|
|
954
|
+
}), item?.date && /*#__PURE__*/_jsxs(View, {
|
|
955
|
+
style: {
|
|
956
|
+
flexDirection: 'row',
|
|
957
|
+
alignItems: 'center',
|
|
958
|
+
gap: 10
|
|
959
|
+
},
|
|
960
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
961
|
+
name: 'calendar-outline',
|
|
962
|
+
color: COLORS.darkGrey,
|
|
963
|
+
size: 18
|
|
964
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
965
|
+
style: {
|
|
966
|
+
color: COLORS.darkGrey,
|
|
967
|
+
fontFamily: FONT_NORMAL,
|
|
968
|
+
fontSize: 11
|
|
969
|
+
},
|
|
970
|
+
children: item?.date
|
|
971
|
+
})]
|
|
972
|
+
})]
|
|
973
|
+
}, index))]
|
|
974
|
+
})
|
|
975
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
976
|
+
isVisible: ReminderModal,
|
|
977
|
+
style: Styles._modal,
|
|
978
|
+
onBackButtonPress: () => setReminderModal(false),
|
|
979
|
+
onBackdropPress: () => setReminderModal(false),
|
|
980
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
981
|
+
style: Styles._modalMain,
|
|
982
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
983
|
+
style: {
|
|
984
|
+
fontFamily: FONT_MEDIUM,
|
|
985
|
+
fontSize: 14,
|
|
986
|
+
color: COLORS.blackColor,
|
|
987
|
+
marginBottom: 40
|
|
988
|
+
},
|
|
989
|
+
children: ["Send Reminder to ", ClientDetails?.name]
|
|
990
|
+
}), /*#__PURE__*/_jsx(ViewShot, {
|
|
991
|
+
ref: ref,
|
|
992
|
+
options: {
|
|
993
|
+
fileName: 'Your-File-Name',
|
|
994
|
+
format: 'jpg',
|
|
995
|
+
quality: 0.9
|
|
996
|
+
},
|
|
997
|
+
style: {
|
|
998
|
+
backgroundColor: COLORS.whiteColor,
|
|
999
|
+
paddingVertical: 20
|
|
292
1000
|
},
|
|
293
|
-
children: /*#__PURE__*/_jsxs(
|
|
294
|
-
style:
|
|
295
|
-
|
|
1001
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
1002
|
+
style: {
|
|
1003
|
+
alignSelf: 'center',
|
|
1004
|
+
alignItems: 'center',
|
|
1005
|
+
gap: 40
|
|
1006
|
+
},
|
|
1007
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
1008
|
+
style: {
|
|
1009
|
+
alignSelf: 'center',
|
|
1010
|
+
alignItems: 'center',
|
|
1011
|
+
gap: 2
|
|
1012
|
+
},
|
|
1013
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
1014
|
+
style: {
|
|
1015
|
+
fontFamily: FONT_MEDIUM,
|
|
1016
|
+
fontSize: 15,
|
|
1017
|
+
color: COLORS.blackColor
|
|
1018
|
+
},
|
|
1019
|
+
children: "Payment Reminder for"
|
|
1020
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
1021
|
+
style: {
|
|
1022
|
+
fontFamily: FONT_MEDIUM,
|
|
1023
|
+
fontSize: 15,
|
|
1024
|
+
color: 'red'
|
|
1025
|
+
},
|
|
1026
|
+
children: ["Rs ", amount]
|
|
1027
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
1028
|
+
style: {
|
|
1029
|
+
fontFamily: FONT_NORMAL,
|
|
1030
|
+
fontSize: 10,
|
|
1031
|
+
color: COLORS.blackColor,
|
|
1032
|
+
opacity: 0.8
|
|
1033
|
+
},
|
|
1034
|
+
children: new Date().toDateString()
|
|
1035
|
+
})]
|
|
1036
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
1037
|
+
style: {
|
|
1038
|
+
alignSelf: 'center',
|
|
1039
|
+
alignItems: 'center',
|
|
1040
|
+
gap: 2
|
|
1041
|
+
},
|
|
1042
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
1043
|
+
style: {
|
|
1044
|
+
fontFamily: FONT_NORMAL,
|
|
1045
|
+
fontSize: 12,
|
|
1046
|
+
color: COLORS.blackColor,
|
|
1047
|
+
opacity: 0.8
|
|
1048
|
+
},
|
|
1049
|
+
children: "Sent by Saud Rehan"
|
|
1050
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
1051
|
+
style: {
|
|
1052
|
+
fontFamily: FONT_NORMAL,
|
|
1053
|
+
fontSize: 10,
|
|
1054
|
+
color: COLORS.blackColor,
|
|
1055
|
+
opacity: 0.6
|
|
1056
|
+
},
|
|
1057
|
+
children: "+92123456789"
|
|
1058
|
+
})]
|
|
1059
|
+
})]
|
|
296
1060
|
})
|
|
297
|
-
})
|
|
298
|
-
|
|
1061
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
1062
|
+
style: {
|
|
1063
|
+
width: '100%',
|
|
1064
|
+
height: 45,
|
|
1065
|
+
backgroundColor: COLORS.primaryColor,
|
|
1066
|
+
alignSelf: 'center',
|
|
1067
|
+
marginTop: 40,
|
|
1068
|
+
justifyContent: 'center',
|
|
1069
|
+
alignItems: 'center',
|
|
1070
|
+
borderRadius: 50
|
|
1071
|
+
},
|
|
1072
|
+
activeOpacity: 0.8,
|
|
1073
|
+
onPress: onCapture,
|
|
1074
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
1075
|
+
style: {
|
|
1076
|
+
color: COLORS.whiteColor,
|
|
1077
|
+
fontFamily: FONT_MEDIUM,
|
|
1078
|
+
fontSize: 13
|
|
1079
|
+
},
|
|
1080
|
+
children: "SEND REMINDER"
|
|
1081
|
+
})
|
|
1082
|
+
})]
|
|
1083
|
+
})
|
|
1084
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
1085
|
+
isVisible: NumberModal,
|
|
1086
|
+
onBackButtonPress: () => setNumberModal(false),
|
|
1087
|
+
onBackdropPress: () => setNumberModal(false),
|
|
1088
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
1089
|
+
style: {
|
|
1090
|
+
width: WP(90),
|
|
1091
|
+
// height: HP(30),
|
|
1092
|
+
backgroundColor: COLORS.whiteColor,
|
|
1093
|
+
borderRadius: 15,
|
|
1094
|
+
paddingHorizontal: 20,
|
|
1095
|
+
paddingVertical: 15,
|
|
1096
|
+
gap: 25
|
|
1097
|
+
},
|
|
1098
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
1099
|
+
style: {
|
|
1100
|
+
color: COLORS.blackColor,
|
|
1101
|
+
fontFamily: FONT_MEDIUM,
|
|
1102
|
+
fontSize: 16
|
|
1103
|
+
},
|
|
1104
|
+
children: "Enter Mobile Number"
|
|
1105
|
+
}), /*#__PURE__*/_jsx(CountryPhoneInput, {
|
|
1106
|
+
contentContainerStyle: {
|
|
1107
|
+
width: '100%'
|
|
1108
|
+
},
|
|
1109
|
+
onChange: text => {
|
|
1110
|
+
setPhoneNum(text?.fullNumber);
|
|
1111
|
+
}
|
|
1112
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
1113
|
+
style: {
|
|
1114
|
+
width: '100%',
|
|
1115
|
+
justifyContent: 'flex-end',
|
|
1116
|
+
alignItems: 'center',
|
|
1117
|
+
flexDirection: 'row',
|
|
1118
|
+
gap: 10
|
|
1119
|
+
},
|
|
1120
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
1121
|
+
activeOpacity: 0.8,
|
|
1122
|
+
style: Styles._numberBtn,
|
|
1123
|
+
onPress: () => {
|
|
1124
|
+
setPhoneNum('');
|
|
1125
|
+
setNumberModal(false);
|
|
1126
|
+
},
|
|
1127
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
1128
|
+
style: Styles._numberTxt,
|
|
1129
|
+
children: "Cancel"
|
|
1130
|
+
})
|
|
1131
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
1132
|
+
activeOpacity: 0.8,
|
|
1133
|
+
style: Styles._numberBtn,
|
|
1134
|
+
onPress: onNumSave,
|
|
1135
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
1136
|
+
style: Styles._numberTxt,
|
|
1137
|
+
children: "Save"
|
|
1138
|
+
})
|
|
1139
|
+
})]
|
|
1140
|
+
})]
|
|
1141
|
+
})
|
|
299
1142
|
})]
|
|
300
1143
|
});
|
|
301
1144
|
}
|
|
@@ -307,22 +1150,22 @@ const Styles = StyleSheet.create({
|
|
|
307
1150
|
_headerMain: {
|
|
308
1151
|
width: WP(100),
|
|
309
1152
|
height: 60,
|
|
310
|
-
flexDirection:
|
|
311
|
-
alignItems:
|
|
312
|
-
justifyContent:
|
|
1153
|
+
flexDirection: 'row',
|
|
1154
|
+
alignItems: 'center',
|
|
1155
|
+
justifyContent: 'space-between'
|
|
313
1156
|
},
|
|
314
1157
|
_dataMain: {
|
|
315
|
-
width:
|
|
316
|
-
height:
|
|
1158
|
+
width: '80%',
|
|
1159
|
+
height: '100%',
|
|
317
1160
|
// backgroundColor: "red",
|
|
318
|
-
justifyContent:
|
|
1161
|
+
justifyContent: 'center'
|
|
319
1162
|
},
|
|
320
1163
|
_nameMain: {
|
|
321
|
-
width:
|
|
322
|
-
height:
|
|
1164
|
+
width: '100%',
|
|
1165
|
+
height: '50%',
|
|
323
1166
|
// backgroundColor: "pink",
|
|
324
|
-
flexDirection:
|
|
325
|
-
alignItems:
|
|
1167
|
+
flexDirection: 'row',
|
|
1168
|
+
alignItems: 'center',
|
|
326
1169
|
gap: 10
|
|
327
1170
|
},
|
|
328
1171
|
_badge: {
|
|
@@ -330,8 +1173,8 @@ const Styles = StyleSheet.create({
|
|
|
330
1173
|
backgroundColor: COLORS.whiteColor,
|
|
331
1174
|
paddingVertical: 2,
|
|
332
1175
|
paddingHorizontal: 5,
|
|
333
|
-
justifyContent:
|
|
334
|
-
alignItems:
|
|
1176
|
+
justifyContent: 'center',
|
|
1177
|
+
alignItems: 'center',
|
|
335
1178
|
borderRadius: 50
|
|
336
1179
|
},
|
|
337
1180
|
_badgeText: {
|
|
@@ -341,8 +1184,8 @@ const Styles = StyleSheet.create({
|
|
|
341
1184
|
},
|
|
342
1185
|
_nameTxt: {
|
|
343
1186
|
color: COLORS.whiteColor,
|
|
344
|
-
fontFamily:
|
|
345
|
-
fontSize:
|
|
1187
|
+
fontFamily: FONT_NORMAL,
|
|
1188
|
+
fontSize: 19
|
|
346
1189
|
},
|
|
347
1190
|
_clickText: {
|
|
348
1191
|
color: COLORS.whiteColor,
|
|
@@ -353,17 +1196,17 @@ const Styles = StyleSheet.create({
|
|
|
353
1196
|
width: WP(100),
|
|
354
1197
|
height: 60,
|
|
355
1198
|
backgroundColor: COLORS.whiteColor,
|
|
356
|
-
position:
|
|
1199
|
+
position: 'absolute',
|
|
357
1200
|
bottom: 0,
|
|
358
|
-
flexDirection:
|
|
359
|
-
justifyContent:
|
|
360
|
-
alignItems:
|
|
1201
|
+
flexDirection: 'row',
|
|
1202
|
+
justifyContent: 'space-between',
|
|
1203
|
+
alignItems: 'center',
|
|
361
1204
|
paddingHorizontal: 25
|
|
362
1205
|
},
|
|
363
1206
|
_btn: {
|
|
364
|
-
width:
|
|
365
|
-
height:
|
|
366
|
-
overflow:
|
|
1207
|
+
width: '49%',
|
|
1208
|
+
height: 50,
|
|
1209
|
+
overflow: 'hidden',
|
|
367
1210
|
borderRadius: 100
|
|
368
1211
|
},
|
|
369
1212
|
_btnTitle: {
|
|
@@ -375,11 +1218,11 @@ const Styles = StyleSheet.create({
|
|
|
375
1218
|
// width: "70%",
|
|
376
1219
|
// height: 40,
|
|
377
1220
|
backgroundColor: COLORS.whiteColor,
|
|
378
|
-
alignSelf:
|
|
1221
|
+
alignSelf: 'center',
|
|
379
1222
|
marginTop: 15,
|
|
380
|
-
borderRadius:
|
|
381
|
-
flexDirection:
|
|
382
|
-
alignItems:
|
|
1223
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1224
|
+
flexDirection: 'row',
|
|
1225
|
+
alignItems: 'center',
|
|
383
1226
|
paddingHorizontal: 10,
|
|
384
1227
|
paddingVertical: 10,
|
|
385
1228
|
gap: 10
|
|
@@ -392,19 +1235,19 @@ const Styles = StyleSheet.create({
|
|
|
392
1235
|
},
|
|
393
1236
|
_contentMain: {
|
|
394
1237
|
flex: 1,
|
|
395
|
-
width:
|
|
1238
|
+
width: '100%',
|
|
396
1239
|
// height: "85%",
|
|
397
1240
|
// backgroundColor: "red",
|
|
398
|
-
alignItems:
|
|
1241
|
+
alignItems: 'center'
|
|
399
1242
|
},
|
|
400
1243
|
_calculationMain: {
|
|
401
|
-
width:
|
|
1244
|
+
width: '95%',
|
|
402
1245
|
height: 80,
|
|
403
1246
|
backgroundColor: COLORS.whiteColor,
|
|
404
|
-
position:
|
|
1247
|
+
position: 'absolute',
|
|
405
1248
|
top: 10,
|
|
406
|
-
borderRadius:
|
|
407
|
-
shadowColor:
|
|
1249
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1250
|
+
shadowColor: '#000',
|
|
408
1251
|
shadowOffset: {
|
|
409
1252
|
width: 0,
|
|
410
1253
|
height: 2
|
|
@@ -412,63 +1255,129 @@ const Styles = StyleSheet.create({
|
|
|
412
1255
|
shadowOpacity: 0.2,
|
|
413
1256
|
shadowRadius: 3.84,
|
|
414
1257
|
elevation: 5,
|
|
415
|
-
justifyContent:
|
|
1258
|
+
justifyContent: 'center',
|
|
416
1259
|
paddingLeft: 20,
|
|
417
1260
|
gap: 2
|
|
418
1261
|
},
|
|
419
1262
|
_optionsMain: {
|
|
420
|
-
width:
|
|
1263
|
+
width: '100%',
|
|
421
1264
|
// height: 80,
|
|
422
1265
|
// backgroundColor: "red",
|
|
423
|
-
marginTop: 60
|
|
1266
|
+
marginTop: 60,
|
|
1267
|
+
marginBottom: 10
|
|
424
1268
|
},
|
|
425
1269
|
_listItem: {
|
|
426
1270
|
width: HP(9),
|
|
427
|
-
height: 65,
|
|
1271
|
+
// height: 65,
|
|
428
1272
|
backgroundColor: COLORS.whiteColor,
|
|
429
|
-
justifyContent:
|
|
430
|
-
alignItems:
|
|
431
|
-
shadowColor:
|
|
1273
|
+
justifyContent: 'center',
|
|
1274
|
+
alignItems: 'center',
|
|
1275
|
+
shadowColor: '#000',
|
|
432
1276
|
shadowOffset: {
|
|
433
1277
|
width: 0,
|
|
434
1278
|
height: 2
|
|
435
1279
|
},
|
|
436
1280
|
shadowOpacity: 0.2,
|
|
437
|
-
shadowRadius:
|
|
1281
|
+
shadowRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
438
1282
|
elevation: 5,
|
|
439
|
-
|
|
440
|
-
borderRadius:
|
|
441
|
-
gap: 5
|
|
1283
|
+
marginVertical: 5,
|
|
1284
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1285
|
+
gap: 5,
|
|
1286
|
+
paddingVertical: 5
|
|
1287
|
+
// marginHorizontal:3
|
|
442
1288
|
},
|
|
443
1289
|
_entriesMain: {
|
|
444
1290
|
flex: 1,
|
|
445
|
-
width:
|
|
1291
|
+
width: '100%',
|
|
446
1292
|
// height: 40,
|
|
447
1293
|
backgroundColor: COLORS.whiteColor,
|
|
448
|
-
paddingHorizontal: 10,
|
|
1294
|
+
// paddingHorizontal: 10,
|
|
449
1295
|
marginTop: 10,
|
|
450
|
-
paddingTop: 10
|
|
1296
|
+
paddingTop: 10,
|
|
1297
|
+
paddingHorizontal: '2.5%'
|
|
451
1298
|
},
|
|
452
1299
|
_tableHeader: {
|
|
453
|
-
width:
|
|
1300
|
+
width: '100%',
|
|
454
1301
|
height: 30,
|
|
455
1302
|
// backgroundColor: "red",
|
|
456
|
-
flexDirection:
|
|
1303
|
+
flexDirection: 'row',
|
|
457
1304
|
marginTop: 10,
|
|
458
|
-
borderBottomColor: COLORS.
|
|
459
|
-
borderBottomWidth: 0.
|
|
1305
|
+
borderBottomColor: COLORS.gray,
|
|
1306
|
+
borderBottomWidth: 0.5
|
|
460
1307
|
},
|
|
461
1308
|
_headerCell: {
|
|
462
|
-
width:
|
|
463
|
-
height:
|
|
1309
|
+
width: '25%',
|
|
1310
|
+
height: '100%',
|
|
464
1311
|
// backgroundColor: "pink",
|
|
465
|
-
justifyContent:
|
|
1312
|
+
justifyContent: 'center',
|
|
466
1313
|
paddingLeft: 5
|
|
467
1314
|
},
|
|
468
1315
|
_headerCellText: {
|
|
469
1316
|
color: COLORS.blackColor,
|
|
470
1317
|
opacity: 0.5,
|
|
471
|
-
fontFamily:
|
|
1318
|
+
fontFamily: FONT_BOLD,
|
|
1319
|
+
fontSize: TEXT_SIZES.TABLE_LABELS
|
|
1320
|
+
},
|
|
1321
|
+
_icon: {
|
|
1322
|
+
width: 40,
|
|
1323
|
+
height: 40,
|
|
1324
|
+
marginHorizontal: 15
|
|
1325
|
+
},
|
|
1326
|
+
_calculationMainBank: {
|
|
1327
|
+
width: '95%',
|
|
1328
|
+
height: 65,
|
|
1329
|
+
backgroundColor: COLORS.whiteColor,
|
|
1330
|
+
position: 'absolute',
|
|
1331
|
+
top: 10,
|
|
1332
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1333
|
+
shadowColor: '#000',
|
|
1334
|
+
shadowOffset: {
|
|
1335
|
+
width: 0,
|
|
1336
|
+
height: 2
|
|
1337
|
+
},
|
|
1338
|
+
shadowOpacity: 0.2,
|
|
1339
|
+
shadowRadius: 3.84,
|
|
1340
|
+
elevation: 5,
|
|
1341
|
+
// justifyContent: "center",
|
|
1342
|
+
paddingLeft: 20,
|
|
1343
|
+
gap: 2,
|
|
1344
|
+
flexDirection: 'row',
|
|
1345
|
+
alignItems: 'center'
|
|
1346
|
+
},
|
|
1347
|
+
_modalMain: {
|
|
1348
|
+
width: WP(100),
|
|
1349
|
+
// height: HP(30),
|
|
1350
|
+
backgroundColor: COLORS.whiteColor,
|
|
1351
|
+
alignSelf: 'center',
|
|
1352
|
+
borderTopRightRadius: 15,
|
|
1353
|
+
borderTopLeftRadius: 15,
|
|
1354
|
+
paddingHorizontal: 20,
|
|
1355
|
+
paddingVertical: 15
|
|
1356
|
+
},
|
|
1357
|
+
_modal: {
|
|
1358
|
+
padding: 0,
|
|
1359
|
+
margin: 0,
|
|
1360
|
+
justifyContent: 'flex-end'
|
|
1361
|
+
},
|
|
1362
|
+
_dateOption: {
|
|
1363
|
+
width: '100%',
|
|
1364
|
+
height: 40,
|
|
1365
|
+
// backgroundColor: "red",
|
|
1366
|
+
marginVertical: 5,
|
|
1367
|
+
flexDirection: 'row',
|
|
1368
|
+
justifyContent: 'space-between',
|
|
1369
|
+
alignItems: 'center'
|
|
1370
|
+
},
|
|
1371
|
+
_numberBtn: {
|
|
1372
|
+
width: 70,
|
|
1373
|
+
height: 40,
|
|
1374
|
+
// backgroundColor:"red",
|
|
1375
|
+
justifyContent: 'center',
|
|
1376
|
+
alignItems: 'center'
|
|
1377
|
+
},
|
|
1378
|
+
_numberTxt: {
|
|
1379
|
+
color: COLORS.primaryColor,
|
|
1380
|
+
fontFamily: FONT_NORMAL,
|
|
472
1381
|
fontSize: 12
|
|
473
1382
|
}
|
|
474
1383
|
});
|