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