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,846 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View, Text, StyleSheet, TouchableOpacity, FlatList, Image, SafeAreaView, Dimensions, PermissionsAndroid, Platform, Keyboard } from 'react-native';
|
|
4
|
+
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';
|
|
5
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
6
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
7
|
+
import { addCommas, COLORS, FONT_MEDIUM, FONT_NORMAL, formatDateTime, formatDateTimeShort, formatMyDate, formatShortDate, fromJsDateToSql, HP, ICON_SIZES, mergeDateTime, TEXT_SIZES, WP } from "../themes/config.js";
|
|
8
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
9
|
+
import { getClientDetails, getClientTransactions, getTransactionsByClientType, insertPhoneNum, setPayDate } from "../database/clients.js";
|
|
10
|
+
import { BottomView, CountryPhoneInput, SearchBar, Transaction } from "../components/index.js";
|
|
11
|
+
import Modal from 'react-native-modal';
|
|
12
|
+
import { ALL_TRANSACTIONS, CLIENT_DETAILS } 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 { generatePDF } from 'react-native-html-to-pdf';
|
|
17
|
+
import { viewDocument } from '@react-native-documents/viewer';
|
|
18
|
+
import { allTransactionsBanksTemplate, allTransactionsTemplate } from "../htmlTemplates/htmlTemplates.js";
|
|
19
|
+
import RNPrint from 'react-native-print';
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
|
+
let deviceH = Dimensions.get('screen').height;
|
|
22
|
+
let windowH = Dimensions.get('window').height;
|
|
23
|
+
let bottomNavBarH = deviceH - windowH;
|
|
24
|
+
export default function AllTransactions({
|
|
25
|
+
navigation,
|
|
26
|
+
route
|
|
27
|
+
}) {
|
|
28
|
+
const dispatch = useDispatch();
|
|
29
|
+
let clientType = route?.params?.clientType;
|
|
30
|
+
const [StartDate, setStartDate] = useState('');
|
|
31
|
+
const [EndDate, setEndDate] = useState('');
|
|
32
|
+
const [searchTerm, setSearchTerm] = useState('');
|
|
33
|
+
const [IsFilterModal, setIsFilterModal] = useState(false);
|
|
34
|
+
const [SelectedFilter, setSelectedFilter] = useState('All');
|
|
35
|
+
const [IsReverse, setIsReverse] = useState(false);
|
|
36
|
+
const Transactions = useSelector(state => state.client.all_transactions);
|
|
37
|
+
const selectBusiness = useSelector(state => state.client.selected_business);
|
|
38
|
+
const [AllTransactions, setAllTransactions] = useState(Transactions);
|
|
39
|
+
// const homeDetails = route?.params?.homeDetails;
|
|
40
|
+
// let amount = homeDetails?.total_subamount - homeDetails?.total_amount;
|
|
41
|
+
|
|
42
|
+
const showStartDate = () => {
|
|
43
|
+
DateTimePickerAndroid.open({
|
|
44
|
+
value: StartDate || new Date(),
|
|
45
|
+
onChange: onChangeStartDate,
|
|
46
|
+
mode: 'date',
|
|
47
|
+
is24Hour: false,
|
|
48
|
+
// Start date can't be after EndDate (if chosen)
|
|
49
|
+
maximumDate: EndDate || new Date()
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
const onChangeStartDate = async (event, selectedDate) => {
|
|
53
|
+
const currentDate = selectedDate;
|
|
54
|
+
if (event?.type == 'set') {
|
|
55
|
+
setStartDate(currentDate);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const showEndDate = () => {
|
|
59
|
+
DateTimePickerAndroid.open({
|
|
60
|
+
value: EndDate || new Date(),
|
|
61
|
+
onChange: onChangeEndDate,
|
|
62
|
+
mode: 'date',
|
|
63
|
+
is24Hour: false,
|
|
64
|
+
...(StartDate ? {
|
|
65
|
+
minimumDate: StartDate
|
|
66
|
+
} : {}),
|
|
67
|
+
maximumDate: new Date()
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
const onChangeEndDate = async (event, selectedDate) => {
|
|
71
|
+
const currentDate = selectedDate;
|
|
72
|
+
if (event?.type == 'set') {
|
|
73
|
+
setEndDate(currentDate);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const calculateBalances = transactions => {
|
|
77
|
+
let balance = 0;
|
|
78
|
+
const reversed = [...transactions].reverse();
|
|
79
|
+
const withBalances = reversed.map(t => {
|
|
80
|
+
const amount = parseFloat(t.amount) || 0;
|
|
81
|
+
const subamount = parseFloat(t.subamount) || 0;
|
|
82
|
+
balance += subamount - amount;
|
|
83
|
+
return {
|
|
84
|
+
...t,
|
|
85
|
+
balance
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
return withBalances.reverse();
|
|
89
|
+
};
|
|
90
|
+
const [balancesData, setBalancesData] = useState(calculateBalances(AllTransactions));
|
|
91
|
+
const [searchText, setSearchText] = useState('');
|
|
92
|
+
const [filteredData, setFilteredData] = useState(balancesData);
|
|
93
|
+
const handleSearch = text => {
|
|
94
|
+
if (text.trim() === '') {
|
|
95
|
+
// If no text, show full data
|
|
96
|
+
setFilteredData(balancesData);
|
|
97
|
+
} else {
|
|
98
|
+
const filtered = balancesData.filter(item => {
|
|
99
|
+
const nameMatch = item.client_name?.toLowerCase().includes(text.toLowerCase());
|
|
100
|
+
const notesMatch = item.notes?.toLowerCase().includes(text.toLowerCase());
|
|
101
|
+
const amountMatch = item.amount?.toString().includes(text);
|
|
102
|
+
const balanceMatch = item.balance?.toString().includes(text);
|
|
103
|
+
// Add more fields if needed
|
|
104
|
+
return nameMatch || notesMatch || amountMatch || balanceMatch;
|
|
105
|
+
});
|
|
106
|
+
setFilteredData(filtered);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const totalAmount = filteredData.reduce((acc, curr) => acc + Number(curr.amount), 0);
|
|
110
|
+
const totalSubAmount = filteredData.reduce((acc, curr) => acc + Number(curr.subamount), 0);
|
|
111
|
+
const netBalance = Number(totalSubAmount) - Number(totalAmount);
|
|
112
|
+
const totalBalance = balancesData.reduce((acc, curr) => acc + Number(curr.balance), 0);
|
|
113
|
+
let type = 'none';
|
|
114
|
+
if (netBalance > 0) {
|
|
115
|
+
type = 'receivable';
|
|
116
|
+
} else if (netBalance < 0) {
|
|
117
|
+
type = 'payable';
|
|
118
|
+
}
|
|
119
|
+
let html = allTransactionsTemplate(balancesData || [], StartDate, EndDate, netBalance, totalAmount, totalSubAmount, totalBalance, type);
|
|
120
|
+
let html2 = allTransactionsBanksTemplate(balancesData || [], StartDate, EndDate, netBalance, totalAmount, totalSubAmount, totalBalance, type);
|
|
121
|
+
const createPDF = async isPrint => {
|
|
122
|
+
let options = {
|
|
123
|
+
html: clientType == 2 ? html2 : html,
|
|
124
|
+
fileName: 'report',
|
|
125
|
+
base64: false
|
|
126
|
+
};
|
|
127
|
+
let results = await generatePDF(options);
|
|
128
|
+
if (isPrint) {
|
|
129
|
+
await RNPrint.print({
|
|
130
|
+
filePath: results.filePath
|
|
131
|
+
});
|
|
132
|
+
} else {
|
|
133
|
+
viewDocument({
|
|
134
|
+
uri: 'file://' + results?.filePath
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
// console.log(results?.filePath);
|
|
138
|
+
};
|
|
139
|
+
const applyFilter = () => {
|
|
140
|
+
getTransactionsByClientType(clientType, StartDate ? fromJsDateToSql(StartDate) : null, EndDate ? fromJsDateToSql(EndDate) : null, selectBusiness?.id).then(res => {
|
|
141
|
+
dispatch({
|
|
142
|
+
type: ALL_TRANSACTIONS,
|
|
143
|
+
payload: res
|
|
144
|
+
});
|
|
145
|
+
setTimeout(() => {
|
|
146
|
+
setFilteredData(calculateBalances(res));
|
|
147
|
+
}, 300);
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
useEffect(() => {
|
|
151
|
+
applyFilter();
|
|
152
|
+
}, [StartDate, EndDate]);
|
|
153
|
+
useEffect(() => {
|
|
154
|
+
const unsubscribe = navigation.addListener('focus', () => {
|
|
155
|
+
getTransactionsByClientType(clientType, null, null, selectBusiness?.id).then(res => {
|
|
156
|
+
setAllTransactions(res);
|
|
157
|
+
let balances = calculateBalances(res);
|
|
158
|
+
setBalancesData(balances);
|
|
159
|
+
setFilteredData(balances);
|
|
160
|
+
}).catch(err => console.error(err));
|
|
161
|
+
});
|
|
162
|
+
return () => unsubscribe();
|
|
163
|
+
}, [navigation]);
|
|
164
|
+
const showSingleDayDate = () => {
|
|
165
|
+
DateTimePickerAndroid.open({
|
|
166
|
+
value: StartDate || new Date(),
|
|
167
|
+
onChange: onChangeSingleDayDate,
|
|
168
|
+
mode: 'date',
|
|
169
|
+
is24Hour: false,
|
|
170
|
+
maximumDate: new Date()
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
const onChangeSingleDayDate = async (event, selectedDate) => {
|
|
174
|
+
const currentDate = selectedDate;
|
|
175
|
+
if (event?.type == 'set') {
|
|
176
|
+
setSelectedFilter('Single Day');
|
|
177
|
+
setStartDate(currentDate);
|
|
178
|
+
setEndDate(currentDate);
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
const onDateRangePress = () => {
|
|
182
|
+
DateTimePickerAndroid.open({
|
|
183
|
+
value: StartDate || new Date(),
|
|
184
|
+
onChange: (event, selectedStartDate) => {
|
|
185
|
+
if (event.type === 'set' && selectedStartDate) {
|
|
186
|
+
// Save start date
|
|
187
|
+
setStartDate(selectedStartDate);
|
|
188
|
+
|
|
189
|
+
// Open end date picker after a slight delay
|
|
190
|
+
setTimeout(() => {
|
|
191
|
+
DateTimePickerAndroid.open({
|
|
192
|
+
value: EndDate || selectedStartDate,
|
|
193
|
+
onChange: (event2, selectedEndDate) => {
|
|
194
|
+
if (event2.type === 'set' && selectedEndDate) {
|
|
195
|
+
// Validate: end date cannot be before start date
|
|
196
|
+
if (selectedEndDate < selectedStartDate) {
|
|
197
|
+
alert('End date cannot be before Start date');
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
// Save end date
|
|
201
|
+
setEndDate(selectedEndDate);
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
mode: 'date',
|
|
205
|
+
is24Hour: false,
|
|
206
|
+
maximumDate: new Date(),
|
|
207
|
+
// ✅ Only include minimumDate if selectedStartDate exists
|
|
208
|
+
...(selectedStartDate ? {
|
|
209
|
+
minimumDate: selectedStartDate
|
|
210
|
+
} : {})
|
|
211
|
+
});
|
|
212
|
+
}, 300);
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
mode: 'date',
|
|
216
|
+
is24Hour: false,
|
|
217
|
+
maximumDate: new Date()
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
const toggleReverse = () => {
|
|
221
|
+
setIsReverse(!IsReverse);
|
|
222
|
+
};
|
|
223
|
+
const displayedData = useMemo(() => {
|
|
224
|
+
const arr = Array.isArray(filteredData) ? filteredData : [];
|
|
225
|
+
return IsReverse ? [...arr].reverse() : arr;
|
|
226
|
+
}, [IsReverse, filteredData]);
|
|
227
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
228
|
+
children: [/*#__PURE__*/_jsxs(SafeAreaView, {
|
|
229
|
+
style: Styles._mainContainer,
|
|
230
|
+
children: [/*#__PURE__*/_jsxs(LinearGradient, {
|
|
231
|
+
style: Styles._headerMain,
|
|
232
|
+
start: {
|
|
233
|
+
x: 0,
|
|
234
|
+
y: 0
|
|
235
|
+
},
|
|
236
|
+
end: {
|
|
237
|
+
x: 1,
|
|
238
|
+
y: 0
|
|
239
|
+
},
|
|
240
|
+
colors: [COLORS.primaryColor, COLORS.secondaryColor],
|
|
241
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
242
|
+
activeOpacity: 0.8,
|
|
243
|
+
onPress: () => navigation?.goBack(),
|
|
244
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
245
|
+
name: 'chevron-back',
|
|
246
|
+
color: COLORS.whiteColor,
|
|
247
|
+
size: 25
|
|
248
|
+
})
|
|
249
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
250
|
+
style: Styles._headerTitle,
|
|
251
|
+
children: "All Transactions"
|
|
252
|
+
})]
|
|
253
|
+
}), /*#__PURE__*/_jsx(LinearGradient, {
|
|
254
|
+
style: [Styles._headerMain, {
|
|
255
|
+
height: 30
|
|
256
|
+
}],
|
|
257
|
+
start: {
|
|
258
|
+
x: 0,
|
|
259
|
+
y: 0
|
|
260
|
+
},
|
|
261
|
+
end: {
|
|
262
|
+
x: 1,
|
|
263
|
+
y: 0
|
|
264
|
+
},
|
|
265
|
+
colors: [COLORS.primaryColor, COLORS.secondaryColor]
|
|
266
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
267
|
+
style: Styles._searchMain,
|
|
268
|
+
children: /*#__PURE__*/_jsx(SearchBar, {
|
|
269
|
+
containerStyle: {
|
|
270
|
+
height: '90%',
|
|
271
|
+
width: '100%'
|
|
272
|
+
// borderRadius: 0,
|
|
273
|
+
// borderTopWidth: 0,
|
|
274
|
+
// borderBottomWidth: 0,
|
|
275
|
+
// borderLeftWidth: 0,
|
|
276
|
+
// borderRightWidth: 0,
|
|
277
|
+
// borderWidth:0
|
|
278
|
+
},
|
|
279
|
+
onChangeText: text => {
|
|
280
|
+
setSearchText(text);
|
|
281
|
+
handleSearch(text);
|
|
282
|
+
},
|
|
283
|
+
filterLabel: SelectedFilter // 👈 will appear inside input
|
|
284
|
+
,
|
|
285
|
+
onFilterPress: () => {
|
|
286
|
+
Keyboard.dismiss(); // 👈 first dismiss keyboard
|
|
287
|
+
setIsFilterModal(true); // 👈 then open filter modal
|
|
288
|
+
}
|
|
289
|
+
})
|
|
290
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
291
|
+
style: [Styles._searchMain, {
|
|
292
|
+
position: 'relative',
|
|
293
|
+
top: 25,
|
|
294
|
+
alignItems: 'center'
|
|
295
|
+
}],
|
|
296
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
297
|
+
activeOpacity: 0.8,
|
|
298
|
+
style: {
|
|
299
|
+
flexDirection: 'row',
|
|
300
|
+
width: '50%',
|
|
301
|
+
height: '80%',
|
|
302
|
+
justifyContent: 'center',
|
|
303
|
+
alignItems: 'center',
|
|
304
|
+
gap: 8,
|
|
305
|
+
borderRightColor: COLORS.gray,
|
|
306
|
+
borderRightWidth: 1
|
|
307
|
+
},
|
|
308
|
+
onPress: showStartDate,
|
|
309
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
310
|
+
name: 'calendar-outline',
|
|
311
|
+
color: COLORS.primaryColor,
|
|
312
|
+
size: 22
|
|
313
|
+
}), StartDate ? /*#__PURE__*/_jsxs(View, {
|
|
314
|
+
style: {
|
|
315
|
+
flexDirection: 'row',
|
|
316
|
+
alignItems: 'center',
|
|
317
|
+
gap: 7
|
|
318
|
+
},
|
|
319
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
320
|
+
style: {
|
|
321
|
+
color: COLORS.primaryColor,
|
|
322
|
+
fontFamily: FONT_NORMAL,
|
|
323
|
+
fontSize: 12
|
|
324
|
+
},
|
|
325
|
+
children: formatShortDate(StartDate)
|
|
326
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
327
|
+
activeOpacity: 0.8,
|
|
328
|
+
style: {
|
|
329
|
+
backgroundColor: 'red',
|
|
330
|
+
justifyContent: 'center',
|
|
331
|
+
alignItems: 'center',
|
|
332
|
+
width: 15,
|
|
333
|
+
height: 15,
|
|
334
|
+
borderRadius: 50
|
|
335
|
+
},
|
|
336
|
+
onPress: () => {
|
|
337
|
+
setStartDate('');
|
|
338
|
+
setSelectedFilter('All');
|
|
339
|
+
},
|
|
340
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
341
|
+
name: 'close',
|
|
342
|
+
color: 'white',
|
|
343
|
+
size: 12
|
|
344
|
+
})
|
|
345
|
+
})]
|
|
346
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
347
|
+
style: {
|
|
348
|
+
color: COLORS.primaryColor,
|
|
349
|
+
fontFamily: FONT_NORMAL,
|
|
350
|
+
fontSize: 12
|
|
351
|
+
},
|
|
352
|
+
children: "Start Date"
|
|
353
|
+
})]
|
|
354
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
355
|
+
activeOpacity: 0.8,
|
|
356
|
+
style: {
|
|
357
|
+
flexDirection: 'row',
|
|
358
|
+
width: '50%',
|
|
359
|
+
height: '80%',
|
|
360
|
+
justifyContent: 'center',
|
|
361
|
+
alignItems: 'center',
|
|
362
|
+
gap: 8
|
|
363
|
+
},
|
|
364
|
+
onPress: showEndDate,
|
|
365
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
366
|
+
name: 'calendar-outline',
|
|
367
|
+
color: COLORS.primaryColor,
|
|
368
|
+
size: 22
|
|
369
|
+
}), EndDate ? /*#__PURE__*/_jsxs(View, {
|
|
370
|
+
style: {
|
|
371
|
+
flexDirection: 'row',
|
|
372
|
+
alignItems: 'center',
|
|
373
|
+
gap: 7
|
|
374
|
+
},
|
|
375
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
376
|
+
style: {
|
|
377
|
+
color: COLORS.primaryColor,
|
|
378
|
+
fontFamily: FONT_NORMAL,
|
|
379
|
+
fontSize: 12
|
|
380
|
+
},
|
|
381
|
+
children: formatShortDate(EndDate)
|
|
382
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
383
|
+
activeOpacity: 0.8,
|
|
384
|
+
style: {
|
|
385
|
+
backgroundColor: 'red',
|
|
386
|
+
justifyContent: 'center',
|
|
387
|
+
alignItems: 'center',
|
|
388
|
+
width: 15,
|
|
389
|
+
height: 15,
|
|
390
|
+
borderRadius: 50
|
|
391
|
+
},
|
|
392
|
+
onPress: () => {
|
|
393
|
+
setEndDate('');
|
|
394
|
+
setSelectedFilter('All');
|
|
395
|
+
},
|
|
396
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
397
|
+
name: 'close',
|
|
398
|
+
color: 'white',
|
|
399
|
+
size: 12
|
|
400
|
+
})
|
|
401
|
+
})]
|
|
402
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
403
|
+
style: {
|
|
404
|
+
color: COLORS.primaryColor,
|
|
405
|
+
fontFamily: FONT_NORMAL,
|
|
406
|
+
fontSize: 12
|
|
407
|
+
},
|
|
408
|
+
children: "End Date"
|
|
409
|
+
})]
|
|
410
|
+
})]
|
|
411
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
412
|
+
style: Styles._netBalanceMain,
|
|
413
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
414
|
+
style: {
|
|
415
|
+
color: COLORS.blackColor,
|
|
416
|
+
fontFamily: FONT_MEDIUM,
|
|
417
|
+
fontSize: 12
|
|
418
|
+
},
|
|
419
|
+
children: "Net Balance"
|
|
420
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
421
|
+
style: {
|
|
422
|
+
color: type == 'receivable' ? 'green' : 'red',
|
|
423
|
+
fontFamily: FONT_MEDIUM,
|
|
424
|
+
fontSize: 12
|
|
425
|
+
},
|
|
426
|
+
children: ["Rs ", addCommas(Math.abs(netBalance))]
|
|
427
|
+
})]
|
|
428
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
429
|
+
style: Styles._tableHeader,
|
|
430
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
431
|
+
activeOpacity: 0.8,
|
|
432
|
+
onPress: toggleReverse,
|
|
433
|
+
style: [Styles._headerCell, {
|
|
434
|
+
width: '50%',
|
|
435
|
+
flexDirection: 'row',
|
|
436
|
+
justifyContent: 'flex-start',
|
|
437
|
+
alignItems: 'center',
|
|
438
|
+
gap: 10
|
|
439
|
+
}],
|
|
440
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
441
|
+
name: IsReverse ? 'arrow-down' : 'arrow-up',
|
|
442
|
+
color: COLORS.primaryColor,
|
|
443
|
+
size: 24
|
|
444
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
445
|
+
style: {
|
|
446
|
+
gap: 3
|
|
447
|
+
},
|
|
448
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
449
|
+
style: Styles._headerCellText,
|
|
450
|
+
children: "Entries"
|
|
451
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
452
|
+
style: Styles._tableCal,
|
|
453
|
+
children: filteredData?.length
|
|
454
|
+
})]
|
|
455
|
+
})]
|
|
456
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
457
|
+
style: [Styles._headerCell, {
|
|
458
|
+
alignItems: 'flex-end'
|
|
459
|
+
}],
|
|
460
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
461
|
+
style: Styles._headerCellText,
|
|
462
|
+
children: clientType == 0 || clientType == 'all' ? 'You Gave' : clientType == 1 ? 'Payment' : 'In'
|
|
463
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
464
|
+
style: [Styles._tableCal, {
|
|
465
|
+
color: 'red'
|
|
466
|
+
}],
|
|
467
|
+
children: ["Rs ", addCommas(totalAmount)]
|
|
468
|
+
})]
|
|
469
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
470
|
+
style: [Styles._headerCell, {
|
|
471
|
+
alignItems: 'flex-end'
|
|
472
|
+
}],
|
|
473
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
474
|
+
style: Styles._headerCellText,
|
|
475
|
+
children: clientType == 0 || clientType == 'all' ? 'You Got' : clientType == 1 ? 'Purchase' : 'Out'
|
|
476
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
477
|
+
style: [Styles._tableCal, {
|
|
478
|
+
color: 'green'
|
|
479
|
+
}],
|
|
480
|
+
children: ["Rs ", addCommas(totalSubAmount)]
|
|
481
|
+
})]
|
|
482
|
+
})]
|
|
483
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
484
|
+
data: displayedData,
|
|
485
|
+
keyExtractor: (item, index) => index.toString(),
|
|
486
|
+
scrollEnabled: true,
|
|
487
|
+
contentContainerStyle: {
|
|
488
|
+
paddingBottom: 150,
|
|
489
|
+
paddingHorizontal: 5
|
|
490
|
+
},
|
|
491
|
+
renderItem: ({
|
|
492
|
+
item,
|
|
493
|
+
index
|
|
494
|
+
}) => /*#__PURE__*/_jsx(Transaction, {
|
|
495
|
+
name: item?.client_name,
|
|
496
|
+
balance: item.balance,
|
|
497
|
+
isAttachment: item?.attachments?.length || item?.local_path ? true : false,
|
|
498
|
+
notes: item?.notes,
|
|
499
|
+
date: formatDateTimeShort(item?.date),
|
|
500
|
+
firstCell: item?.amount,
|
|
501
|
+
secondCell: item?.subamount,
|
|
502
|
+
fromAllTransactions: true,
|
|
503
|
+
phone: item?.client_phone,
|
|
504
|
+
client_local_path: item?.client_local_path,
|
|
505
|
+
fromBanks: item?.client_type == 2 && true,
|
|
506
|
+
item: item,
|
|
507
|
+
onPress: () => {
|
|
508
|
+
getClientDetails(item?.customer_id).then(res => {
|
|
509
|
+
dispatch({
|
|
510
|
+
type: CLIENT_DETAILS,
|
|
511
|
+
payload: res
|
|
512
|
+
});
|
|
513
|
+
navigation.navigate('TransactionDetails', {
|
|
514
|
+
item
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
})
|
|
519
|
+
}), /*#__PURE__*/_jsxs(BottomView, {
|
|
520
|
+
style: Styles._btnsMain,
|
|
521
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
522
|
+
style: Styles._btn,
|
|
523
|
+
onPress: () => createPDF(),
|
|
524
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
525
|
+
name: 'document-outline',
|
|
526
|
+
color: 'red',
|
|
527
|
+
size: ICON_SIZES.ACTION
|
|
528
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
529
|
+
style: {
|
|
530
|
+
color: 'red',
|
|
531
|
+
fontFamily: FONT_MEDIUM,
|
|
532
|
+
fontSize: TEXT_SIZES.BUTTON_TEXT
|
|
533
|
+
},
|
|
534
|
+
children: "PDF"
|
|
535
|
+
})]
|
|
536
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
537
|
+
activeOpacity: 0.8,
|
|
538
|
+
style: Styles._printButton,
|
|
539
|
+
onPress: () => createPDF(true),
|
|
540
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
541
|
+
name: 'print-outline',
|
|
542
|
+
color: COLORS.blackColor,
|
|
543
|
+
size: ICON_SIZES.ACTION
|
|
544
|
+
})
|
|
545
|
+
})]
|
|
546
|
+
})]
|
|
547
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
548
|
+
isVisible: IsFilterModal,
|
|
549
|
+
style: Styles._modal,
|
|
550
|
+
onBackButtonPress: () => setIsFilterModal(false),
|
|
551
|
+
onBackdropPress: () => setIsFilterModal(false),
|
|
552
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
553
|
+
style: Styles._modalMain,
|
|
554
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
555
|
+
style: Styles._modalTitle,
|
|
556
|
+
children: "Select Report Duration"
|
|
557
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
558
|
+
style: Styles._optionsMain,
|
|
559
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
560
|
+
style: Styles._option,
|
|
561
|
+
activeOpacity: 0.8,
|
|
562
|
+
onPress: () => {
|
|
563
|
+
setSelectedFilter('All');
|
|
564
|
+
setIsFilterModal(false);
|
|
565
|
+
setStartDate('');
|
|
566
|
+
setEndDate('');
|
|
567
|
+
getTransactionsByClientType(clientType, null, null, selectBusiness?.id).then(res => {
|
|
568
|
+
dispatch({
|
|
569
|
+
type: ALL_TRANSACTIONS,
|
|
570
|
+
payload: res
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
},
|
|
574
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
575
|
+
style: [Styles._optionTitle, {
|
|
576
|
+
color: SelectedFilter === 'All' ? COLORS.primaryColor : COLORS.blackColor
|
|
577
|
+
}],
|
|
578
|
+
children: "All"
|
|
579
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
580
|
+
name: SelectedFilter === 'All' ? 'radio-button-on' : 'radio-button-off',
|
|
581
|
+
color: SelectedFilter === 'All' ? COLORS.primaryColor : COLORS.darkGrey,
|
|
582
|
+
size: 25
|
|
583
|
+
})]
|
|
584
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
585
|
+
style: Styles._option,
|
|
586
|
+
activeOpacity: 0.8,
|
|
587
|
+
onPress: () => {
|
|
588
|
+
setSelectedFilter('This Month');
|
|
589
|
+
setIsFilterModal(false);
|
|
590
|
+
let now = new Date();
|
|
591
|
+
let start = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
592
|
+
let end = new Date(now.getFullYear(), now.getMonth() + 1, 0, 23, 59, 59);
|
|
593
|
+
setStartDate(start);
|
|
594
|
+
setEndDate(end);
|
|
595
|
+
},
|
|
596
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
597
|
+
style: [Styles._optionTitle, {
|
|
598
|
+
color: SelectedFilter === 'This Month' ? COLORS.primaryColor : COLORS.blackColor
|
|
599
|
+
}],
|
|
600
|
+
children: "This Month"
|
|
601
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
602
|
+
name: SelectedFilter === 'This Month' ? 'radio-button-on' : 'radio-button-off',
|
|
603
|
+
color: SelectedFilter === 'This Month' ? COLORS.primaryColor : COLORS.darkGrey,
|
|
604
|
+
size: 25
|
|
605
|
+
})]
|
|
606
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
607
|
+
style: Styles._option,
|
|
608
|
+
activeOpacity: 0.8,
|
|
609
|
+
onPress: () => {
|
|
610
|
+
setIsFilterModal(false);
|
|
611
|
+
showSingleDayDate();
|
|
612
|
+
},
|
|
613
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
614
|
+
style: [Styles._optionTitle, {
|
|
615
|
+
color: SelectedFilter === 'Single Day' ? COLORS.primaryColor : COLORS.blackColor
|
|
616
|
+
}],
|
|
617
|
+
children: "Single Day"
|
|
618
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
619
|
+
name: SelectedFilter === 'Single Day' ? 'radio-button-on' : 'radio-button-off',
|
|
620
|
+
color: SelectedFilter === 'Single Day' ? COLORS.primaryColor : COLORS.darkGrey,
|
|
621
|
+
size: 25
|
|
622
|
+
})]
|
|
623
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
624
|
+
style: Styles._option,
|
|
625
|
+
activeOpacity: 0.8,
|
|
626
|
+
onPress: () => {
|
|
627
|
+
setSelectedFilter('Last Week');
|
|
628
|
+
setIsFilterModal(false);
|
|
629
|
+
let now = new Date();
|
|
630
|
+
let dayOfWeek = now.getDay();
|
|
631
|
+
let lastSunday = new Date(now);
|
|
632
|
+
lastSunday.setDate(lastSunday.getDate() - dayOfWeek - 1);
|
|
633
|
+
lastSunday.setHours(23, 59, 59, 999);
|
|
634
|
+
let prevSunday = new Date(lastSunday);
|
|
635
|
+
prevSunday.setDate(prevSunday.getDate() - 6);
|
|
636
|
+
prevSunday.setHours(0, 0, 0, 0);
|
|
637
|
+
setStartDate(prevSunday);
|
|
638
|
+
setEndDate(lastSunday);
|
|
639
|
+
},
|
|
640
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
641
|
+
style: [Styles._optionTitle, {
|
|
642
|
+
color: SelectedFilter === 'Last Week' ? COLORS.primaryColor : COLORS.blackColor
|
|
643
|
+
}],
|
|
644
|
+
children: "Last Week"
|
|
645
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
646
|
+
name: SelectedFilter === 'Last Week' ? 'radio-button-on' : 'radio-button-off',
|
|
647
|
+
color: SelectedFilter === 'Last Week' ? COLORS.primaryColor : COLORS.darkGrey,
|
|
648
|
+
size: 25
|
|
649
|
+
})]
|
|
650
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
651
|
+
style: Styles._option,
|
|
652
|
+
activeOpacity: 0.8,
|
|
653
|
+
onPress: () => {
|
|
654
|
+
setSelectedFilter('Last Month');
|
|
655
|
+
setIsFilterModal(false);
|
|
656
|
+
let now = new Date();
|
|
657
|
+
let start = new Date(now.getFullYear(), now.getMonth() - 1, 1);
|
|
658
|
+
start.setHours(0, 0, 0, 0);
|
|
659
|
+
let end = new Date(now.getFullYear(), now.getMonth(), 0);
|
|
660
|
+
end.setHours(23, 59, 59, 999);
|
|
661
|
+
setStartDate(start);
|
|
662
|
+
setEndDate(end);
|
|
663
|
+
},
|
|
664
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
665
|
+
style: [Styles._optionTitle, {
|
|
666
|
+
color: SelectedFilter === 'Last Month' ? COLORS.primaryColor : COLORS.blackColor
|
|
667
|
+
}],
|
|
668
|
+
children: "Last Month"
|
|
669
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
670
|
+
name: SelectedFilter === 'Last Month' ? 'radio-button-on' : 'radio-button-off',
|
|
671
|
+
color: SelectedFilter === 'Last Month' ? COLORS.primaryColor : COLORS.darkGrey,
|
|
672
|
+
size: 25
|
|
673
|
+
})]
|
|
674
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
675
|
+
style: Styles._option,
|
|
676
|
+
activeOpacity: 0.8,
|
|
677
|
+
onPress: () => {
|
|
678
|
+
setSelectedFilter('Date Range');
|
|
679
|
+
setIsFilterModal(false);
|
|
680
|
+
onDateRangePress();
|
|
681
|
+
},
|
|
682
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
683
|
+
style: [Styles._optionTitle, {
|
|
684
|
+
color: SelectedFilter === 'Date Range' ? COLORS.primaryColor : COLORS.blackColor
|
|
685
|
+
}],
|
|
686
|
+
children: "Date Range"
|
|
687
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
688
|
+
name: SelectedFilter === 'Date Range' ? 'radio-button-on' : 'radio-button-off',
|
|
689
|
+
color: SelectedFilter === 'Date Range' ? COLORS.primaryColor : COLORS.darkGrey,
|
|
690
|
+
size: 25
|
|
691
|
+
})]
|
|
692
|
+
})]
|
|
693
|
+
})]
|
|
694
|
+
})
|
|
695
|
+
})]
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
const Styles = StyleSheet.create({
|
|
699
|
+
_mainContainer: {
|
|
700
|
+
flex: 1,
|
|
701
|
+
backgroundColor: COLORS.backgroundColor
|
|
702
|
+
},
|
|
703
|
+
_headerMain: {
|
|
704
|
+
width: WP(100),
|
|
705
|
+
height: 60,
|
|
706
|
+
flexDirection: 'row',
|
|
707
|
+
alignItems: 'center',
|
|
708
|
+
// justifyContent: "space-between",
|
|
709
|
+
paddingHorizontal: Platform.OS == 'android' && 10,
|
|
710
|
+
gap: 15
|
|
711
|
+
},
|
|
712
|
+
_headerTitle: {
|
|
713
|
+
color: COLORS.whiteColor,
|
|
714
|
+
fontFamily: FONT_NORMAL,
|
|
715
|
+
fontSize: 15
|
|
716
|
+
},
|
|
717
|
+
_searchMain: {
|
|
718
|
+
width: '95%',
|
|
719
|
+
height: 45,
|
|
720
|
+
backgroundColor: COLORS.whiteColor,
|
|
721
|
+
alignSelf: 'center',
|
|
722
|
+
position: 'absolute',
|
|
723
|
+
top: 60,
|
|
724
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
725
|
+
shadowColor: '#000',
|
|
726
|
+
shadowOffset: {
|
|
727
|
+
width: 0,
|
|
728
|
+
height: 2
|
|
729
|
+
},
|
|
730
|
+
shadowOpacity: 0.2,
|
|
731
|
+
shadowRadius: 3.84,
|
|
732
|
+
elevation: 5,
|
|
733
|
+
flexDirection: 'row',
|
|
734
|
+
alignItems: 'center',
|
|
735
|
+
overflow: 'hidden'
|
|
736
|
+
},
|
|
737
|
+
_netBalanceMain: {
|
|
738
|
+
width: '100%',
|
|
739
|
+
height: 45,
|
|
740
|
+
backgroundColor: COLORS.whiteColor,
|
|
741
|
+
marginTop: 35,
|
|
742
|
+
flexDirection: 'row',
|
|
743
|
+
justifyContent: 'space-between',
|
|
744
|
+
alignItems: 'center',
|
|
745
|
+
paddingHorizontal: 15
|
|
746
|
+
},
|
|
747
|
+
_tableHeader: {
|
|
748
|
+
width: '100%',
|
|
749
|
+
// height: 30,
|
|
750
|
+
// backgroundColor: "red",
|
|
751
|
+
flexDirection: 'row',
|
|
752
|
+
marginTop: 10,
|
|
753
|
+
borderBottomColor: COLORS.darkGrey,
|
|
754
|
+
borderBottomWidth: 0.7,
|
|
755
|
+
paddingHorizontal: 10
|
|
756
|
+
},
|
|
757
|
+
_headerCell: {
|
|
758
|
+
width: '25%',
|
|
759
|
+
// height: "100%",
|
|
760
|
+
// backgroundColor: "pink",
|
|
761
|
+
justifyContent: 'center',
|
|
762
|
+
paddingLeft: 5,
|
|
763
|
+
paddingVertical: 5,
|
|
764
|
+
gap: 3
|
|
765
|
+
},
|
|
766
|
+
_headerCellText: {
|
|
767
|
+
color: COLORS.blackColor,
|
|
768
|
+
opacity: 0.5,
|
|
769
|
+
fontFamily: FONT_MEDIUM,
|
|
770
|
+
fontSize: 10
|
|
771
|
+
},
|
|
772
|
+
_tableCal: {
|
|
773
|
+
color: COLORS.blackColor,
|
|
774
|
+
fontFamily: FONT_NORMAL,
|
|
775
|
+
fontSize: 10
|
|
776
|
+
},
|
|
777
|
+
_btnsMain: {
|
|
778
|
+
width: WP(100),
|
|
779
|
+
// height: 70,
|
|
780
|
+
backgroundColor: COLORS.whiteColor,
|
|
781
|
+
position: 'absolute',
|
|
782
|
+
// bottom: bottomNavBarH,
|
|
783
|
+
bottom: 0,
|
|
784
|
+
flexDirection: 'row',
|
|
785
|
+
justifyContent: 'space-between',
|
|
786
|
+
// alignItems: "center",
|
|
787
|
+
paddingHorizontal: 10,
|
|
788
|
+
paddingTop: 8
|
|
789
|
+
},
|
|
790
|
+
_printButton: {
|
|
791
|
+
width: 50,
|
|
792
|
+
height: 50,
|
|
793
|
+
backgroundColor: COLORS.yellowColor,
|
|
794
|
+
borderRadius: 100,
|
|
795
|
+
justifyContent: 'center',
|
|
796
|
+
alignItems: 'center'
|
|
797
|
+
},
|
|
798
|
+
_btn: {
|
|
799
|
+
width: '85%',
|
|
800
|
+
height: 50,
|
|
801
|
+
borderColor: 'red',
|
|
802
|
+
borderWidth: 1,
|
|
803
|
+
borderRadius: 100,
|
|
804
|
+
flexDirection: 'row',
|
|
805
|
+
justifyContent: 'center',
|
|
806
|
+
alignItems: 'center',
|
|
807
|
+
gap: 3
|
|
808
|
+
},
|
|
809
|
+
_modal: {
|
|
810
|
+
margin: 0,
|
|
811
|
+
padding: 0,
|
|
812
|
+
justifyContent: 'flex-end'
|
|
813
|
+
},
|
|
814
|
+
_modalMain: {
|
|
815
|
+
width: WP(100),
|
|
816
|
+
// height: HP(45),
|
|
817
|
+
backgroundColor: COLORS.whiteColor,
|
|
818
|
+
borderTopRightRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
819
|
+
borderTopLeftRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
820
|
+
paddingHorizontal: 20,
|
|
821
|
+
paddingTop: 15
|
|
822
|
+
},
|
|
823
|
+
_modalTitle: {
|
|
824
|
+
color: COLORS.blackColor,
|
|
825
|
+
fontFamily: FONT_MEDIUM,
|
|
826
|
+
fontSize: 14
|
|
827
|
+
},
|
|
828
|
+
_optionsMain: {
|
|
829
|
+
paddingTop: 15
|
|
830
|
+
},
|
|
831
|
+
_option: {
|
|
832
|
+
width: '100%',
|
|
833
|
+
height: 45,
|
|
834
|
+
// backgroundColor: "red",
|
|
835
|
+
alignSelf: 'center',
|
|
836
|
+
flexDirection: 'row',
|
|
837
|
+
justifyContent: 'space-between',
|
|
838
|
+
alignItems: 'center'
|
|
839
|
+
},
|
|
840
|
+
_optionTitle: {
|
|
841
|
+
color: COLORS.blackColor,
|
|
842
|
+
fontFamily: FONT_NORMAL,
|
|
843
|
+
fontSize: 14
|
|
844
|
+
}
|
|
845
|
+
});
|
|
846
|
+
//# sourceMappingURL=AllTransactions.js.map
|