digikhata-mashreq-sdk 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/App.js +13 -26
- package/lib/module/App.js.map +1 -1
- package/lib/module/app/api/api.js +12 -0
- package/lib/module/app/api/api.js.map +1 -0
- package/lib/module/app/assets/Icons/Bill.png +0 -0
- package/lib/module/app/assets/Icons/Bill_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Cash.png +0 -0
- package/lib/module/app/assets/Icons/Cash_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Expense.png +0 -0
- package/lib/module/app/assets/Icons/Expense_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Staff.png +0 -0
- package/lib/module/app/assets/Icons/Stock.png +0 -0
- package/lib/module/app/assets/Icons/Stock_Grey.png +0 -0
- package/lib/module/app/assets/Icons/abc.png +0 -0
- package/lib/module/app/assets/Icons/bank_logo.png +0 -0
- package/lib/module/app/assets/Icons/download_sale.png +0 -0
- package/lib/module/app/assets/Icons/recycle-bin.png +0 -0
- package/lib/module/app/assets/animations/recording.json +1 -0
- package/lib/module/app/assets/animations/success.json +1 -0
- package/lib/module/app/assets/animations/voice_visualization.json +1 -0
- package/lib/module/app/assets/businessCards/card_11.png +0 -0
- package/lib/module/app/assets/businessCards/card_12_bg.png +0 -0
- package/lib/module/app/assets/businessCards/card_wall_01.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_02.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_03.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_04.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_05.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_06.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_07.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_08.jpeg +0 -0
- package/lib/module/app/assets/illustrations/empty.png +0 -0
- package/lib/module/app/assets/illustrations/packages.png +0 -0
- package/lib/module/app/assets/images/Digikhata_idzarHgH0q_0.png +0 -0
- package/lib/module/app/assets/images/bank.png +0 -0
- package/lib/module/app/assets/images/digiLogo-main.png +0 -0
- package/lib/module/app/assets/images/svgviewer-output.svg +57 -0
- package/lib/module/app/assets/images/user.png +0 -0
- package/lib/module/app/assets/oldIcons/BILL.svg +3 -0
- package/lib/module/app/assets/oldIcons/CASH.svg +4 -0
- package/lib/module/app/assets/oldIcons/EXPENSE.svg +6 -0
- package/lib/module/app/assets/oldIcons/STAFF.svg +3 -0
- package/lib/module/app/assets/oldIcons/Sale Active.svg +14 -0
- package/lib/module/app/assets/oldIcons/Stock.svg +5 -0
- package/lib/module/app/assets/svg/BILL.svg +4 -0
- package/lib/module/app/assets/svg/CASH.svg +6 -0
- package/lib/module/app/assets/svg/EXPENSE.svg +5 -0
- package/lib/module/app/assets/svg/More Icon.svg +6 -0
- package/lib/module/app/assets/svg/Payment Icon.svg +4 -0
- package/lib/module/app/assets/svg/Pos.svg +13 -0
- package/lib/module/app/assets/svg/STAFF.svg +5 -0
- package/lib/module/app/assets/svg/Sale Active.svg +8 -0
- package/lib/module/app/assets/svg/Sale Icon.svg +3 -0
- package/lib/module/app/assets/svg/Stock.svg +5 -0
- package/lib/module/app/components/AccountSetupSteps.js +64 -0
- package/lib/module/app/components/AccountSetupSteps.js.map +1 -0
- package/lib/module/app/components/AddItemBillParent.js +366 -0
- package/lib/module/app/components/AddItemBillParent.js.map +1 -0
- package/lib/module/app/components/AdditemBillChild.js +1123 -0
- package/lib/module/app/components/AdditemBillChild.js.map +1 -0
- package/lib/module/app/components/Balance.js +116 -70
- package/lib/module/app/components/Balance.js.map +1 -1
- package/lib/module/app/components/BillList.js +428 -0
- package/lib/module/app/components/BillList.js.map +1 -0
- package/lib/module/app/components/BillSetupSteps.js +64 -0
- package/lib/module/app/components/BillSetupSteps.js.map +1 -0
- package/lib/module/app/components/BottomView.js +35 -0
- package/lib/module/app/components/BottomView.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card1.js +202 -0
- package/lib/module/app/components/BusinessCards/Card1.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card10.js +234 -0
- package/lib/module/app/components/BusinessCards/Card10.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card2.js +190 -0
- package/lib/module/app/components/BusinessCards/Card2.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card3.js +186 -0
- package/lib/module/app/components/BusinessCards/Card3.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card4.js +186 -0
- package/lib/module/app/components/BusinessCards/Card4.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card5.js +189 -0
- package/lib/module/app/components/BusinessCards/Card5.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card6.js +198 -0
- package/lib/module/app/components/BusinessCards/Card6.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card7.js +185 -0
- package/lib/module/app/components/BusinessCards/Card7.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card8.js +187 -0
- package/lib/module/app/components/BusinessCards/Card8.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card9.js +234 -0
- package/lib/module/app/components/BusinessCards/Card9.js.map +1 -0
- package/lib/module/app/components/BusinessCards/index.js +13 -0
- package/lib/module/app/components/BusinessCards/index.js.map +1 -0
- package/lib/module/app/components/CashEntryComponent.js +256 -0
- package/lib/module/app/components/CashEntryComponent.js.map +1 -0
- package/lib/module/app/components/CityModal.js +116 -0
- package/lib/module/app/components/CityModal.js.map +1 -0
- package/lib/module/app/components/CountryPhoneInput.js +263 -166
- package/lib/module/app/components/CountryPhoneInput.js.map +1 -1
- package/lib/module/app/components/CreateExpenseAccount.js +139 -0
- package/lib/module/app/components/CreateExpenseAccount.js.map +1 -0
- package/lib/module/app/components/CustomStatusBar.js +29 -0
- package/lib/module/app/components/CustomStatusBar.js.map +1 -0
- package/lib/module/app/components/CustomToast.js +135 -0
- package/lib/module/app/components/CustomToast.js.map +1 -0
- package/lib/module/app/components/DeleteBusinessModal.js +174 -0
- package/lib/module/app/components/DeleteBusinessModal.js.map +1 -0
- package/lib/module/app/components/DiscountTaxModal.js +242 -0
- package/lib/module/app/components/DiscountTaxModal.js.map +1 -0
- package/lib/module/app/components/Entries.js +54 -32
- package/lib/module/app/components/Entries.js.map +1 -1
- package/lib/module/app/components/ExpenseList.js +402 -0
- package/lib/module/app/components/ExpenseList.js.map +1 -0
- package/lib/module/app/components/ExpenseParent.js +441 -0
- package/lib/module/app/components/ExpenseParent.js.map +1 -0
- package/lib/module/app/components/FloatingInput.js +159 -0
- package/lib/module/app/components/FloatingInput.js.map +1 -0
- package/lib/module/app/components/Header.js +107 -0
- package/lib/module/app/components/Header.js.map +1 -0
- package/lib/module/app/components/Loader.js +45 -0
- package/lib/module/app/components/Loader.js.map +1 -0
- package/lib/module/app/components/PartyModal.js +230 -0
- package/lib/module/app/components/PartyModal.js.map +1 -0
- package/lib/module/app/components/PickerModal.js +153 -0
- package/lib/module/app/components/PickerModal.js.map +1 -0
- package/lib/module/app/components/SalePaymentModal.js +743 -0
- package/lib/module/app/components/SalePaymentModal.js.map +1 -0
- package/lib/module/app/components/SearchBar.js +179 -42
- package/lib/module/app/components/SearchBar.js.map +1 -1
- package/lib/module/app/components/StockDetailChild.js +425 -0
- package/lib/module/app/components/StockDetailChild.js.map +1 -0
- package/lib/module/app/components/StockList.js +448 -0
- package/lib/module/app/components/StockList.js.map +1 -0
- package/lib/module/app/components/StockReportTransaction.js +182 -0
- package/lib/module/app/components/StockReportTransaction.js.map +1 -0
- package/lib/module/app/components/Transaction.js +193 -53
- package/lib/module/app/components/Transaction.js.map +1 -1
- package/lib/module/app/components/User.js +106 -51
- package/lib/module/app/components/User.js.map +1 -1
- package/lib/module/app/components/index.js +20 -1
- package/lib/module/app/components/index.js.map +1 -1
- package/lib/module/app/database/bill.js +247 -0
- package/lib/module/app/database/bill.js.map +1 -0
- package/lib/module/app/database/business.js +262 -0
- package/lib/module/app/database/business.js.map +1 -0
- package/lib/module/app/database/cash.js +299 -0
- package/lib/module/app/database/cash.js.map +1 -0
- package/lib/module/app/database/clients.js +1182 -36
- package/lib/module/app/database/clients.js.map +1 -1
- package/lib/module/app/database/expense.js +299 -0
- package/lib/module/app/database/expense.js.map +1 -0
- package/lib/module/app/database/schema.js +113 -3
- package/lib/module/app/database/schema.js.map +1 -1
- package/lib/module/app/database/stock.js +509 -0
- package/lib/module/app/database/stock.js.map +1 -0
- package/lib/module/app/htmlTemplates/htmlTemplates.js +2504 -0
- package/lib/module/app/htmlTemplates/htmlTemplates.js.map +1 -0
- package/lib/module/app/navigation/BillStack/BillStack.js +40 -0
- package/lib/module/app/navigation/BillStack/BillStack.js.map +1 -0
- package/lib/module/app/navigation/BottomTabs/BottomTabs.js +10 -5
- package/lib/module/app/navigation/BottomTabs/BottomTabs.js.map +1 -1
- package/lib/module/app/navigation/BusinessStack/BusinessStack.js +30 -0
- package/lib/module/app/navigation/BusinessStack/BusinessStack.js.map +1 -0
- package/lib/module/app/navigation/CashStack/CashStack.js +79 -0
- package/lib/module/app/navigation/CashStack/CashStack.js.map +1 -0
- package/lib/module/app/navigation/EntriesStack/EntriesStack.js +223 -0
- package/lib/module/app/navigation/EntriesStack/EntriesStack.js.map +1 -0
- package/lib/module/app/navigation/ExpenseStack.js/ExpenseStack.js +37 -0
- package/lib/module/app/navigation/ExpenseStack.js/ExpenseStack.js.map +1 -0
- package/lib/module/app/navigation/HomeStack/HomeStack.js +93 -1
- package/lib/module/app/navigation/HomeStack/HomeStack.js.map +1 -1
- package/lib/module/app/navigation/Root.js +10 -1
- package/lib/module/app/navigation/Root.js.map +1 -1
- package/lib/module/app/navigation/SaleStack/SaleStack.js +73 -0
- package/lib/module/app/navigation/SaleStack/SaleStack.js.map +1 -0
- package/lib/module/app/navigation/StockStack/StockStack.js +49 -0
- package/lib/module/app/navigation/StockStack/StockStack.js.map +1 -0
- package/lib/module/app/navigation/index.js +3 -1
- package/lib/module/app/navigation/index.js.map +1 -1
- package/lib/module/app/redux/Store.js +3 -1
- package/lib/module/app/redux/Store.js.map +1 -1
- package/lib/module/app/redux/reducers/client/client_reducers.js +23 -2
- package/lib/module/app/redux/reducers/client/client_reducers.js.map +1 -1
- package/lib/module/app/redux/reducers/client/client_types.js +5 -0
- package/lib/module/app/redux/reducers/client/client_types.js.map +1 -1
- package/lib/module/app/redux/reducers/user/user_reducers.js +22 -0
- package/lib/module/app/redux/reducers/user/user_reducers.js.map +1 -0
- package/lib/module/app/redux/reducers/user/user_types.js +6 -0
- package/lib/module/app/redux/reducers/user/user_types.js.map +1 -0
- package/lib/module/app/screens/AddBank.js +237 -0
- package/lib/module/app/screens/AddBank.js.map +1 -0
- package/lib/module/app/screens/AddBusiness.js +905 -0
- package/lib/module/app/screens/AddBusiness.js.map +1 -0
- package/lib/module/app/screens/AddItems.js +433 -0
- package/lib/module/app/screens/AddItems.js.map +1 -0
- package/lib/module/app/screens/AddScreen.js +341 -77
- package/lib/module/app/screens/AddScreen.js.map +1 -1
- package/lib/module/app/screens/All.js +836 -0
- package/lib/module/app/screens/All.js.map +1 -0
- package/lib/module/app/screens/AllTransactions.js +846 -0
- package/lib/module/app/screens/AllTransactions.js.map +1 -0
- package/lib/module/app/screens/Banks.js +807 -48
- package/lib/module/app/screens/Banks.js.map +1 -1
- package/lib/module/app/screens/BillDetails.js +1033 -0
- package/lib/module/app/screens/BillDetails.js.map +1 -0
- package/lib/module/app/screens/BillHome.js +102 -0
- package/lib/module/app/screens/BillHome.js.map +1 -0
- package/lib/module/app/screens/BillParent.js +373 -0
- package/lib/module/app/screens/BillParent.js.map +1 -0
- package/lib/module/app/screens/BusinessDetail.js +787 -0
- package/lib/module/app/screens/BusinessDetail.js.map +1 -0
- package/lib/module/app/screens/CashEntry.js +2429 -0
- package/lib/module/app/screens/CashEntry.js.map +1 -0
- package/lib/module/app/screens/CashEntryDetails.js +574 -0
- package/lib/module/app/screens/CashEntryDetails.js.map +1 -0
- package/lib/module/app/screens/CashHome.js +544 -0
- package/lib/module/app/screens/CashHome.js.map +1 -0
- package/lib/module/app/screens/CashReport.js +1297 -0
- package/lib/module/app/screens/CashReport.js.map +1 -0
- package/lib/module/app/screens/CashSummary.js +602 -0
- package/lib/module/app/screens/CashSummary.js.map +1 -0
- package/lib/module/app/screens/CreateBill.js +2137 -0
- package/lib/module/app/screens/CreateBill.js.map +1 -0
- package/lib/module/app/screens/CustomerEntries.js +1093 -184
- package/lib/module/app/screens/CustomerEntries.js.map +1 -1
- package/lib/module/app/screens/Customers.js +727 -96
- package/lib/module/app/screens/Customers.js.map +1 -1
- package/lib/module/app/screens/EditCategory.js +299 -0
- package/lib/module/app/screens/EditCategory.js.map +1 -0
- package/lib/module/app/screens/EditCategoryStock.js +302 -0
- package/lib/module/app/screens/EditCategoryStock.js.map +1 -0
- package/lib/module/app/screens/Entry.js +1838 -275
- package/lib/module/app/screens/Entry.js.map +1 -1
- package/lib/module/app/screens/ExpenseDetail.js +15 -0
- package/lib/module/app/screens/ExpenseDetail.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntries.js +713 -0
- package/lib/module/app/screens/ExpenseEntries.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntry.js +2095 -0
- package/lib/module/app/screens/ExpenseEntry.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntryDetails.js +508 -0
- package/lib/module/app/screens/ExpenseEntryDetails.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntryReport.js +792 -0
- package/lib/module/app/screens/ExpenseEntryReport.js.map +1 -0
- package/lib/module/app/screens/ExpenseReport.js +792 -0
- package/lib/module/app/screens/ExpenseReport.js.map +1 -0
- package/lib/module/app/screens/Geolocation.js +374 -0
- package/lib/module/app/screens/Geolocation.js.map +1 -0
- package/lib/module/app/screens/GetStarted.js +213 -0
- package/lib/module/app/screens/GetStarted.js.map +1 -0
- package/lib/module/app/screens/HomeScreen.js +202 -55
- package/lib/module/app/screens/HomeScreen.js.map +1 -1
- package/lib/module/app/screens/InBuy.js +854 -0
- package/lib/module/app/screens/InBuy.js.map +1 -0
- package/lib/module/app/screens/ItemEntryDetails.js +652 -0
- package/lib/module/app/screens/ItemEntryDetails.js.map +1 -0
- package/lib/module/app/screens/LowStock.js +372 -0
- package/lib/module/app/screens/LowStock.js.map +1 -0
- package/lib/module/app/screens/NewPin.js +234 -0
- package/lib/module/app/screens/NewPin.js.map +1 -0
- package/lib/module/app/screens/OutSell.js +1883 -0
- package/lib/module/app/screens/OutSell.js.map +1 -0
- package/lib/module/app/screens/POSSale.js +637 -0
- package/lib/module/app/screens/POSSale.js.map +1 -0
- package/lib/module/app/screens/PinScreen.js +663 -0
- package/lib/module/app/screens/PinScreen.js.map +1 -0
- package/lib/module/app/screens/PreviewBill.js +329 -0
- package/lib/module/app/screens/PreviewBill.js.map +1 -0
- package/lib/module/app/screens/Profile.js +1160 -0
- package/lib/module/app/screens/Profile.js.map +1 -0
- package/lib/module/app/screens/RateList.js +432 -0
- package/lib/module/app/screens/RateList.js.map +1 -0
- package/lib/module/app/screens/Report.js +1105 -0
- package/lib/module/app/screens/Report.js.map +1 -0
- package/lib/module/app/screens/SaleItemDetail.js +1047 -0
- package/lib/module/app/screens/SaleItemDetail.js.map +1 -0
- package/lib/module/app/screens/SaleParent.js +289 -0
- package/lib/module/app/screens/SaleParent.js.map +1 -0
- package/lib/module/app/screens/SelectBank.js +220 -0
- package/lib/module/app/screens/SelectBank.js.map +1 -0
- package/lib/module/app/screens/SelectBusiness.js +497 -93
- package/lib/module/app/screens/SelectBusiness.js.map +1 -1
- package/lib/module/app/screens/Splash.js +93 -20
- package/lib/module/app/screens/Splash.js.map +1 -1
- package/lib/module/app/screens/StockChild.js +362 -0
- package/lib/module/app/screens/StockChild.js.map +1 -0
- package/lib/module/app/screens/StockDetail.js +705 -0
- package/lib/module/app/screens/StockDetail.js.map +1 -0
- package/lib/module/app/screens/StockParent.js +260 -0
- package/lib/module/app/screens/StockParent.js.map +1 -0
- package/lib/module/app/screens/StockReport.js +1031 -0
- package/lib/module/app/screens/StockReport.js.map +1 -0
- package/lib/module/app/screens/StockValue.js +545 -0
- package/lib/module/app/screens/StockValue.js.map +1 -0
- package/lib/module/app/screens/Suppliers.js +753 -98
- package/lib/module/app/screens/Suppliers.js.map +1 -1
- package/lib/module/app/screens/TransactionDetails.js +1169 -81
- package/lib/module/app/screens/TransactionDetails.js.map +1 -1
- package/lib/module/app/screens/UpdateBusiness.js +707 -0
- package/lib/module/app/screens/UpdateBusiness.js.map +1 -0
- package/lib/module/app/screens/VisionCamera.js +60 -0
- package/lib/module/app/screens/VisionCamera.js.map +1 -0
- package/lib/module/app/screens/index.js +46 -1
- package/lib/module/app/screens/index.js.map +1 -1
- package/lib/module/app/screens/new.html +171 -0
- package/lib/module/app/themes/config.js +299 -30
- package/lib/module/app/themes/config.js.map +1 -1
- package/lib/module/app/utils/city.json +7265 -0
- package/lib/typescript/eslint.config.d.mts +1 -1
- package/lib/typescript/src/App.d.ts.map +1 -1
- package/lib/typescript/src/app/api/api.d.ts +10 -0
- package/lib/typescript/src/app/api/api.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AccountSetupSteps.d.ts +3 -0
- package/lib/typescript/src/app/components/AccountSetupSteps.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AddItemBillParent.d.ts +5 -0
- package/lib/typescript/src/app/components/AddItemBillParent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AdditemBillChild.d.ts +6 -0
- package/lib/typescript/src/app/components/AdditemBillChild.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Balance.d.ts +3 -1
- package/lib/typescript/src/app/components/Balance.d.ts.map +1 -1
- package/lib/typescript/src/app/components/BillList.d.ts +5 -0
- package/lib/typescript/src/app/components/BillList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BillSetupSteps.d.ts +3 -0
- package/lib/typescript/src/app/components/BillSetupSteps.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BottomView.d.ts +6 -0
- package/lib/typescript/src/app/components/BottomView.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card1.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card1.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card10.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card10.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card2.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card2.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card3.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card3.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card4.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card4.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card5.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card5.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card6.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card6.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card7.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card7.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card8.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card8.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card9.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card9.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/index.d.ts +11 -0
- package/lib/typescript/src/app/components/BusinessCards/index.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CashEntryComponent.d.ts +8 -0
- package/lib/typescript/src/app/components/CashEntryComponent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CityModal.d.ts +7 -0
- package/lib/typescript/src/app/components/CityModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CountryPhoneInput.d.ts +4 -1
- package/lib/typescript/src/app/components/CountryPhoneInput.d.ts.map +1 -1
- package/lib/typescript/src/app/components/CreateExpenseAccount.d.ts +9 -0
- package/lib/typescript/src/app/components/CreateExpenseAccount.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CustomStatusBar.d.ts +3 -0
- package/lib/typescript/src/app/components/CustomStatusBar.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CustomToast.d.ts +10 -0
- package/lib/typescript/src/app/components/CustomToast.d.ts.map +1 -0
- package/lib/typescript/src/app/components/DeleteBusinessModal.d.ts +8 -0
- package/lib/typescript/src/app/components/DeleteBusinessModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/DiscountTaxModal.d.ts +9 -0
- package/lib/typescript/src/app/components/DiscountTaxModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Entries.d.ts.map +1 -1
- package/lib/typescript/src/app/components/ExpenseList.d.ts +6 -0
- package/lib/typescript/src/app/components/ExpenseList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/ExpenseParent.d.ts +4 -0
- package/lib/typescript/src/app/components/ExpenseParent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/FloatingInput.d.ts +18 -0
- package/lib/typescript/src/app/components/FloatingInput.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Header.d.ts +11 -0
- package/lib/typescript/src/app/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Loader.d.ts +5 -0
- package/lib/typescript/src/app/components/Loader.d.ts.map +1 -0
- package/lib/typescript/src/app/components/PartyModal.d.ts +7 -0
- package/lib/typescript/src/app/components/PartyModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/PickerModal.d.ts +8 -0
- package/lib/typescript/src/app/components/PickerModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/SalePaymentModal.d.ts +15 -0
- package/lib/typescript/src/app/components/SalePaymentModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/SearchBar.d.ts +2 -4
- package/lib/typescript/src/app/components/SearchBar.d.ts.map +1 -1
- package/lib/typescript/src/app/components/StockDetailChild.d.ts +5 -0
- package/lib/typescript/src/app/components/StockDetailChild.d.ts.map +1 -0
- package/lib/typescript/src/app/components/StockList.d.ts +6 -0
- package/lib/typescript/src/app/components/StockList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/StockReportTransaction.d.ts +18 -0
- package/lib/typescript/src/app/components/StockReportTransaction.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Transaction.d.ts +9 -2
- package/lib/typescript/src/app/components/Transaction.d.ts.map +1 -1
- package/lib/typescript/src/app/components/User.d.ts +3 -1
- package/lib/typescript/src/app/components/User.d.ts.map +1 -1
- package/lib/typescript/src/app/components/index.d.ts +26 -7
- package/lib/typescript/src/app/components/index.d.ts.map +1 -1
- package/lib/typescript/src/app/database/bill.d.ts +7 -0
- package/lib/typescript/src/app/database/bill.d.ts.map +1 -0
- package/lib/typescript/src/app/database/business.d.ts +9 -0
- package/lib/typescript/src/app/database/business.d.ts.map +1 -0
- package/lib/typescript/src/app/database/cash.d.ts +14 -0
- package/lib/typescript/src/app/database/cash.d.ts.map +1 -0
- package/lib/typescript/src/app/database/clients.d.ts +36 -5
- package/lib/typescript/src/app/database/clients.d.ts.map +1 -1
- package/lib/typescript/src/app/database/expense.d.ts +12 -0
- package/lib/typescript/src/app/database/expense.d.ts.map +1 -0
- package/lib/typescript/src/app/database/schema.d.ts.map +1 -1
- package/lib/typescript/src/app/database/stock.d.ts +16 -0
- package/lib/typescript/src/app/database/stock.d.ts.map +1 -0
- package/lib/typescript/src/app/htmlTemplates/htmlTemplates.d.ts +29 -0
- package/lib/typescript/src/app/htmlTemplates/htmlTemplates.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/BillStack/BillStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/BillStack/BillStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/BottomTabs/BottomTabs.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/BusinessStack/BusinessStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/BusinessStack/BusinessStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/CashStack/CashStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/CashStack/CashStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/EntriesStack/EntriesStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/EntriesStack/EntriesStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/ExpenseStack.js/ExpenseStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/ExpenseStack.js/ExpenseStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/HomeStack/HomeStack.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/Root.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/SaleStack/SaleStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/SaleStack/SaleStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/StockStack/StockStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/StockStack/StockStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/index.d.ts +3 -1
- package/lib/typescript/src/app/navigation/index.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/Store.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/client/client_reducers.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts +5 -0
- package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/user/user_reducers.d.ts +3 -0
- package/lib/typescript/src/app/redux/reducers/user/user_reducers.d.ts.map +1 -0
- package/lib/typescript/src/app/redux/reducers/user/user_types.d.ts +4 -0
- package/lib/typescript/src/app/redux/reducers/user/user_types.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddBank.d.ts +5 -0
- package/lib/typescript/src/app/screens/AddBank.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddBusiness.d.ts +4 -0
- package/lib/typescript/src/app/screens/AddBusiness.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddItems.d.ts +5 -0
- package/lib/typescript/src/app/screens/AddItems.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddScreen.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/All.d.ts +2 -0
- package/lib/typescript/src/app/screens/All.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AllTransactions.d.ts +5 -0
- package/lib/typescript/src/app/screens/AllTransactions.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Banks.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/BillDetails.d.ts +6 -0
- package/lib/typescript/src/app/screens/BillDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BillHome.d.ts +5 -0
- package/lib/typescript/src/app/screens/BillHome.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BillParent.d.ts +5 -0
- package/lib/typescript/src/app/screens/BillParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BusinessDetail.d.ts +4 -0
- package/lib/typescript/src/app/screens/BusinessDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashEntry.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashEntry.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashHome.d.ts +4 -0
- package/lib/typescript/src/app/screens/CashHome.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashReport.d.ts +4 -0
- package/lib/typescript/src/app/screens/CashReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashSummary.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashSummary.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CreateBill.d.ts +5 -0
- package/lib/typescript/src/app/screens/CreateBill.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CustomerEntries.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/Customers.d.ts +1 -3
- package/lib/typescript/src/app/screens/Customers.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/EditCategory.d.ts +4 -0
- package/lib/typescript/src/app/screens/EditCategory.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/EditCategoryStock.d.ts +4 -0
- package/lib/typescript/src/app/screens/EditCategoryStock.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Entry.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/ExpenseDetail.d.ts +3 -0
- package/lib/typescript/src/app/screens/ExpenseDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntries.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntries.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntry.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntry.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntryReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntryReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Geolocation.d.ts +5 -0
- package/lib/typescript/src/app/screens/Geolocation.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/GetStarted.d.ts +4 -0
- package/lib/typescript/src/app/screens/GetStarted.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/HomeScreen.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/InBuy.d.ts +5 -0
- package/lib/typescript/src/app/screens/InBuy.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ItemEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/ItemEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/LowStock.d.ts +4 -0
- package/lib/typescript/src/app/screens/LowStock.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/NewPin.d.ts +5 -0
- package/lib/typescript/src/app/screens/NewPin.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/OutSell.d.ts +6 -0
- package/lib/typescript/src/app/screens/OutSell.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/POSSale.d.ts +9 -0
- package/lib/typescript/src/app/screens/POSSale.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/PinScreen.d.ts +5 -0
- package/lib/typescript/src/app/screens/PinScreen.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/PreviewBill.d.ts +5 -0
- package/lib/typescript/src/app/screens/PreviewBill.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Profile.d.ts +5 -0
- package/lib/typescript/src/app/screens/Profile.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/RateList.d.ts +5 -0
- package/lib/typescript/src/app/screens/RateList.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Report.d.ts +5 -0
- package/lib/typescript/src/app/screens/Report.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SaleItemDetail.d.ts +6 -0
- package/lib/typescript/src/app/screens/SaleItemDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SaleParent.d.ts +2 -0
- package/lib/typescript/src/app/screens/SaleParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SelectBank.d.ts +4 -0
- package/lib/typescript/src/app/screens/SelectBank.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SelectBusiness.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/Splash.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/StockChild.d.ts +7 -0
- package/lib/typescript/src/app/screens/StockChild.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockDetail.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockParent.d.ts +2 -0
- package/lib/typescript/src/app/screens/StockParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockValue.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockValue.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Suppliers.d.ts +1 -3
- package/lib/typescript/src/app/screens/Suppliers.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/TransactionDetails.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/UpdateBusiness.d.ts +5 -0
- package/lib/typescript/src/app/screens/UpdateBusiness.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/VisionCamera.d.ts +2 -0
- package/lib/typescript/src/app/screens/VisionCamera.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/index.d.ts +56 -11
- package/lib/typescript/src/app/screens/index.d.ts.map +1 -1
- package/lib/typescript/src/app/themes/config.d.ts +60 -8
- package/lib/typescript/src/app/themes/config.d.ts.map +1 -1
- package/package.json +6 -2
- package/src/App.js +30 -34
- package/src/app/api/api.js +11 -0
- package/src/app/assets/Icons/Bill.png +0 -0
- package/src/app/assets/Icons/Bill_Grey.png +0 -0
- package/src/app/assets/Icons/Cash.png +0 -0
- package/src/app/assets/Icons/Cash_Grey.png +0 -0
- package/src/app/assets/Icons/Expense.png +0 -0
- package/src/app/assets/Icons/Expense_Grey.png +0 -0
- package/src/app/assets/Icons/Staff.png +0 -0
- package/src/app/assets/Icons/Stock.png +0 -0
- package/src/app/assets/Icons/Stock_Grey.png +0 -0
- package/src/app/assets/Icons/abc.png +0 -0
- package/src/app/assets/Icons/bank_logo.png +0 -0
- package/src/app/assets/Icons/download_sale.png +0 -0
- package/src/app/assets/Icons/recycle-bin.png +0 -0
- package/src/app/assets/animations/recording.json +1 -0
- package/src/app/assets/animations/success.json +1 -0
- package/src/app/assets/animations/voice_visualization.json +1 -0
- package/src/app/assets/businessCards/card_11.png +0 -0
- package/src/app/assets/businessCards/card_12_bg.png +0 -0
- package/src/app/assets/businessCards/card_wall_01.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_02.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_03.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_04.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_05.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_06.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_07.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_08.jpeg +0 -0
- package/src/app/assets/illustrations/empty.png +0 -0
- package/src/app/assets/illustrations/packages.png +0 -0
- package/src/app/assets/images/Digikhata_idzarHgH0q_0.png +0 -0
- package/src/app/assets/images/bank.png +0 -0
- package/src/app/assets/images/digiLogo-main.png +0 -0
- package/src/app/assets/images/svgviewer-output.svg +57 -0
- package/src/app/assets/images/user.png +0 -0
- package/src/app/assets/oldIcons/BILL.svg +3 -0
- package/src/app/assets/oldIcons/CASH.svg +4 -0
- package/src/app/assets/oldIcons/EXPENSE.svg +6 -0
- package/src/app/assets/oldIcons/STAFF.svg +3 -0
- package/src/app/assets/oldIcons/Sale Active.svg +14 -0
- package/src/app/assets/oldIcons/Stock.svg +5 -0
- package/src/app/assets/svg/BILL.svg +4 -0
- package/src/app/assets/svg/CASH.svg +6 -0
- package/src/app/assets/svg/EXPENSE.svg +5 -0
- package/src/app/assets/svg/More Icon.svg +6 -0
- package/src/app/assets/svg/Payment Icon.svg +4 -0
- package/src/app/assets/svg/Pos.svg +13 -0
- package/src/app/assets/svg/STAFF.svg +5 -0
- package/src/app/assets/svg/Sale Active.svg +8 -0
- package/src/app/assets/svg/Sale Icon.svg +3 -0
- package/src/app/assets/svg/Stock.svg +5 -0
- package/src/app/components/AccountSetupSteps.js +58 -0
- package/src/app/components/AddItemBillParent.js +373 -0
- package/src/app/components/AdditemBillChild.js +1257 -0
- package/src/app/components/Balance.js +211 -114
- package/src/app/components/BillList.js +548 -0
- package/src/app/components/BillSetupSteps.js +56 -0
- package/src/app/components/BottomView.js +39 -0
- package/src/app/components/BusinessCards/Card1.js +160 -0
- package/src/app/components/BusinessCards/Card10.js +209 -0
- package/src/app/components/BusinessCards/Card2.js +148 -0
- package/src/app/components/BusinessCards/Card3.js +147 -0
- package/src/app/components/BusinessCards/Card4.js +147 -0
- package/src/app/components/BusinessCards/Card5.js +151 -0
- package/src/app/components/BusinessCards/Card6.js +157 -0
- package/src/app/components/BusinessCards/Card7.js +146 -0
- package/src/app/components/BusinessCards/Card8.js +170 -0
- package/src/app/components/BusinessCards/Card9.js +209 -0
- package/src/app/components/BusinessCards/index.js +10 -0
- package/src/app/components/CashEntryComponent.js +297 -0
- package/src/app/components/CityModal.js +117 -0
- package/src/app/components/CountryPhoneInput.js +373 -267
- package/src/app/components/CreateExpenseAccount.js +141 -0
- package/src/app/components/CustomStatusBar.js +33 -0
- package/src/app/components/CustomToast.js +143 -0
- package/src/app/components/DeleteBusinessModal.js +196 -0
- package/src/app/components/DiscountTaxModal.js +256 -0
- package/src/app/components/Entries.js +87 -67
- package/src/app/components/ExpenseList.js +507 -0
- package/src/app/components/ExpenseParent.js +446 -0
- package/src/app/components/FloatingInput.js +188 -0
- package/src/app/components/Header.js +121 -0
- package/src/app/components/Loader.js +35 -0
- package/src/app/components/PartyModal.js +213 -0
- package/src/app/components/PickerModal.js +176 -0
- package/src/app/components/SalePaymentModal.js +822 -0
- package/src/app/components/SearchBar.js +225 -47
- package/src/app/components/StockDetailChild.js +461 -0
- package/src/app/components/StockList.js +582 -0
- package/src/app/components/StockReportTransaction.js +192 -0
- package/src/app/components/Transaction.js +277 -86
- package/src/app/components/User.js +188 -80
- package/src/app/components/index.js +51 -13
- package/src/app/database/bill.js +305 -0
- package/src/app/database/business.js +499 -0
- package/src/app/database/cash.js +451 -0
- package/src/app/database/clients.js +1536 -43
- package/src/app/database/expense.js +439 -0
- package/src/app/database/schema.js +115 -4
- package/src/app/database/stock.js +724 -0
- package/src/app/htmlTemplates/htmlTemplates.js +2603 -0
- package/src/app/navigation/BillStack/BillStack.js +38 -0
- package/src/app/navigation/BottomTabs/BottomTabs.js +24 -19
- package/src/app/navigation/BusinessStack/BusinessStack.js +27 -0
- package/src/app/navigation/CashStack/CashStack.js +59 -0
- package/src/app/navigation/EntriesStack/EntriesStack.js +186 -0
- package/src/app/navigation/ExpenseStack.js/ExpenseStack.js +50 -0
- package/src/app/navigation/HomeStack/HomeStack.js +106 -39
- package/src/app/navigation/Root.js +16 -1
- package/src/app/navigation/SaleStack/SaleStack.js +62 -0
- package/src/app/navigation/StockStack/StockStack.js +48 -0
- package/src/app/navigation/index.js +5 -1
- package/src/app/redux/Store.js +2 -0
- package/src/app/redux/reducers/client/client_reducers.js +31 -2
- package/src/app/redux/reducers/client/client_types.js +8 -1
- package/src/app/redux/reducers/user/user_reducers.js +24 -0
- package/src/app/redux/reducers/user/user_types.js +3 -0
- package/src/app/screens/AddBank.js +353 -0
- package/src/app/screens/AddBusiness.js +1161 -0
- package/src/app/screens/AddItems.js +515 -0
- package/src/app/screens/AddScreen.js +525 -165
- package/src/app/screens/All.js +1074 -0
- package/src/app/screens/AllTransactions.js +1138 -0
- package/src/app/screens/Banks.js +1134 -133
- package/src/app/screens/BillDetails.js +989 -0
- package/src/app/screens/BillHome.js +97 -0
- package/src/app/screens/BillParent.js +419 -0
- package/src/app/screens/BusinessDetail.js +939 -0
- package/src/app/screens/CashEntry.js +2913 -0
- package/src/app/screens/CashEntryDetails.js +650 -0
- package/src/app/screens/CashHome.js +594 -0
- package/src/app/screens/CashReport.js +1658 -0
- package/src/app/screens/CashSummary.js +607 -0
- package/src/app/screens/CreateBill.js +2504 -0
- package/src/app/screens/CustomerEntries.js +1578 -350
- package/src/app/screens/Customers.js +1066 -213
- package/src/app/screens/EditCategory.js +316 -0
- package/src/app/screens/EditCategoryStock.js +320 -0
- package/src/app/screens/Entry.js +2555 -585
- package/src/app/screens/ExpenseDetail.js +14 -0
- package/src/app/screens/ExpenseEntries.js +837 -0
- package/src/app/screens/ExpenseEntry.js +2478 -0
- package/src/app/screens/ExpenseEntryDetails.js +612 -0
- package/src/app/screens/ExpenseEntryReport.js +1059 -0
- package/src/app/screens/ExpenseReport.js +1071 -0
- package/src/app/screens/Geolocation.js +435 -0
- package/src/app/screens/GetStarted.js +201 -0
- package/src/app/screens/HomeScreen.js +368 -132
- package/src/app/screens/InBuy.js +918 -0
- package/src/app/screens/ItemEntryDetails.js +582 -0
- package/src/app/screens/LowStock.js +417 -0
- package/src/app/screens/NewPin.js +225 -0
- package/src/app/screens/OutSell.js +2153 -0
- package/src/app/screens/POSSale.js +639 -0
- package/src/app/screens/PinScreen.js +720 -0
- package/src/app/screens/PreviewBill.js +302 -0
- package/src/app/screens/Profile.js +1594 -0
- package/src/app/screens/RateList.js +525 -0
- package/src/app/screens/Report.js +1401 -0
- package/src/app/screens/SaleItemDetail.js +1187 -0
- package/src/app/screens/SaleParent.js +345 -0
- package/src/app/screens/SelectBank.js +220 -0
- package/src/app/screens/SelectBusiness.js +670 -163
- package/src/app/screens/Splash.js +96 -15
- package/src/app/screens/StockChild.js +372 -0
- package/src/app/screens/StockDetail.js +758 -0
- package/src/app/screens/StockParent.js +287 -0
- package/src/app/screens/StockReport.js +1359 -0
- package/src/app/screens/StockValue.js +720 -0
- package/src/app/screens/Suppliers.js +1098 -205
- package/src/app/screens/TransactionDetails.js +1674 -180
- package/src/app/screens/UpdateBusiness.js +837 -0
- package/src/app/screens/VisionCamera.js +54 -0
- package/src/app/screens/index.js +111 -21
- package/src/app/screens/new.html +171 -0
- package/src/app/themes/config.js +431 -114
- package/src/app/utils/city.json +7265 -0
|
@@ -1,28 +1,362 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { View, Text, StyleSheet, TouchableOpacity, FlatList, ScrollView, Image } from 'react-native';
|
|
4
|
-
import React, { useState, useEffect } from 'react';
|
|
3
|
+
import { View, Text, StyleSheet, TouchableOpacity, FlatList, ScrollView, Image, Alert, TextInput, Platform, PermissionsAndroid, Linking, BackHandler } from 'react-native';
|
|
4
|
+
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
|
5
5
|
import LinearGradient from 'react-native-linear-gradient';
|
|
6
|
-
import Ionicons from
|
|
7
|
-
import { COLORS, FONT_MEDIUM, FONT_NORMAL, formatDateTime, getAvatar, HP, isPdfFile, WP } from "../themes/config.js";
|
|
8
|
-
import { useSelector } from
|
|
9
|
-
import { getClientTransactions } from "../database/clients.js";
|
|
10
|
-
import { SearchBar, Transaction } from "../components/index.js";
|
|
6
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
7
|
+
import { addCommas, COLORS, FONT_BOLD, FONT_MEDIUM, FONT_NORMAL, formatDateTime, formatDateTimeShort, formatPhoneNumber, getAvatar, HP, ICON_SIZES, Input_Field_SIZES, isPdfFile, TEXT_SIZES, WP } from "../themes/config.js";
|
|
8
|
+
import { useSelector } from 'react-redux';
|
|
9
|
+
import { addClient, changeTransactionClient, changeTransactionType, getClientsByType, getClientTransactions, softDeleteTransaction } from "../database/clients.js";
|
|
10
|
+
import { BottomView, CountryPhoneInput, SearchBar, Transaction, User } from "../components/index.js";
|
|
11
11
|
import { viewDocument } from '@react-native-documents/viewer';
|
|
12
|
+
import LottieView from 'lottie-react-native';
|
|
13
|
+
import Sound, { AudioEncoderAndroidType, AudioSourceAndroidType, AVEncoderAudioQualityIOSType, AVEncodingOption, RecordBackType, PlayBackType, createSound } from 'react-native-nitro-sound';
|
|
14
|
+
import Modal from 'react-native-modal';
|
|
15
|
+
import Contacts from 'react-native-contacts';
|
|
16
|
+
import ViewShot from 'react-native-view-shot';
|
|
17
|
+
import Share from 'react-native-share';
|
|
18
|
+
import { useFocusEffect } from '@react-navigation/native';
|
|
12
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
20
|
export default function TransactionDetails({
|
|
14
21
|
navigation,
|
|
15
22
|
route
|
|
16
23
|
}) {
|
|
17
|
-
|
|
24
|
+
const [item, setItem] = useState(route?.params?.item);
|
|
25
|
+
let billNo = item?.notes?.split('_')[2];
|
|
26
|
+
const animationRef = useRef(null);
|
|
27
|
+
const viewShotRef = useRef();
|
|
18
28
|
const ClientDetails = useSelector(state => state.client.client_details);
|
|
29
|
+
const clients = useSelector(state => state.client.home_customers);
|
|
30
|
+
const selectBusiness = useSelector(state => state.client.selected_business);
|
|
31
|
+
const [IsPlaying, setIsPlaying] = useState(false);
|
|
32
|
+
const [PlayLoading, setPlayLoading] = useState(false);
|
|
33
|
+
const [ChangeModal, setChangeModal] = useState(false);
|
|
34
|
+
const [Clients, setClients] = useState([]);
|
|
35
|
+
const [ShowNewBtn, setShowNewBtn] = useState(false);
|
|
36
|
+
const [contacts, setContacts] = useState([]);
|
|
37
|
+
const [Name, setName] = useState('');
|
|
38
|
+
const [clientPhoneSet, setClientPhoneSet] = useState(new Set());
|
|
39
|
+
const [clientPhoneMap, setClientPhoneMap] = useState(new Map());
|
|
40
|
+
const [searchText, setSearchText] = useState('');
|
|
41
|
+
const [PhoneNum, setPhoneNum] = useState('');
|
|
42
|
+
const onStartPlay = async fileUrl => {
|
|
43
|
+
setPlayLoading(true);
|
|
44
|
+
// Set up playback progress listener
|
|
45
|
+
Sound.addPlayBackListener(e => {
|
|
46
|
+
console.log('Playback progress:', e.currentPosition, e.duration);
|
|
47
|
+
setIsPlaying(true);
|
|
48
|
+
animationRef.current?.play();
|
|
49
|
+
// setCurrentPosition(e.currentPosition);
|
|
50
|
+
// setTotalDuration(e.duration);
|
|
51
|
+
// setPlayTime(Sound.mmssss(Math.floor(e.currentPosition)));
|
|
52
|
+
// setDuration(Sound.mmssss(Math.floor(e.duration)));
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// Set up playback end listener
|
|
56
|
+
Sound.addPlaybackEndListener(e => {
|
|
57
|
+
console.log('Playback completed:', e);
|
|
58
|
+
// Handle playback completion
|
|
59
|
+
setIsPlaying(false);
|
|
60
|
+
animationRef.current?.pause();
|
|
61
|
+
// setCurrentPosition(0);
|
|
62
|
+
});
|
|
63
|
+
const result = await Sound.startPlayer(fileUrl);
|
|
64
|
+
setPlayLoading(false);
|
|
65
|
+
console.log('Playback started:', result);
|
|
66
|
+
};
|
|
67
|
+
const onStopPlay = async () => {
|
|
68
|
+
Sound.stopPlayer();
|
|
69
|
+
Sound.removePlayBackListener();
|
|
70
|
+
Sound.removePlaybackEndListener();
|
|
71
|
+
animationRef.current?.pause();
|
|
72
|
+
setIsPlaying(false);
|
|
73
|
+
setPlayLoading(false);
|
|
74
|
+
};
|
|
75
|
+
const onSwapPress = () => {
|
|
76
|
+
Alert.alert('You want to move this entry?',
|
|
77
|
+
// Title
|
|
78
|
+
ClientDetails?.type == 0 ? `This entry will be safely moved from ${item?.amount !== '0' ? "'You Gave'" : "'You Got'"} to ${item?.amount == '0' ? "'You Gave'" : "'You Got'"}` : `This entry will be safely moved from ${item?.amount !== '0' ? "'Payment'" : "'Purchase'"} to ${item?.amount == '0' ? "'Payment'" : "'Purchase'"}`, [{
|
|
79
|
+
text: 'Cancel',
|
|
80
|
+
onPress: () => {
|
|
81
|
+
console.log('Cancel');
|
|
82
|
+
},
|
|
83
|
+
style: 'cancel'
|
|
84
|
+
}, {
|
|
85
|
+
text: 'Move',
|
|
86
|
+
onPress: async () => {
|
|
87
|
+
await changeTransactionType(item?.id);
|
|
88
|
+
navigation.reset({
|
|
89
|
+
index: 0,
|
|
90
|
+
// active screen
|
|
91
|
+
routes: [{
|
|
92
|
+
name: 'HomeScreen',
|
|
93
|
+
state: {
|
|
94
|
+
routes: [{
|
|
95
|
+
name: 'Customers'
|
|
96
|
+
}] // nested screen
|
|
97
|
+
}
|
|
98
|
+
}]
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}], {
|
|
102
|
+
cancelable: true
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
const onDeletePress = () => {
|
|
106
|
+
Alert.alert('Delete entry',
|
|
107
|
+
// Title
|
|
108
|
+
'Are you sure you want to delete this entry?', [{
|
|
109
|
+
text: 'Cancel',
|
|
110
|
+
onPress: () => console.log('Cancel'),
|
|
111
|
+
style: 'cancel'
|
|
112
|
+
}, {
|
|
113
|
+
text: 'Delete',
|
|
114
|
+
style: 'destructive',
|
|
115
|
+
// optional: shows in red on iOS
|
|
116
|
+
onPress: async () => {
|
|
117
|
+
try {
|
|
118
|
+
await softDeleteTransaction(item?.id);
|
|
119
|
+
let clients = await getClientsByType(ClientDetails?.type, null, null, selectBusiness?.id);
|
|
120
|
+
let filteredClient = clients.find(c => c.id === ClientDetails.id);
|
|
121
|
+
let amount = filteredClient?.total_subamount - filteredClient?.total_amount;
|
|
122
|
+
let type = 'none';
|
|
123
|
+
if (amount > 0) type = 'payable';else if (amount < 0) type = 'receivable';
|
|
124
|
+
filteredClient = {
|
|
125
|
+
...filteredClient,
|
|
126
|
+
amount: Math.abs(amount),
|
|
127
|
+
pay_type: type
|
|
128
|
+
};
|
|
129
|
+
route.params?.onGoBack(filteredClient);
|
|
130
|
+
navigation.goBack();
|
|
131
|
+
} catch (err) {
|
|
132
|
+
console.log('Error soft deleting transaction:', err);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}], {
|
|
136
|
+
cancelable: true
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const getAllClientTypes = async () => {
|
|
140
|
+
try {
|
|
141
|
+
const [customers, suppliers, banks] = await Promise.all([getClientsByType(0, null, null, selectBusiness?.id), getClientsByType(1, null, null, selectBusiness?.id), getClientsByType(2, null, null, selectBusiness?.id)]);
|
|
142
|
+
const allClients = [...customers, ...suppliers, ...banks];
|
|
143
|
+
|
|
144
|
+
// sort
|
|
145
|
+
const sortedClients = allClients.sort((a, b) => a.type - b.type);
|
|
146
|
+
setClients(sortedClients);
|
|
147
|
+
|
|
148
|
+
// Map phone -> full client info
|
|
149
|
+
const phoneMap = new Map();
|
|
150
|
+
allClients.forEach(c => {
|
|
151
|
+
const formatted = formatPhoneNumber(c.phone || '')?.toLowerCase();
|
|
152
|
+
if (formatted) {
|
|
153
|
+
phoneMap.set(formatted, {
|
|
154
|
+
id: c.id,
|
|
155
|
+
type: c.type,
|
|
156
|
+
name: c.name,
|
|
157
|
+
phone: c.phone
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
setClientPhoneMap(phoneMap);
|
|
162
|
+
} catch (error) {
|
|
163
|
+
console.error(error);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
const getAllContacts = async () => {
|
|
167
|
+
if (Platform.OS === 'android') {
|
|
168
|
+
try {
|
|
169
|
+
const granted = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.READ_CONTACTS, {
|
|
170
|
+
title: 'Contacts',
|
|
171
|
+
message: 'This app would like to view your contacts.',
|
|
172
|
+
buttonPositive: 'Please accept bare mortal'
|
|
173
|
+
});
|
|
174
|
+
if (granted === PermissionsAndroid.RESULTS.GRANTED) {
|
|
175
|
+
console.log('Contacts permission granted');
|
|
176
|
+
Contacts.getAll().then(contacts => {
|
|
177
|
+
setContacts(contacts);
|
|
178
|
+
});
|
|
179
|
+
} else {
|
|
180
|
+
console.log('Contacts permission denied');
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
} catch (err) {
|
|
184
|
+
console.warn(err);
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const filteredContacts = contacts.filter(item => {
|
|
190
|
+
const name = item?.displayName?.toLowerCase() || '';
|
|
191
|
+
const rawNumber = item?.phoneNumbers[0]?.number || '';
|
|
192
|
+
const formattedNumber = formatPhoneNumber(rawNumber)?.toLowerCase() || '';
|
|
193
|
+
|
|
194
|
+
// 🔹 use your searchText state (from TextInput)
|
|
195
|
+
const searchLower = searchText.toLowerCase();
|
|
196
|
+
|
|
197
|
+
// (optional) client type
|
|
198
|
+
const clientType = clientPhoneMap.get(formattedNumber);
|
|
199
|
+
return name.includes(searchLower) || formattedNumber.includes(searchLower);
|
|
200
|
+
});
|
|
201
|
+
const filteredClients = Clients.filter(c => {
|
|
202
|
+
const name = c.name?.toLowerCase() || '';
|
|
203
|
+
const phone = c.phone?.toLowerCase() || '';
|
|
204
|
+
const searchLower = searchText.toLowerCase();
|
|
205
|
+
return name.includes(searchLower) || phone.includes(searchLower);
|
|
206
|
+
});
|
|
207
|
+
const onContinue = async (text, num) => {
|
|
208
|
+
setChangeModal(false);
|
|
209
|
+
await moveTransaction(ClientDetails?.name, ClientDetails?.id, text, null, true, text, num);
|
|
210
|
+
};
|
|
211
|
+
const moveTransaction = (fromClientName, fromClientId, toClientName, toClientId, isNew, newName,
|
|
212
|
+
// <-- name/num for creating new client
|
|
213
|
+
newNum) => {
|
|
214
|
+
console.log('moveTransaction');
|
|
215
|
+
return new Promise((resolve, reject) => {
|
|
216
|
+
Alert.alert(`Change '${fromClientName}' to '${toClientName}'?`, `This entry of '${fromClientName}' will be safely moved to '${toClientName}' ledger.`, [{
|
|
217
|
+
text: 'Cancel',
|
|
218
|
+
onPress: () => resolve(false),
|
|
219
|
+
style: 'cancel'
|
|
220
|
+
}, {
|
|
221
|
+
text: 'Change',
|
|
222
|
+
onPress: async () => {
|
|
223
|
+
try {
|
|
224
|
+
let finalTargetId = toClientId;
|
|
225
|
+
if (isNew) {
|
|
226
|
+
const isExist = clients?.find(item => item?.phone == newNum);
|
|
227
|
+
if (!isExist) {
|
|
228
|
+
const newCustomer = await addClient(newName, newNum, 0, selectBusiness?.id);
|
|
229
|
+
finalTargetId = newCustomer?.insertId;
|
|
230
|
+
} else {
|
|
231
|
+
finalTargetId = isExist?.id;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
await changeTransactionClient(item?.id, finalTargetId);
|
|
235
|
+
navigation.reset({
|
|
236
|
+
index: 0,
|
|
237
|
+
// active screen
|
|
238
|
+
routes: [{
|
|
239
|
+
name: 'HomeScreen',
|
|
240
|
+
state: {
|
|
241
|
+
routes: [{
|
|
242
|
+
name: 'Customers'
|
|
243
|
+
}] // nested screen
|
|
244
|
+
}
|
|
245
|
+
}]
|
|
246
|
+
});
|
|
247
|
+
resolve(true);
|
|
248
|
+
} catch (err) {
|
|
249
|
+
console.error('Error moving transaction:', err);
|
|
250
|
+
reject(err);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}], {
|
|
254
|
+
cancelable: true
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
};
|
|
258
|
+
const onMessageClick = async () => {
|
|
259
|
+
let phoneNumber = ClientDetails?.phone;
|
|
260
|
+
let message;
|
|
261
|
+
if (item?.amount !== '0') {
|
|
262
|
+
message = `Aapko Saud Rehan(03233791697) se,
|
|
263
|
+
Rs${item?.amount} mile.
|
|
264
|
+
Aap total ${Math.abs(item?.balance)} denge.`;
|
|
265
|
+
} else {
|
|
266
|
+
message = `Aapny Saud Rehan(03233791697) ko,
|
|
267
|
+
Rs${item?.subamount} diye.
|
|
268
|
+
Aapko total ${Math.abs(item?.balance)} mile ge.`;
|
|
269
|
+
}
|
|
270
|
+
const separator = Platform.OS === 'ios' ? '&' : '?';
|
|
271
|
+
const url = `sms:${phoneNumber}${separator}body=${encodeURIComponent(message)}`;
|
|
272
|
+
const supported = await Linking.canOpenURL(url);
|
|
273
|
+
if (supported) {
|
|
274
|
+
await Linking.openURL(url);
|
|
275
|
+
} else {
|
|
276
|
+
Alert.alert('Error', 'SMS not supported on this device');
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
const captureImage = async (onlyShare = false) => {
|
|
280
|
+
try {
|
|
281
|
+
const uri = await viewShotRef.current.capture();
|
|
282
|
+
console.log('Captured URI: ', uri);
|
|
283
|
+
if (onlyShare) {
|
|
284
|
+
// 🔹 Normal share menu
|
|
285
|
+
await Share.open({
|
|
286
|
+
url: uri,
|
|
287
|
+
filename: 'reminder.jpg',
|
|
288
|
+
type: 'image/jpeg'
|
|
289
|
+
});
|
|
290
|
+
} else {
|
|
291
|
+
// 🔹 Direct WhatsApp share
|
|
292
|
+
await Share.open({
|
|
293
|
+
url: uri,
|
|
294
|
+
social: Share.Social.WHATSAPP,
|
|
295
|
+
whatsAppNumber: ClientDetails?.phone,
|
|
296
|
+
// e.g. '923001234567'
|
|
297
|
+
filename: 'reminder.jpg',
|
|
298
|
+
type: 'image/jpeg'
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
} catch (error) {
|
|
302
|
+
console.log(error);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
const onChangePress = async () => {
|
|
306
|
+
await getAllContacts();
|
|
307
|
+
await getAllClientTypes();
|
|
308
|
+
setChangeModal(true);
|
|
309
|
+
};
|
|
310
|
+
useFocusEffect(useCallback(() => {
|
|
311
|
+
let isActive = true;
|
|
312
|
+
|
|
313
|
+
// async function inside
|
|
314
|
+
const fetchData = async () => {
|
|
315
|
+
try {
|
|
316
|
+
let clients = await getClientsByType(ClientDetails?.type, null, null, selectBusiness?.id);
|
|
317
|
+
let filteredClient = clients.find(c => c.id === ClientDetails.id);
|
|
318
|
+
let amount = filteredClient?.total_subamount - filteredClient?.total_amount;
|
|
319
|
+
let type = 'none';
|
|
320
|
+
if (amount > 0) type = 'payable';else if (amount < 0) type = 'receivable';
|
|
321
|
+
filteredClient = {
|
|
322
|
+
...filteredClient,
|
|
323
|
+
amount: Math.abs(amount),
|
|
324
|
+
pay_type: type
|
|
325
|
+
};
|
|
326
|
+
route.params?.onGoBack(filteredClient); // send data back
|
|
327
|
+
// navigation.goBack();
|
|
328
|
+
|
|
329
|
+
// navigation.goBack(); // only if you’re sure
|
|
330
|
+
} catch (err) {
|
|
331
|
+
console.error(err);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
fetchData();
|
|
335
|
+
|
|
336
|
+
// hardware back button
|
|
337
|
+
const onBackPress = () => {
|
|
338
|
+
// custom logic
|
|
339
|
+
// return true to block default back action
|
|
340
|
+
return false;
|
|
341
|
+
};
|
|
342
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
343
|
+
|
|
344
|
+
// cleanup
|
|
345
|
+
return () => {
|
|
346
|
+
isActive = false;
|
|
347
|
+
backHandler.remove();
|
|
348
|
+
};
|
|
349
|
+
}, [navigation, ClientDetails]));
|
|
19
350
|
|
|
20
351
|
// console.log(item)
|
|
21
352
|
|
|
22
353
|
return /*#__PURE__*/_jsxs(View, {
|
|
23
354
|
style: Styles._mainContainer,
|
|
24
355
|
children: [/*#__PURE__*/_jsxs(LinearGradient, {
|
|
25
|
-
style: Styles._headerMain,
|
|
356
|
+
style: [Styles._headerMain, {
|
|
357
|
+
justifyContent: 'space-between',
|
|
358
|
+
paddingHorizontal: Platform.OS == 'ios' ? 0 : 5
|
|
359
|
+
}],
|
|
26
360
|
start: {
|
|
27
361
|
x: 0,
|
|
28
362
|
y: 0
|
|
@@ -32,85 +366,149 @@ export default function TransactionDetails({
|
|
|
32
366
|
y: 0
|
|
33
367
|
},
|
|
34
368
|
colors: [COLORS.primaryColor, COLORS.secondaryColor],
|
|
35
|
-
children: [/*#__PURE__*/
|
|
369
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
370
|
+
style: {
|
|
371
|
+
flexDirection: 'row',
|
|
372
|
+
justifyContent: 'center',
|
|
373
|
+
alignItems: 'center',
|
|
374
|
+
gap: 10
|
|
375
|
+
},
|
|
376
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
377
|
+
activeOpacity: 0.8,
|
|
378
|
+
onPress: async () => {
|
|
379
|
+
let clients = await getClientsByType(ClientDetails?.type, null, null, selectBusiness?.id);
|
|
380
|
+
let filteredClient = clients.find(c => c.id === ClientDetails.id);
|
|
381
|
+
let amount = Number(filteredClient?.total_subamount) - Number(filteredClient?.total_amount);
|
|
382
|
+
// let amount = Number(item?.subamount) - Number(item?.amount);
|
|
383
|
+
let type = 'none';
|
|
384
|
+
if (amount > 0) type = 'payable';else if (amount < 0) type = 'receivable';
|
|
385
|
+
filteredClient = {
|
|
386
|
+
...filteredClient,
|
|
387
|
+
amount: Math.abs(amount),
|
|
388
|
+
pay_type: type
|
|
389
|
+
};
|
|
390
|
+
if (typeof route.params?.onGoBack === 'function') {
|
|
391
|
+
route.params.onGoBack(filteredClient);
|
|
392
|
+
}
|
|
393
|
+
navigation.goBack();
|
|
394
|
+
},
|
|
395
|
+
style: {
|
|
396
|
+
padding: 6
|
|
397
|
+
},
|
|
398
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
399
|
+
name: 'chevron-back',
|
|
400
|
+
color: COLORS.whiteColor,
|
|
401
|
+
size: 25
|
|
402
|
+
})
|
|
403
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
404
|
+
style: Styles._nameTxt,
|
|
405
|
+
children: "Entry Details"
|
|
406
|
+
})]
|
|
407
|
+
}), ClientDetails?.type != 2 && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
36
408
|
activeOpacity: 0.8,
|
|
37
|
-
|
|
409
|
+
style: {
|
|
410
|
+
padding: 6
|
|
411
|
+
},
|
|
412
|
+
onPress: onSwapPress,
|
|
38
413
|
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
39
|
-
name:
|
|
414
|
+
name: 'swap-horizontal',
|
|
40
415
|
color: COLORS.whiteColor,
|
|
41
|
-
size:
|
|
416
|
+
size: 22
|
|
42
417
|
})
|
|
43
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
44
|
-
style: Styles._nameTxt,
|
|
45
|
-
children: "Entry Details"
|
|
46
418
|
})]
|
|
47
|
-
}), /*#__PURE__*/
|
|
419
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
48
420
|
style: Styles._contentMain,
|
|
49
|
-
children: /*#__PURE__*/
|
|
50
|
-
|
|
51
|
-
|
|
421
|
+
children: [/*#__PURE__*/_jsx(LinearGradient, {
|
|
422
|
+
style: [Styles._headerMain, {
|
|
423
|
+
height: 40
|
|
424
|
+
}],
|
|
425
|
+
start: {
|
|
426
|
+
x: 0,
|
|
427
|
+
y: 0
|
|
52
428
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
429
|
+
end: {
|
|
430
|
+
x: 1,
|
|
431
|
+
y: 0
|
|
432
|
+
},
|
|
433
|
+
colors: [COLORS.primaryColor, COLORS.secondaryColor]
|
|
434
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
435
|
+
style: {
|
|
436
|
+
width: '100%',
|
|
437
|
+
alignItems: 'center',
|
|
438
|
+
position: 'absolute',
|
|
439
|
+
top: 0,
|
|
440
|
+
gap: 20
|
|
441
|
+
},
|
|
442
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
67
443
|
style: Styles._sectionOne,
|
|
68
444
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
69
445
|
style: Styles._segment,
|
|
70
446
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
71
447
|
style: {
|
|
72
|
-
flexDirection:
|
|
73
|
-
height:
|
|
74
|
-
alignItems:
|
|
448
|
+
flexDirection: 'row',
|
|
449
|
+
height: '100%',
|
|
450
|
+
alignItems: 'center',
|
|
75
451
|
gap: 10
|
|
76
452
|
},
|
|
77
|
-
children: [/*#__PURE__*/_jsx(
|
|
453
|
+
children: [ClientDetails?.local_path ? /*#__PURE__*/_jsx(Image, {
|
|
454
|
+
source: {
|
|
455
|
+
uri: ClientDetails?.local_path
|
|
456
|
+
},
|
|
457
|
+
style: {
|
|
458
|
+
width: 40,
|
|
459
|
+
height: 40,
|
|
460
|
+
borderRadius: ClientDetails?.type == 2 ? 0 : 100
|
|
461
|
+
},
|
|
462
|
+
resizeMode: "cover"
|
|
463
|
+
}) : /*#__PURE__*/_jsx(View, {
|
|
78
464
|
style: Styles._avatarMain,
|
|
79
465
|
children: /*#__PURE__*/_jsx(Text, {
|
|
80
466
|
style: [Styles._avatarText, {
|
|
81
|
-
color:
|
|
467
|
+
color: ClientDetails?.type == 0 ? 'red' : 'green'
|
|
82
468
|
}],
|
|
83
|
-
children: getAvatar(
|
|
469
|
+
children: getAvatar(ClientDetails?.name)
|
|
84
470
|
})
|
|
85
471
|
}), /*#__PURE__*/_jsxs(View, {
|
|
86
472
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
87
473
|
style: {
|
|
88
474
|
color: COLORS.blackColor,
|
|
89
475
|
fontFamily: FONT_MEDIUM,
|
|
90
|
-
fontSize:
|
|
476
|
+
fontSize: 12
|
|
91
477
|
},
|
|
92
|
-
children: ClientDetails?.name
|
|
478
|
+
children: ClientDetails?.type == 2 ? ClientDetails.phone : ClientDetails?.name
|
|
93
479
|
}), /*#__PURE__*/_jsx(Text, {
|
|
94
480
|
style: {
|
|
95
481
|
color: COLORS.blackColor,
|
|
96
482
|
fontFamily: FONT_NORMAL,
|
|
97
|
-
fontSize:
|
|
483
|
+
fontSize: 11,
|
|
98
484
|
opacity: 0.6
|
|
99
485
|
},
|
|
100
|
-
children:
|
|
486
|
+
children: formatDateTimeShort(item?.date)
|
|
487
|
+
}), ClientDetails?.type != 2 && /*#__PURE__*/_jsx(TouchableOpacity
|
|
488
|
+
// activeOpacity={0.8}
|
|
489
|
+
, {
|
|
490
|
+
onPress: onChangePress,
|
|
491
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
492
|
+
style: {
|
|
493
|
+
color: 'red',
|
|
494
|
+
fontFamily: FONT_MEDIUM,
|
|
495
|
+
fontSize: 11
|
|
496
|
+
},
|
|
497
|
+
children: "Change"
|
|
498
|
+
})
|
|
101
499
|
})]
|
|
102
500
|
})]
|
|
103
501
|
}), /*#__PURE__*/_jsxs(View, {
|
|
104
502
|
style: {
|
|
105
|
-
alignItems:
|
|
503
|
+
alignItems: 'flex-end'
|
|
106
504
|
},
|
|
107
505
|
children: [/*#__PURE__*/_jsxs(Text, {
|
|
108
506
|
style: {
|
|
109
|
-
color: item?.amount !==
|
|
507
|
+
color: Number(item?.amount) !== 0 ? 'red' : 'green',
|
|
110
508
|
fontFamily: FONT_MEDIUM,
|
|
111
509
|
fontSize: 14
|
|
112
510
|
},
|
|
113
|
-
children: ["Rs
|
|
511
|
+
children: ["Rs", Number(item?.amount) !== 0 ? addCommas(Number(item?.amount)) : addCommas(Number(item?.subamount))]
|
|
114
512
|
}), /*#__PURE__*/_jsx(Text, {
|
|
115
513
|
style: {
|
|
116
514
|
color: COLORS.blackColor,
|
|
@@ -118,13 +516,48 @@ export default function TransactionDetails({
|
|
|
118
516
|
fontFamily: FONT_NORMAL,
|
|
119
517
|
fontSize: 12
|
|
120
518
|
},
|
|
121
|
-
children: item?.amount !==
|
|
519
|
+
children: Number(item?.amount) !== 0 ? ClientDetails?.type == 0 ? 'You Gave' : ClientDetails?.type == 1 ? 'Payment' : 'In' : ClientDetails?.type == 0 ? 'You Get' : ClientDetails?.type == 1 ? 'Purchase' : 'Out'
|
|
122
520
|
})]
|
|
123
521
|
})]
|
|
124
|
-
}), item?.
|
|
522
|
+
}), item?.local_path && /*#__PURE__*/_jsxs(View, {
|
|
125
523
|
style: [Styles._segment, {
|
|
126
|
-
flexDirection:
|
|
127
|
-
alignItems:
|
|
524
|
+
flexDirection: 'row',
|
|
525
|
+
alignItems: 'center'
|
|
526
|
+
}],
|
|
527
|
+
children: [IsPlaying ? /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
528
|
+
activeOpacity: 0.8,
|
|
529
|
+
onPress: () => {
|
|
530
|
+
onStopPlay();
|
|
531
|
+
},
|
|
532
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
533
|
+
name: 'pause',
|
|
534
|
+
color: COLORS.primaryColor,
|
|
535
|
+
size: 22
|
|
536
|
+
})
|
|
537
|
+
}) : /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
538
|
+
activeOpacity: 0.8,
|
|
539
|
+
onPress: () => {
|
|
540
|
+
onStartPlay(item?.local_path);
|
|
541
|
+
},
|
|
542
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
543
|
+
name: 'play',
|
|
544
|
+
color: COLORS.primaryColor,
|
|
545
|
+
size: 22
|
|
546
|
+
})
|
|
547
|
+
}), /*#__PURE__*/_jsx(LottieView, {
|
|
548
|
+
source: require('../assets/animations/voice_visualization.json'),
|
|
549
|
+
autoPlay: false,
|
|
550
|
+
loop: true,
|
|
551
|
+
style: {
|
|
552
|
+
width: '90%',
|
|
553
|
+
height: 42
|
|
554
|
+
},
|
|
555
|
+
ref: animationRef
|
|
556
|
+
})]
|
|
557
|
+
}), item?.notes?.split('_')[0] && item.notes !== '_bill_' && /*#__PURE__*/_jsxs(View, {
|
|
558
|
+
style: [Styles._segment, {
|
|
559
|
+
flexDirection: 'column',
|
|
560
|
+
alignItems: 'flex-start'
|
|
128
561
|
}],
|
|
129
562
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
130
563
|
style: {
|
|
@@ -140,12 +573,50 @@ export default function TransactionDetails({
|
|
|
140
573
|
fontFamily: FONT_MEDIUM,
|
|
141
574
|
fontSize: 11
|
|
142
575
|
},
|
|
143
|
-
children: item
|
|
576
|
+
children: item.notes.split('_')[0]
|
|
577
|
+
})]
|
|
578
|
+
}), item?.cash_type && item?.cash_type != null && item?.cash_type?.split("_")[0] != "Stock" && /*#__PURE__*/_jsx(View, {
|
|
579
|
+
style: [Styles._segment, {
|
|
580
|
+
flexDirection: 'column',
|
|
581
|
+
alignItems: 'flex-start'
|
|
582
|
+
}],
|
|
583
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
584
|
+
style: {
|
|
585
|
+
color: COLORS.whiteColor,
|
|
586
|
+
fontFamily: FONT_MEDIUM,
|
|
587
|
+
fontSize: 11,
|
|
588
|
+
backgroundColor: item?.cash_type?.split('_')[0] == 'IN' ? 'green' : 'red',
|
|
589
|
+
paddingVertical: 5,
|
|
590
|
+
paddingHorizontal: 7,
|
|
591
|
+
borderRadius: 100
|
|
592
|
+
},
|
|
593
|
+
children: item?.cash_type?.split('_')[0] == 'IN' ? 'Cash In' : 'Cash Out'
|
|
594
|
+
})
|
|
595
|
+
}), billNo && /*#__PURE__*/_jsxs(View, {
|
|
596
|
+
style: [Styles._segment, {
|
|
597
|
+
flexDirection: 'column',
|
|
598
|
+
alignItems: 'flex-start'
|
|
599
|
+
}],
|
|
600
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
601
|
+
style: {
|
|
602
|
+
color: COLORS.blackColor,
|
|
603
|
+
opacity: 0.6,
|
|
604
|
+
fontFamily: FONT_MEDIUM,
|
|
605
|
+
fontSize: 13
|
|
606
|
+
},
|
|
607
|
+
children: "Bill No"
|
|
608
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
609
|
+
style: {
|
|
610
|
+
color: COLORS.blackColor,
|
|
611
|
+
fontFamily: FONT_MEDIUM,
|
|
612
|
+
fontSize: 11
|
|
613
|
+
},
|
|
614
|
+
children: item?.notes?.split('_')[2]
|
|
144
615
|
})]
|
|
145
616
|
}), item?.attachments?.length != 0 && /*#__PURE__*/_jsxs(View, {
|
|
146
617
|
style: [Styles._segment, {
|
|
147
|
-
flexDirection:
|
|
148
|
-
alignItems:
|
|
618
|
+
flexDirection: 'column',
|
|
619
|
+
alignItems: 'flex-start'
|
|
149
620
|
}],
|
|
150
621
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
151
622
|
style: {
|
|
@@ -157,13 +628,15 @@ export default function TransactionDetails({
|
|
|
157
628
|
children: "Attachments"
|
|
158
629
|
}), /*#__PURE__*/_jsx(View, {
|
|
159
630
|
style: {
|
|
160
|
-
flexDirection:
|
|
631
|
+
flexDirection: 'row'
|
|
161
632
|
},
|
|
162
633
|
children: item?.attachments?.map((i, index) => /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
163
634
|
activeOpacity: 0.8,
|
|
164
|
-
onPress: () =>
|
|
165
|
-
|
|
166
|
-
|
|
635
|
+
onPress: () => {
|
|
636
|
+
viewDocument({
|
|
637
|
+
uri: i?.local_path
|
|
638
|
+
});
|
|
639
|
+
},
|
|
167
640
|
children: isPdfFile(i?.local_path) ? /*#__PURE__*/_jsx(Ionicons, {
|
|
168
641
|
name: "document-text-outline",
|
|
169
642
|
size: 45,
|
|
@@ -185,10 +658,117 @@ export default function TransactionDetails({
|
|
|
185
658
|
})
|
|
186
659
|
}, index))
|
|
187
660
|
})]
|
|
661
|
+
}), item?.items && /*#__PURE__*/_jsxs(View, {
|
|
662
|
+
style: [Styles._segment, {
|
|
663
|
+
flexDirection: 'column',
|
|
664
|
+
alignItems: 'flex-start'
|
|
665
|
+
}],
|
|
666
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
667
|
+
style: {
|
|
668
|
+
width: "100%",
|
|
669
|
+
justifyContent: "space-between",
|
|
670
|
+
alignItems: "center",
|
|
671
|
+
flexDirection: "row"
|
|
672
|
+
},
|
|
673
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
674
|
+
style: {
|
|
675
|
+
color: "black",
|
|
676
|
+
opacity: 0.6,
|
|
677
|
+
fontFamily: FONT_MEDIUM,
|
|
678
|
+
fontSize: 13,
|
|
679
|
+
backgroundColor: COLORS.lightGrey,
|
|
680
|
+
paddingVertical: 3,
|
|
681
|
+
paddingHorizontal: 5,
|
|
682
|
+
borderRadius: 100
|
|
683
|
+
},
|
|
684
|
+
children: [String(JSON.parse(item?.items)?.length), " Items"]
|
|
685
|
+
}), item?.amount && item?.subamount == '0' && /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
686
|
+
activeOpacity: 0.8,
|
|
687
|
+
onPress: () => navigation.navigate('BillDetails', {
|
|
688
|
+
fromClients: true,
|
|
689
|
+
itemDetails: item
|
|
690
|
+
}),
|
|
691
|
+
style: {
|
|
692
|
+
flexDirection: "row",
|
|
693
|
+
alignItems: "center",
|
|
694
|
+
gap: 5
|
|
695
|
+
},
|
|
696
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
697
|
+
style: {
|
|
698
|
+
color: COLORS.primaryColor,
|
|
699
|
+
fontFamily: FONT_NORMAL,
|
|
700
|
+
fontSize: 12
|
|
701
|
+
},
|
|
702
|
+
children: "Create Bill"
|
|
703
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
704
|
+
color: COLORS.primaryColor,
|
|
705
|
+
size: 16,
|
|
706
|
+
name: "chevron-forward"
|
|
707
|
+
})]
|
|
708
|
+
})]
|
|
709
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
710
|
+
style: Styles.tableHeader,
|
|
711
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
712
|
+
style: [Styles.tHeadText, {
|
|
713
|
+
flex: 2
|
|
714
|
+
}],
|
|
715
|
+
children: "ITEM"
|
|
716
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
717
|
+
style: [Styles.tHeadText, {
|
|
718
|
+
flex: 1,
|
|
719
|
+
textAlign: 'center'
|
|
720
|
+
}],
|
|
721
|
+
children: "Qty"
|
|
722
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
723
|
+
style: [Styles.tHeadText, {
|
|
724
|
+
flex: 1,
|
|
725
|
+
textAlign: 'center'
|
|
726
|
+
}],
|
|
727
|
+
children: "Rate"
|
|
728
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
729
|
+
style: [Styles.tHeadText, {
|
|
730
|
+
flex: 1,
|
|
731
|
+
textAlign: 'right'
|
|
732
|
+
}],
|
|
733
|
+
children: "Amount"
|
|
734
|
+
})]
|
|
735
|
+
}), item?.items ? JSON.parse(item?.items)?.map((i, index) => /*#__PURE__*/_jsxs(View, {
|
|
736
|
+
style: [Styles.tableHeader, {
|
|
737
|
+
backgroundColor: COLORS.whiteColor
|
|
738
|
+
}],
|
|
739
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
740
|
+
style: [Styles.tHeadText, {
|
|
741
|
+
flex: 2,
|
|
742
|
+
color: COLORS.blackColor
|
|
743
|
+
}],
|
|
744
|
+
children: i?.name
|
|
745
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
746
|
+
style: [Styles.tHeadText, {
|
|
747
|
+
flex: 1,
|
|
748
|
+
textAlign: 'center',
|
|
749
|
+
color: COLORS.blackColor
|
|
750
|
+
}],
|
|
751
|
+
children: i?.addedQty
|
|
752
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
753
|
+
style: [Styles.tHeadText, {
|
|
754
|
+
flex: 1,
|
|
755
|
+
textAlign: 'center',
|
|
756
|
+
color: COLORS.blackColor
|
|
757
|
+
}],
|
|
758
|
+
children: addCommas(Number(i?.addedRate))
|
|
759
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
760
|
+
style: [Styles.tHeadText, {
|
|
761
|
+
flex: 1,
|
|
762
|
+
textAlign: 'right',
|
|
763
|
+
color: COLORS.blackColor
|
|
764
|
+
}],
|
|
765
|
+
children: addCommas(Number(i?.addedQty) * Number(i?.addedRate))
|
|
766
|
+
})]
|
|
767
|
+
}, index)) : null]
|
|
188
768
|
}), /*#__PURE__*/_jsxs(View, {
|
|
189
769
|
style: [Styles._segment, {
|
|
190
|
-
flexDirection:
|
|
191
|
-
alignItems:
|
|
770
|
+
flexDirection: 'column',
|
|
771
|
+
alignItems: 'flex-start'
|
|
192
772
|
}],
|
|
193
773
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
194
774
|
style: {
|
|
@@ -200,20 +780,45 @@ export default function TransactionDetails({
|
|
|
200
780
|
children: "Running Balance"
|
|
201
781
|
}), /*#__PURE__*/_jsxs(Text, {
|
|
202
782
|
style: {
|
|
203
|
-
color: item?.balance < 0 ?
|
|
783
|
+
color: item?.balance < 0 ? 'red' : 'green',
|
|
204
784
|
fontFamily: FONT_MEDIUM,
|
|
205
785
|
fontSize: 11
|
|
206
786
|
},
|
|
207
|
-
children: ["Rs ", Math.abs(item?.balance)]
|
|
787
|
+
children: ["Rs ", addCommas(Math.abs(item?.balance))]
|
|
208
788
|
})]
|
|
209
789
|
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
210
790
|
style: [Styles._segment, {
|
|
211
|
-
justifyContent:
|
|
791
|
+
justifyContent: 'center',
|
|
212
792
|
gap: 5
|
|
213
793
|
}],
|
|
214
794
|
activeOpacity: 0.8,
|
|
795
|
+
onPress: () => {
|
|
796
|
+
if (item?.cash_type && item?.cash_type?.split("_")[0] == "Stock") {
|
|
797
|
+
Alert.alert("Not Allowed", "Entry can only be edited from Stock Book", [{
|
|
798
|
+
text: "OK"
|
|
799
|
+
}]);
|
|
800
|
+
} else {
|
|
801
|
+
let amount = item?.subamount - item?.amount;
|
|
802
|
+
let pay_type = 'none';
|
|
803
|
+
if (amount > 0) {
|
|
804
|
+
pay_type = 'receivable';
|
|
805
|
+
} else if (amount < 0) {
|
|
806
|
+
pay_type = 'payable';
|
|
807
|
+
}
|
|
808
|
+
amount = Math.abs(amount);
|
|
809
|
+
navigation.navigate('Entry', {
|
|
810
|
+
type: item?.amount == '0' ? 'green' : 'red',
|
|
811
|
+
item: item,
|
|
812
|
+
pay_type,
|
|
813
|
+
amount,
|
|
814
|
+
onGoBack: item => {
|
|
815
|
+
setItem(item);
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
},
|
|
215
820
|
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
216
|
-
name:
|
|
821
|
+
name: 'pencil-outline',
|
|
217
822
|
color: COLORS.primaryColor,
|
|
218
823
|
size: 20
|
|
219
824
|
}), /*#__PURE__*/_jsx(Text, {
|
|
@@ -225,8 +830,367 @@ export default function TransactionDetails({
|
|
|
225
830
|
children: "Edit Entry"
|
|
226
831
|
})]
|
|
227
832
|
})]
|
|
833
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
834
|
+
style: [Styles._sectionTwo, {
|
|
835
|
+
height: TEXT_SIZES.BUTTON_HEIGHT,
|
|
836
|
+
justifyContent: 'center',
|
|
837
|
+
alignItems: 'center',
|
|
838
|
+
borderColor: COLORS.primaryColor,
|
|
839
|
+
borderWidth: 1
|
|
840
|
+
}],
|
|
841
|
+
activeOpacity: 0.8,
|
|
842
|
+
onPress: onDeletePress,
|
|
843
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
844
|
+
name: 'trash-outline',
|
|
845
|
+
color: COLORS.primaryColor,
|
|
846
|
+
size: 20
|
|
847
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
848
|
+
style: {
|
|
849
|
+
color: COLORS.primaryColor,
|
|
850
|
+
fontFamily: FONT_MEDIUM,
|
|
851
|
+
fontSize: Input_Field_SIZES.Input_Font_Size
|
|
852
|
+
},
|
|
853
|
+
children: "DELETE ENTRY"
|
|
854
|
+
})]
|
|
855
|
+
})]
|
|
856
|
+
})]
|
|
857
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
858
|
+
isVisible: ChangeModal,
|
|
859
|
+
onBackButtonPress: () => {
|
|
860
|
+
setShowNewBtn(false);
|
|
861
|
+
setChangeModal(false);
|
|
862
|
+
},
|
|
863
|
+
onBackdropPress: () => {
|
|
864
|
+
setShowNewBtn(false);
|
|
865
|
+
setChangeModal(false);
|
|
866
|
+
},
|
|
867
|
+
avoidKeyboard: false,
|
|
868
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
869
|
+
style: Styles._changeModalMain,
|
|
870
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
871
|
+
style: Styles._changeModalHeader,
|
|
872
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
873
|
+
style: Styles._changeModalHeaderTxt,
|
|
874
|
+
children: "Select Party"
|
|
875
|
+
})
|
|
876
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
877
|
+
style: Styles._modalSearchMain,
|
|
878
|
+
children: /*#__PURE__*/_jsx(TextInput, {
|
|
879
|
+
style: Styles._modalSearch,
|
|
880
|
+
cursorColor: COLORS.primaryColor,
|
|
881
|
+
placeholder: ShowNewBtn ? filteredContacts?.length && filteredContacts.length != 0 ? 'Search Contacts' : 'Type Customer Name' : 'Search Clients',
|
|
882
|
+
value: searchText,
|
|
883
|
+
onChangeText: setSearchText,
|
|
884
|
+
placeholderTextColor: COLORS.gray
|
|
885
|
+
})
|
|
886
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
887
|
+
style: Styles._modalSearchMain,
|
|
888
|
+
children: !ShowNewBtn ? /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
889
|
+
style: Styles._addContactBtn,
|
|
890
|
+
activeOpacity: 0.8,
|
|
891
|
+
onPress: () => setShowNewBtn(true),
|
|
892
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
893
|
+
style: Styles._avatarMain,
|
|
894
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
895
|
+
name: "person-add-outline",
|
|
896
|
+
color: COLORS.primaryColor,
|
|
897
|
+
size: 22
|
|
898
|
+
})
|
|
899
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
900
|
+
style: {
|
|
901
|
+
width: '70%'
|
|
902
|
+
},
|
|
903
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
904
|
+
style: {
|
|
905
|
+
color: COLORS.primaryColor,
|
|
906
|
+
fontFamily: FONT_NORMAL,
|
|
907
|
+
fontSize: 12
|
|
908
|
+
},
|
|
909
|
+
children: "Add New Customer"
|
|
910
|
+
})
|
|
911
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
912
|
+
name: "chevron-forward",
|
|
913
|
+
color: COLORS.primaryColor,
|
|
914
|
+
size: 22
|
|
915
|
+
})]
|
|
916
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
917
|
+
style: Styles._phoneInputMain,
|
|
918
|
+
children: [/*#__PURE__*/_jsx(CountryPhoneInput, {
|
|
919
|
+
contentContainerStyle: {
|
|
920
|
+
width: '100%'
|
|
921
|
+
},
|
|
922
|
+
onChange: text => {
|
|
923
|
+
setPhoneNum(text?.fullNumber);
|
|
924
|
+
}
|
|
925
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
926
|
+
activeOpacity: 0.8,
|
|
927
|
+
onPress: () => {
|
|
928
|
+
if (searchText.trim()) {
|
|
929
|
+
onContinue(searchText, PhoneNum);
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
style: [Styles._modalBtn, {
|
|
933
|
+
backgroundColor: searchText?.trim() ? COLORS.primaryColor : COLORS.gray
|
|
934
|
+
}],
|
|
935
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
936
|
+
style: {
|
|
937
|
+
color: COLORS.whiteColor,
|
|
938
|
+
fontFamily: FONT_NORMAL,
|
|
939
|
+
fontSize: 12
|
|
940
|
+
},
|
|
941
|
+
children: "CONTINUE"
|
|
942
|
+
})
|
|
943
|
+
})]
|
|
944
|
+
})
|
|
945
|
+
}), !ShowNewBtn ? /*#__PURE__*/_jsx(ScrollView, {
|
|
946
|
+
contentContainerStyle: {
|
|
947
|
+
alignItems: 'center'
|
|
948
|
+
},
|
|
949
|
+
children: filteredClients?.filter(item => item.id !== ClientDetails?.id).length === 0 ? /*#__PURE__*/_jsx(View, {
|
|
950
|
+
style: {
|
|
951
|
+
height: 300,
|
|
952
|
+
justifyContent: 'center',
|
|
953
|
+
alignItems: 'center'
|
|
954
|
+
},
|
|
955
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
956
|
+
style: {
|
|
957
|
+
textAlign: 'center',
|
|
958
|
+
color: COLORS.blackColor,
|
|
959
|
+
fontFamily: FONT_MEDIUM,
|
|
960
|
+
fontSize: 13
|
|
961
|
+
},
|
|
962
|
+
children: "No Records Found"
|
|
963
|
+
})
|
|
964
|
+
}) : filteredClients?.filter(item => item.id !== ClientDetails?.id).map((item, index) => {
|
|
965
|
+
let amount = item?.total_subamount - item?.total_amount;
|
|
966
|
+
let type = 'none';
|
|
967
|
+
if (amount > 0) {
|
|
968
|
+
type = 'receivable';
|
|
969
|
+
} else if (amount < 0) {
|
|
970
|
+
type = 'payable';
|
|
971
|
+
}
|
|
972
|
+
amount = Math.abs(amount);
|
|
973
|
+
return /*#__PURE__*/_jsx(User, {
|
|
974
|
+
name: item?.name,
|
|
975
|
+
addedAt: formatDateTime(item?.latest_transaction_date || item?.created_at),
|
|
976
|
+
amount: amount,
|
|
977
|
+
type: type,
|
|
978
|
+
avatarColor: item?.type == 0 ? 'red' : 'green',
|
|
979
|
+
clientType: item?.type,
|
|
980
|
+
icon: item?.local_path,
|
|
981
|
+
mainContainer: {
|
|
982
|
+
width: '90%'
|
|
983
|
+
},
|
|
984
|
+
onPress: () => {
|
|
985
|
+
setShowNewBtn(false);
|
|
986
|
+
setChangeModal(false);
|
|
987
|
+
let fromClientName = ClientDetails?.name;
|
|
988
|
+
let fromClientId = ClientDetails?.id;
|
|
989
|
+
let toClientName = item?.name;
|
|
990
|
+
let toClientId = item?.id;
|
|
991
|
+
moveTransaction(fromClientName, fromClientId, toClientName, toClientId);
|
|
992
|
+
}
|
|
993
|
+
}, index);
|
|
994
|
+
})
|
|
995
|
+
}) : /*#__PURE__*/_jsx(FlatList, {
|
|
996
|
+
data: filteredContacts // 🔹 now using filtered contacts
|
|
997
|
+
,
|
|
998
|
+
keyExtractor: (item, index) => index.toString(),
|
|
999
|
+
contentContainerStyle: {
|
|
1000
|
+
paddingBottom: HP(20)
|
|
1001
|
+
},
|
|
1002
|
+
renderItem: ({
|
|
1003
|
+
item
|
|
1004
|
+
}) => {
|
|
1005
|
+
const rawNumber = item?.phoneNumbers[0]?.number;
|
|
1006
|
+
const formattedNumber = formatPhoneNumber(rawNumber)?.toLowerCase();
|
|
1007
|
+
const clientInfo = clientPhoneMap.get(formattedNumber);
|
|
1008
|
+
const clientId = clientInfo?.id;
|
|
1009
|
+
const clientType = clientInfo?.type;
|
|
1010
|
+
let typeLabel = '';
|
|
1011
|
+
if (clientType === 0) typeLabel = 'Customer';else if (clientType === 1) typeLabel = 'Supplier';
|
|
1012
|
+
const highlight = clientType === 0 || clientType === 1;
|
|
1013
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
1014
|
+
style: [Styles._contactsCardMain],
|
|
1015
|
+
activeOpacity: 0.8,
|
|
1016
|
+
onPress: async () => {
|
|
1017
|
+
if (highlight) {
|
|
1018
|
+
setChangeModal(false);
|
|
1019
|
+
let fromClientName = ClientDetails?.name;
|
|
1020
|
+
let fromClientId = ClientDetails?.id;
|
|
1021
|
+
let toClientName = item?.displayName;
|
|
1022
|
+
let toClientId = clientId;
|
|
1023
|
+
await moveTransaction(fromClientName, fromClientId, toClientName, toClientId);
|
|
1024
|
+
} else {
|
|
1025
|
+
await onContinue(item?.displayName, formattedNumber);
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
1029
|
+
style: Styles._avatarMain,
|
|
1030
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
1031
|
+
style: Styles._avatarText,
|
|
1032
|
+
children: getAvatar(item?.displayName)
|
|
1033
|
+
})
|
|
1034
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
1035
|
+
style: {
|
|
1036
|
+
width: '55%'
|
|
1037
|
+
},
|
|
1038
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
1039
|
+
style: {
|
|
1040
|
+
color: COLORS.blackColor,
|
|
1041
|
+
fontFamily: FONT_NORMAL,
|
|
1042
|
+
fontSize: 13
|
|
1043
|
+
},
|
|
1044
|
+
children: item?.displayName
|
|
1045
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
1046
|
+
style: {
|
|
1047
|
+
color: COLORS.blackColor,
|
|
1048
|
+
fontFamily: FONT_NORMAL,
|
|
1049
|
+
fontSize: 12,
|
|
1050
|
+
opacity: 0.6
|
|
1051
|
+
},
|
|
1052
|
+
children: formattedNumber
|
|
1053
|
+
})]
|
|
1054
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
1055
|
+
style: {
|
|
1056
|
+
width: '27%',
|
|
1057
|
+
height: '100%',
|
|
1058
|
+
justifyContent: 'center',
|
|
1059
|
+
alignItems: 'flex-end'
|
|
1060
|
+
},
|
|
1061
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
1062
|
+
style: {
|
|
1063
|
+
color: COLORS.darkGrey,
|
|
1064
|
+
fontFamily: FONT_NORMAL,
|
|
1065
|
+
fontSize: 11
|
|
1066
|
+
},
|
|
1067
|
+
children: typeLabel
|
|
1068
|
+
})
|
|
1069
|
+
})]
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
})]
|
|
1073
|
+
})
|
|
1074
|
+
}), /*#__PURE__*/_jsx(ViewShot, {
|
|
1075
|
+
ref: viewShotRef,
|
|
1076
|
+
options: {
|
|
1077
|
+
format: 'jpg',
|
|
1078
|
+
quality: 0.9
|
|
1079
|
+
},
|
|
1080
|
+
style: {
|
|
1081
|
+
position: 'absolute',
|
|
1082
|
+
left: -9999,
|
|
1083
|
+
top: -9999,
|
|
1084
|
+
backgroundColor: COLORS.whiteColor,
|
|
1085
|
+
paddingVertical: 20,
|
|
1086
|
+
paddingHorizontal: 30
|
|
1087
|
+
},
|
|
1088
|
+
options: {
|
|
1089
|
+
fileName: 'Your-File-Name',
|
|
1090
|
+
format: 'jpg',
|
|
1091
|
+
quality: 0.9
|
|
1092
|
+
},
|
|
1093
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
1094
|
+
style: Styles._segment,
|
|
1095
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
1096
|
+
style: {
|
|
1097
|
+
flexDirection: 'row',
|
|
1098
|
+
height: '100%',
|
|
1099
|
+
alignItems: 'center',
|
|
1100
|
+
gap: 10
|
|
1101
|
+
},
|
|
1102
|
+
children: [ClientDetails?.local_path ? /*#__PURE__*/_jsx(Image, {
|
|
1103
|
+
source: {
|
|
1104
|
+
uri: ClientDetails?.local_path
|
|
1105
|
+
},
|
|
1106
|
+
style: {
|
|
1107
|
+
width: 40,
|
|
1108
|
+
height: 40,
|
|
1109
|
+
borderRadius: ClientDetails?.type == 2 ? 0 : 100
|
|
1110
|
+
},
|
|
1111
|
+
resizeMode: "cover"
|
|
1112
|
+
}) : /*#__PURE__*/_jsx(View, {
|
|
1113
|
+
style: Styles._avatarMain,
|
|
1114
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
1115
|
+
style: [Styles._avatarText, {
|
|
1116
|
+
color: 'red'
|
|
1117
|
+
}],
|
|
1118
|
+
children: getAvatar(ClientDetails?.name)
|
|
1119
|
+
})
|
|
1120
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
1121
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
1122
|
+
style: {
|
|
1123
|
+
color: COLORS.blackColor,
|
|
1124
|
+
fontFamily: FONT_MEDIUM,
|
|
1125
|
+
fontSize: 13
|
|
1126
|
+
},
|
|
1127
|
+
children: ClientDetails?.type == 2 ? ClientDetails.phone : ClientDetails?.name
|
|
1128
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
1129
|
+
style: {
|
|
1130
|
+
color: COLORS.blackColor,
|
|
1131
|
+
fontFamily: FONT_NORMAL,
|
|
1132
|
+
fontSize: 12,
|
|
1133
|
+
opacity: 0.6
|
|
1134
|
+
},
|
|
1135
|
+
children: formatDateTime(item?.date)
|
|
1136
|
+
})]
|
|
1137
|
+
})]
|
|
1138
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
1139
|
+
style: {
|
|
1140
|
+
alignItems: 'flex-end'
|
|
1141
|
+
},
|
|
1142
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
1143
|
+
style: {
|
|
1144
|
+
color: item?.amount !== '0' ? 'red' : 'green',
|
|
1145
|
+
fontFamily: FONT_MEDIUM,
|
|
1146
|
+
fontSize: 14
|
|
1147
|
+
},
|
|
1148
|
+
children: ["Rs", ' ', item?.amount !== '0' ? addCommas(Number(item?.amount)) : addCommas(Number(item?.subamount))]
|
|
1149
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
1150
|
+
style: {
|
|
1151
|
+
color: COLORS.blackColor,
|
|
1152
|
+
opacity: 0.8,
|
|
1153
|
+
fontFamily: FONT_NORMAL,
|
|
1154
|
+
fontSize: 12
|
|
1155
|
+
},
|
|
1156
|
+
children: item?.amount !== '0' ? ClientDetails?.type === 0 ? 'You Gave' : ClientDetails?.type === 1 ? 'Payment' : 'In' : ClientDetails?.type === 0 ? 'You Get' : ClientDetails?.type === 1 ? 'Purchase' : 'Out'
|
|
1157
|
+
})]
|
|
228
1158
|
})]
|
|
229
1159
|
})
|
|
1160
|
+
}), /*#__PURE__*/_jsxs(BottomView, {
|
|
1161
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
1162
|
+
activeOpacity: 0.8,
|
|
1163
|
+
style: Styles._bottomBtn,
|
|
1164
|
+
onPress: captureImage,
|
|
1165
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
1166
|
+
name: 'logo-whatsapp',
|
|
1167
|
+
color: COLORS.primaryColor,
|
|
1168
|
+
size: ICON_SIZES.ACTION
|
|
1169
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
1170
|
+
style: {
|
|
1171
|
+
color: COLORS.primaryColor,
|
|
1172
|
+
fontFamily: FONT_MEDIUM,
|
|
1173
|
+
fontSize: TEXT_SIZES.BUTTON_TEXT
|
|
1174
|
+
},
|
|
1175
|
+
children: "WHATSAPP"
|
|
1176
|
+
})]
|
|
1177
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
1178
|
+
activeOpacity: 0.8,
|
|
1179
|
+
style: Styles._bottomBtn,
|
|
1180
|
+
onPress: () => captureImage(true),
|
|
1181
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
1182
|
+
name: 'chatbox-ellipses-outline',
|
|
1183
|
+
color: COLORS.primaryColor,
|
|
1184
|
+
size: ICON_SIZES.ACTION
|
|
1185
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
1186
|
+
style: {
|
|
1187
|
+
color: COLORS.primaryColor,
|
|
1188
|
+
fontFamily: FONT_MEDIUM,
|
|
1189
|
+
fontSize: TEXT_SIZES.BUTTON_TEXT
|
|
1190
|
+
},
|
|
1191
|
+
children: "SMS"
|
|
1192
|
+
})]
|
|
1193
|
+
})]
|
|
230
1194
|
})]
|
|
231
1195
|
});
|
|
232
1196
|
}
|
|
@@ -238,9 +1202,9 @@ const Styles = StyleSheet.create({
|
|
|
238
1202
|
_headerMain: {
|
|
239
1203
|
width: WP(100),
|
|
240
1204
|
height: 60,
|
|
241
|
-
flexDirection:
|
|
242
|
-
alignItems:
|
|
243
|
-
justifyContent:
|
|
1205
|
+
flexDirection: 'row',
|
|
1206
|
+
alignItems: 'center',
|
|
1207
|
+
justifyContent: 'flex-start',
|
|
244
1208
|
gap: 10
|
|
245
1209
|
},
|
|
246
1210
|
_nameTxt: {
|
|
@@ -250,19 +1214,17 @@ const Styles = StyleSheet.create({
|
|
|
250
1214
|
},
|
|
251
1215
|
_contentMain: {
|
|
252
1216
|
flex: 1,
|
|
253
|
-
width:
|
|
1217
|
+
width: '100%',
|
|
254
1218
|
// height: "85%",
|
|
255
1219
|
// backgroundColor: "red",
|
|
256
|
-
alignItems:
|
|
1220
|
+
alignItems: 'center'
|
|
257
1221
|
},
|
|
258
1222
|
_sectionOne: {
|
|
259
|
-
width:
|
|
1223
|
+
width: '95%',
|
|
260
1224
|
// height: 200,
|
|
261
1225
|
backgroundColor: COLORS.whiteColor,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
borderRadius: 12,
|
|
265
|
-
shadowColor: "#000",
|
|
1226
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1227
|
+
shadowColor: '#000',
|
|
266
1228
|
shadowOffset: {
|
|
267
1229
|
width: 0,
|
|
268
1230
|
height: 2
|
|
@@ -270,14 +1232,36 @@ const Styles = StyleSheet.create({
|
|
|
270
1232
|
shadowOpacity: 0.2,
|
|
271
1233
|
shadowRadius: 3.84,
|
|
272
1234
|
elevation: 5,
|
|
273
|
-
alignItems:
|
|
1235
|
+
alignItems: 'center',
|
|
274
1236
|
paddingHorizontal: 10
|
|
275
1237
|
},
|
|
1238
|
+
_sectionTwo: {
|
|
1239
|
+
width: '95%',
|
|
1240
|
+
// height: 200,
|
|
1241
|
+
backgroundColor: COLORS.whiteColor,
|
|
1242
|
+
// position: "absolute",
|
|
1243
|
+
top: 0,
|
|
1244
|
+
borderRadius: 100,
|
|
1245
|
+
shadowColor: '#000',
|
|
1246
|
+
shadowOffset: {
|
|
1247
|
+
width: 0,
|
|
1248
|
+
height: 2
|
|
1249
|
+
},
|
|
1250
|
+
shadowOpacity: 0.2,
|
|
1251
|
+
shadowRadius: 3.84,
|
|
1252
|
+
elevation: 5,
|
|
1253
|
+
alignItems: 'center',
|
|
1254
|
+
paddingHorizontal: 10,
|
|
1255
|
+
flexDirection: 'row',
|
|
1256
|
+
justifyContent: 'flex-start',
|
|
1257
|
+
paddingVertical: 12,
|
|
1258
|
+
gap: 10
|
|
1259
|
+
},
|
|
276
1260
|
_segment: {
|
|
277
|
-
flexDirection:
|
|
278
|
-
justifyContent:
|
|
279
|
-
alignItems:
|
|
280
|
-
width:
|
|
1261
|
+
flexDirection: 'row',
|
|
1262
|
+
justifyContent: 'space-between',
|
|
1263
|
+
alignItems: 'center',
|
|
1264
|
+
width: '100%',
|
|
281
1265
|
// height:40,
|
|
282
1266
|
// backgroundColor: "pink",
|
|
283
1267
|
paddingVertical: 10,
|
|
@@ -289,13 +1273,117 @@ const Styles = StyleSheet.create({
|
|
|
289
1273
|
height: 47,
|
|
290
1274
|
backgroundColor: COLORS.lightGrey,
|
|
291
1275
|
borderRadius: 100,
|
|
292
|
-
justifyContent:
|
|
293
|
-
alignItems:
|
|
1276
|
+
justifyContent: 'center',
|
|
1277
|
+
alignItems: 'center'
|
|
1278
|
+
},
|
|
1279
|
+
_avatarText: {
|
|
1280
|
+
fontFamily: FONT_NORMAL,
|
|
1281
|
+
fontSize: 16,
|
|
1282
|
+
color: COLORS.primaryColor
|
|
1283
|
+
},
|
|
1284
|
+
_changeModalMain: {
|
|
1285
|
+
width: WP(90),
|
|
1286
|
+
maxHeight: HP(75),
|
|
1287
|
+
backgroundColor: COLORS.whiteColor
|
|
1288
|
+
},
|
|
1289
|
+
_changeModalHeader: {
|
|
1290
|
+
width: '100%',
|
|
1291
|
+
height: HP(6),
|
|
1292
|
+
backgroundColor: COLORS.primaryColor,
|
|
1293
|
+
justifyContent: 'center',
|
|
1294
|
+
alignItems: 'center'
|
|
1295
|
+
},
|
|
1296
|
+
_changeModalHeaderTxt: {
|
|
1297
|
+
color: COLORS.whiteColor,
|
|
1298
|
+
fontFamily: FONT_MEDIUM,
|
|
1299
|
+
fontSize: 14
|
|
1300
|
+
},
|
|
1301
|
+
_modalSearchMain: {
|
|
1302
|
+
width: '100%',
|
|
1303
|
+
justifyContent: 'center',
|
|
1304
|
+
alignItems: 'center',
|
|
1305
|
+
marginVertical: 7.5
|
|
1306
|
+
},
|
|
1307
|
+
_modalSearch: {
|
|
1308
|
+
width: '92%',
|
|
1309
|
+
height: 45,
|
|
1310
|
+
borderWidth: 1,
|
|
1311
|
+
borderColor: COLORS.gray,
|
|
1312
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1313
|
+
paddingLeft: 10,
|
|
1314
|
+
fontFamily: FONT_NORMAL,
|
|
1315
|
+
fontSize: 13,
|
|
1316
|
+
color: COLORS.blackColor
|
|
294
1317
|
},
|
|
295
1318
|
_avatarText: {
|
|
296
1319
|
fontFamily: FONT_NORMAL,
|
|
297
1320
|
fontSize: 16,
|
|
298
1321
|
color: COLORS.primaryColor
|
|
1322
|
+
},
|
|
1323
|
+
_addContactBtn: {
|
|
1324
|
+
width: '92%',
|
|
1325
|
+
height: 50,
|
|
1326
|
+
// backgroundColor: "red",
|
|
1327
|
+
flexDirection: 'row',
|
|
1328
|
+
justifyContent: 'space-between',
|
|
1329
|
+
alignItems: 'center'
|
|
1330
|
+
},
|
|
1331
|
+
_contactsCardMain: {
|
|
1332
|
+
width: '92%',
|
|
1333
|
+
height: 50,
|
|
1334
|
+
// backgroundColor: "red",
|
|
1335
|
+
marginVertical: 10,
|
|
1336
|
+
flexDirection: 'row',
|
|
1337
|
+
justifyContent: 'space-between',
|
|
1338
|
+
alignItems: 'center',
|
|
1339
|
+
alignSelf: 'center'
|
|
1340
|
+
},
|
|
1341
|
+
_phoneInputMain: {
|
|
1342
|
+
width: '92%',
|
|
1343
|
+
// height:60,
|
|
1344
|
+
// backgroundColor:"red",
|
|
1345
|
+
alignItems: 'center',
|
|
1346
|
+
gap: 15
|
|
1347
|
+
},
|
|
1348
|
+
_modalBtn: {
|
|
1349
|
+
width: '100%',
|
|
1350
|
+
height: 50,
|
|
1351
|
+
backgroundColor: COLORS.primaryColor,
|
|
1352
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1353
|
+
justifyContent: 'center',
|
|
1354
|
+
alignItems: 'center'
|
|
1355
|
+
},
|
|
1356
|
+
_bottomBtn: {
|
|
1357
|
+
width: '48%',
|
|
1358
|
+
height: 50,
|
|
1359
|
+
backgroundColor: COLORS.whiteColor,
|
|
1360
|
+
justifyContent: 'center',
|
|
1361
|
+
alignItems: 'center',
|
|
1362
|
+
flexDirection: 'row',
|
|
1363
|
+
borderRadius: 100,
|
|
1364
|
+
borderColor: COLORS.primaryColor,
|
|
1365
|
+
borderWidth: 1,
|
|
1366
|
+
paddingHorizontal: 20,
|
|
1367
|
+
gap: 10
|
|
1368
|
+
},
|
|
1369
|
+
tableHeader: {
|
|
1370
|
+
flexDirection: 'row',
|
|
1371
|
+
backgroundColor: '#d7d7d7',
|
|
1372
|
+
paddingVertical: 10,
|
|
1373
|
+
paddingHorizontal: 8,
|
|
1374
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1375
|
+
marginTop: 10
|
|
1376
|
+
},
|
|
1377
|
+
tHeadText: {
|
|
1378
|
+
fontSize: 10,
|
|
1379
|
+
color: '#777',
|
|
1380
|
+
fontFamily: FONT_NORMAL
|
|
1381
|
+
},
|
|
1382
|
+
tableRow: {
|
|
1383
|
+
flexDirection: 'row',
|
|
1384
|
+
paddingVertical: 14,
|
|
1385
|
+
paddingHorizontal: 8,
|
|
1386
|
+
alignItems: 'center'
|
|
299
1387
|
}
|
|
300
1388
|
});
|
|
301
1389
|
//# sourceMappingURL=TransactionDetails.js.map
|