digikhata-mashreq-sdk 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/App.js +13 -26
- package/lib/module/App.js.map +1 -1
- package/lib/module/app/api/api.js +12 -0
- package/lib/module/app/api/api.js.map +1 -0
- package/lib/module/app/assets/Icons/Bill.png +0 -0
- package/lib/module/app/assets/Icons/Bill_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Cash.png +0 -0
- package/lib/module/app/assets/Icons/Cash_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Expense.png +0 -0
- package/lib/module/app/assets/Icons/Expense_Grey.png +0 -0
- package/lib/module/app/assets/Icons/Staff.png +0 -0
- package/lib/module/app/assets/Icons/Stock.png +0 -0
- package/lib/module/app/assets/Icons/Stock_Grey.png +0 -0
- package/lib/module/app/assets/Icons/abc.png +0 -0
- package/lib/module/app/assets/Icons/bank_logo.png +0 -0
- package/lib/module/app/assets/Icons/download_sale.png +0 -0
- package/lib/module/app/assets/Icons/recycle-bin.png +0 -0
- package/lib/module/app/assets/animations/recording.json +1 -0
- package/lib/module/app/assets/animations/success.json +1 -0
- package/lib/module/app/assets/animations/voice_visualization.json +1 -0
- package/lib/module/app/assets/businessCards/card_11.png +0 -0
- package/lib/module/app/assets/businessCards/card_12_bg.png +0 -0
- package/lib/module/app/assets/businessCards/card_wall_01.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_02.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_03.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_04.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_05.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_06.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_07.jpeg +0 -0
- package/lib/module/app/assets/businessCards/card_wall_08.jpeg +0 -0
- package/lib/module/app/assets/illustrations/empty.png +0 -0
- package/lib/module/app/assets/illustrations/packages.png +0 -0
- package/lib/module/app/assets/images/Digikhata_idzarHgH0q_0.png +0 -0
- package/lib/module/app/assets/images/bank.png +0 -0
- package/lib/module/app/assets/images/digiLogo-main.png +0 -0
- package/lib/module/app/assets/images/svgviewer-output.svg +57 -0
- package/lib/module/app/assets/images/user.png +0 -0
- package/lib/module/app/assets/oldIcons/BILL.svg +3 -0
- package/lib/module/app/assets/oldIcons/CASH.svg +4 -0
- package/lib/module/app/assets/oldIcons/EXPENSE.svg +6 -0
- package/lib/module/app/assets/oldIcons/STAFF.svg +3 -0
- package/lib/module/app/assets/oldIcons/Sale Active.svg +14 -0
- package/lib/module/app/assets/oldIcons/Stock.svg +5 -0
- package/lib/module/app/assets/svg/BILL.svg +4 -0
- package/lib/module/app/assets/svg/CASH.svg +6 -0
- package/lib/module/app/assets/svg/EXPENSE.svg +5 -0
- package/lib/module/app/assets/svg/More Icon.svg +6 -0
- package/lib/module/app/assets/svg/Payment Icon.svg +4 -0
- package/lib/module/app/assets/svg/Pos.svg +13 -0
- package/lib/module/app/assets/svg/STAFF.svg +5 -0
- package/lib/module/app/assets/svg/Sale Active.svg +8 -0
- package/lib/module/app/assets/svg/Sale Icon.svg +3 -0
- package/lib/module/app/assets/svg/Stock.svg +5 -0
- package/lib/module/app/components/AccountSetupSteps.js +64 -0
- package/lib/module/app/components/AccountSetupSteps.js.map +1 -0
- package/lib/module/app/components/AddItemBillParent.js +366 -0
- package/lib/module/app/components/AddItemBillParent.js.map +1 -0
- package/lib/module/app/components/AdditemBillChild.js +1123 -0
- package/lib/module/app/components/AdditemBillChild.js.map +1 -0
- package/lib/module/app/components/Balance.js +116 -70
- package/lib/module/app/components/Balance.js.map +1 -1
- package/lib/module/app/components/BillList.js +428 -0
- package/lib/module/app/components/BillList.js.map +1 -0
- package/lib/module/app/components/BillSetupSteps.js +64 -0
- package/lib/module/app/components/BillSetupSteps.js.map +1 -0
- package/lib/module/app/components/BottomView.js +35 -0
- package/lib/module/app/components/BottomView.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card1.js +202 -0
- package/lib/module/app/components/BusinessCards/Card1.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card10.js +234 -0
- package/lib/module/app/components/BusinessCards/Card10.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card2.js +190 -0
- package/lib/module/app/components/BusinessCards/Card2.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card3.js +186 -0
- package/lib/module/app/components/BusinessCards/Card3.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card4.js +186 -0
- package/lib/module/app/components/BusinessCards/Card4.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card5.js +189 -0
- package/lib/module/app/components/BusinessCards/Card5.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card6.js +198 -0
- package/lib/module/app/components/BusinessCards/Card6.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card7.js +185 -0
- package/lib/module/app/components/BusinessCards/Card7.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card8.js +187 -0
- package/lib/module/app/components/BusinessCards/Card8.js.map +1 -0
- package/lib/module/app/components/BusinessCards/Card9.js +234 -0
- package/lib/module/app/components/BusinessCards/Card9.js.map +1 -0
- package/lib/module/app/components/BusinessCards/index.js +13 -0
- package/lib/module/app/components/BusinessCards/index.js.map +1 -0
- package/lib/module/app/components/CashEntryComponent.js +256 -0
- package/lib/module/app/components/CashEntryComponent.js.map +1 -0
- package/lib/module/app/components/CityModal.js +116 -0
- package/lib/module/app/components/CityModal.js.map +1 -0
- package/lib/module/app/components/CountryPhoneInput.js +263 -166
- package/lib/module/app/components/CountryPhoneInput.js.map +1 -1
- package/lib/module/app/components/CreateExpenseAccount.js +139 -0
- package/lib/module/app/components/CreateExpenseAccount.js.map +1 -0
- package/lib/module/app/components/CustomStatusBar.js +29 -0
- package/lib/module/app/components/CustomStatusBar.js.map +1 -0
- package/lib/module/app/components/CustomToast.js +135 -0
- package/lib/module/app/components/CustomToast.js.map +1 -0
- package/lib/module/app/components/DeleteBusinessModal.js +174 -0
- package/lib/module/app/components/DeleteBusinessModal.js.map +1 -0
- package/lib/module/app/components/DiscountTaxModal.js +242 -0
- package/lib/module/app/components/DiscountTaxModal.js.map +1 -0
- package/lib/module/app/components/Entries.js +54 -32
- package/lib/module/app/components/Entries.js.map +1 -1
- package/lib/module/app/components/ExpenseList.js +402 -0
- package/lib/module/app/components/ExpenseList.js.map +1 -0
- package/lib/module/app/components/ExpenseParent.js +441 -0
- package/lib/module/app/components/ExpenseParent.js.map +1 -0
- package/lib/module/app/components/FloatingInput.js +159 -0
- package/lib/module/app/components/FloatingInput.js.map +1 -0
- package/lib/module/app/components/Header.js +107 -0
- package/lib/module/app/components/Header.js.map +1 -0
- package/lib/module/app/components/Loader.js +45 -0
- package/lib/module/app/components/Loader.js.map +1 -0
- package/lib/module/app/components/PartyModal.js +230 -0
- package/lib/module/app/components/PartyModal.js.map +1 -0
- package/lib/module/app/components/PickerModal.js +153 -0
- package/lib/module/app/components/PickerModal.js.map +1 -0
- package/lib/module/app/components/SalePaymentModal.js +743 -0
- package/lib/module/app/components/SalePaymentModal.js.map +1 -0
- package/lib/module/app/components/SearchBar.js +179 -42
- package/lib/module/app/components/SearchBar.js.map +1 -1
- package/lib/module/app/components/StockDetailChild.js +425 -0
- package/lib/module/app/components/StockDetailChild.js.map +1 -0
- package/lib/module/app/components/StockList.js +448 -0
- package/lib/module/app/components/StockList.js.map +1 -0
- package/lib/module/app/components/StockReportTransaction.js +182 -0
- package/lib/module/app/components/StockReportTransaction.js.map +1 -0
- package/lib/module/app/components/Transaction.js +193 -53
- package/lib/module/app/components/Transaction.js.map +1 -1
- package/lib/module/app/components/User.js +106 -51
- package/lib/module/app/components/User.js.map +1 -1
- package/lib/module/app/components/index.js +20 -1
- package/lib/module/app/components/index.js.map +1 -1
- package/lib/module/app/database/bill.js +247 -0
- package/lib/module/app/database/bill.js.map +1 -0
- package/lib/module/app/database/business.js +262 -0
- package/lib/module/app/database/business.js.map +1 -0
- package/lib/module/app/database/cash.js +299 -0
- package/lib/module/app/database/cash.js.map +1 -0
- package/lib/module/app/database/clients.js +1182 -36
- package/lib/module/app/database/clients.js.map +1 -1
- package/lib/module/app/database/expense.js +299 -0
- package/lib/module/app/database/expense.js.map +1 -0
- package/lib/module/app/database/schema.js +113 -3
- package/lib/module/app/database/schema.js.map +1 -1
- package/lib/module/app/database/stock.js +509 -0
- package/lib/module/app/database/stock.js.map +1 -0
- package/lib/module/app/htmlTemplates/htmlTemplates.js +2504 -0
- package/lib/module/app/htmlTemplates/htmlTemplates.js.map +1 -0
- package/lib/module/app/navigation/BillStack/BillStack.js +40 -0
- package/lib/module/app/navigation/BillStack/BillStack.js.map +1 -0
- package/lib/module/app/navigation/BottomTabs/BottomTabs.js +10 -5
- package/lib/module/app/navigation/BottomTabs/BottomTabs.js.map +1 -1
- package/lib/module/app/navigation/BusinessStack/BusinessStack.js +30 -0
- package/lib/module/app/navigation/BusinessStack/BusinessStack.js.map +1 -0
- package/lib/module/app/navigation/CashStack/CashStack.js +79 -0
- package/lib/module/app/navigation/CashStack/CashStack.js.map +1 -0
- package/lib/module/app/navigation/EntriesStack/EntriesStack.js +223 -0
- package/lib/module/app/navigation/EntriesStack/EntriesStack.js.map +1 -0
- package/lib/module/app/navigation/ExpenseStack.js/ExpenseStack.js +37 -0
- package/lib/module/app/navigation/ExpenseStack.js/ExpenseStack.js.map +1 -0
- package/lib/module/app/navigation/HomeStack/HomeStack.js +93 -1
- package/lib/module/app/navigation/HomeStack/HomeStack.js.map +1 -1
- package/lib/module/app/navigation/Root.js +10 -1
- package/lib/module/app/navigation/Root.js.map +1 -1
- package/lib/module/app/navigation/SaleStack/SaleStack.js +73 -0
- package/lib/module/app/navigation/SaleStack/SaleStack.js.map +1 -0
- package/lib/module/app/navigation/StockStack/StockStack.js +49 -0
- package/lib/module/app/navigation/StockStack/StockStack.js.map +1 -0
- package/lib/module/app/navigation/index.js +3 -1
- package/lib/module/app/navigation/index.js.map +1 -1
- package/lib/module/app/redux/Store.js +3 -1
- package/lib/module/app/redux/Store.js.map +1 -1
- package/lib/module/app/redux/reducers/client/client_reducers.js +23 -2
- package/lib/module/app/redux/reducers/client/client_reducers.js.map +1 -1
- package/lib/module/app/redux/reducers/client/client_types.js +5 -0
- package/lib/module/app/redux/reducers/client/client_types.js.map +1 -1
- package/lib/module/app/redux/reducers/user/user_reducers.js +22 -0
- package/lib/module/app/redux/reducers/user/user_reducers.js.map +1 -0
- package/lib/module/app/redux/reducers/user/user_types.js +6 -0
- package/lib/module/app/redux/reducers/user/user_types.js.map +1 -0
- package/lib/module/app/screens/AddBank.js +237 -0
- package/lib/module/app/screens/AddBank.js.map +1 -0
- package/lib/module/app/screens/AddBusiness.js +905 -0
- package/lib/module/app/screens/AddBusiness.js.map +1 -0
- package/lib/module/app/screens/AddItems.js +433 -0
- package/lib/module/app/screens/AddItems.js.map +1 -0
- package/lib/module/app/screens/AddScreen.js +341 -77
- package/lib/module/app/screens/AddScreen.js.map +1 -1
- package/lib/module/app/screens/All.js +836 -0
- package/lib/module/app/screens/All.js.map +1 -0
- package/lib/module/app/screens/AllTransactions.js +846 -0
- package/lib/module/app/screens/AllTransactions.js.map +1 -0
- package/lib/module/app/screens/Banks.js +807 -48
- package/lib/module/app/screens/Banks.js.map +1 -1
- package/lib/module/app/screens/BillDetails.js +1033 -0
- package/lib/module/app/screens/BillDetails.js.map +1 -0
- package/lib/module/app/screens/BillHome.js +102 -0
- package/lib/module/app/screens/BillHome.js.map +1 -0
- package/lib/module/app/screens/BillParent.js +373 -0
- package/lib/module/app/screens/BillParent.js.map +1 -0
- package/lib/module/app/screens/BusinessDetail.js +787 -0
- package/lib/module/app/screens/BusinessDetail.js.map +1 -0
- package/lib/module/app/screens/CashEntry.js +2429 -0
- package/lib/module/app/screens/CashEntry.js.map +1 -0
- package/lib/module/app/screens/CashEntryDetails.js +574 -0
- package/lib/module/app/screens/CashEntryDetails.js.map +1 -0
- package/lib/module/app/screens/CashHome.js +544 -0
- package/lib/module/app/screens/CashHome.js.map +1 -0
- package/lib/module/app/screens/CashReport.js +1297 -0
- package/lib/module/app/screens/CashReport.js.map +1 -0
- package/lib/module/app/screens/CashSummary.js +602 -0
- package/lib/module/app/screens/CashSummary.js.map +1 -0
- package/lib/module/app/screens/CreateBill.js +2137 -0
- package/lib/module/app/screens/CreateBill.js.map +1 -0
- package/lib/module/app/screens/CustomerEntries.js +1093 -184
- package/lib/module/app/screens/CustomerEntries.js.map +1 -1
- package/lib/module/app/screens/Customers.js +727 -96
- package/lib/module/app/screens/Customers.js.map +1 -1
- package/lib/module/app/screens/EditCategory.js +299 -0
- package/lib/module/app/screens/EditCategory.js.map +1 -0
- package/lib/module/app/screens/EditCategoryStock.js +302 -0
- package/lib/module/app/screens/EditCategoryStock.js.map +1 -0
- package/lib/module/app/screens/Entry.js +1838 -275
- package/lib/module/app/screens/Entry.js.map +1 -1
- package/lib/module/app/screens/ExpenseDetail.js +15 -0
- package/lib/module/app/screens/ExpenseDetail.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntries.js +713 -0
- package/lib/module/app/screens/ExpenseEntries.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntry.js +2095 -0
- package/lib/module/app/screens/ExpenseEntry.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntryDetails.js +508 -0
- package/lib/module/app/screens/ExpenseEntryDetails.js.map +1 -0
- package/lib/module/app/screens/ExpenseEntryReport.js +792 -0
- package/lib/module/app/screens/ExpenseEntryReport.js.map +1 -0
- package/lib/module/app/screens/ExpenseReport.js +792 -0
- package/lib/module/app/screens/ExpenseReport.js.map +1 -0
- package/lib/module/app/screens/Geolocation.js +374 -0
- package/lib/module/app/screens/Geolocation.js.map +1 -0
- package/lib/module/app/screens/GetStarted.js +213 -0
- package/lib/module/app/screens/GetStarted.js.map +1 -0
- package/lib/module/app/screens/HomeScreen.js +202 -55
- package/lib/module/app/screens/HomeScreen.js.map +1 -1
- package/lib/module/app/screens/InBuy.js +854 -0
- package/lib/module/app/screens/InBuy.js.map +1 -0
- package/lib/module/app/screens/ItemEntryDetails.js +652 -0
- package/lib/module/app/screens/ItemEntryDetails.js.map +1 -0
- package/lib/module/app/screens/LowStock.js +372 -0
- package/lib/module/app/screens/LowStock.js.map +1 -0
- package/lib/module/app/screens/NewPin.js +234 -0
- package/lib/module/app/screens/NewPin.js.map +1 -0
- package/lib/module/app/screens/OutSell.js +1883 -0
- package/lib/module/app/screens/OutSell.js.map +1 -0
- package/lib/module/app/screens/POSSale.js +637 -0
- package/lib/module/app/screens/POSSale.js.map +1 -0
- package/lib/module/app/screens/PinScreen.js +663 -0
- package/lib/module/app/screens/PinScreen.js.map +1 -0
- package/lib/module/app/screens/PreviewBill.js +329 -0
- package/lib/module/app/screens/PreviewBill.js.map +1 -0
- package/lib/module/app/screens/Profile.js +1160 -0
- package/lib/module/app/screens/Profile.js.map +1 -0
- package/lib/module/app/screens/RateList.js +432 -0
- package/lib/module/app/screens/RateList.js.map +1 -0
- package/lib/module/app/screens/Report.js +1105 -0
- package/lib/module/app/screens/Report.js.map +1 -0
- package/lib/module/app/screens/SaleItemDetail.js +1047 -0
- package/lib/module/app/screens/SaleItemDetail.js.map +1 -0
- package/lib/module/app/screens/SaleParent.js +289 -0
- package/lib/module/app/screens/SaleParent.js.map +1 -0
- package/lib/module/app/screens/SelectBank.js +220 -0
- package/lib/module/app/screens/SelectBank.js.map +1 -0
- package/lib/module/app/screens/SelectBusiness.js +497 -93
- package/lib/module/app/screens/SelectBusiness.js.map +1 -1
- package/lib/module/app/screens/Splash.js +93 -20
- package/lib/module/app/screens/Splash.js.map +1 -1
- package/lib/module/app/screens/StockChild.js +362 -0
- package/lib/module/app/screens/StockChild.js.map +1 -0
- package/lib/module/app/screens/StockDetail.js +705 -0
- package/lib/module/app/screens/StockDetail.js.map +1 -0
- package/lib/module/app/screens/StockParent.js +260 -0
- package/lib/module/app/screens/StockParent.js.map +1 -0
- package/lib/module/app/screens/StockReport.js +1031 -0
- package/lib/module/app/screens/StockReport.js.map +1 -0
- package/lib/module/app/screens/StockValue.js +545 -0
- package/lib/module/app/screens/StockValue.js.map +1 -0
- package/lib/module/app/screens/Suppliers.js +753 -98
- package/lib/module/app/screens/Suppliers.js.map +1 -1
- package/lib/module/app/screens/TransactionDetails.js +1169 -81
- package/lib/module/app/screens/TransactionDetails.js.map +1 -1
- package/lib/module/app/screens/UpdateBusiness.js +707 -0
- package/lib/module/app/screens/UpdateBusiness.js.map +1 -0
- package/lib/module/app/screens/VisionCamera.js +60 -0
- package/lib/module/app/screens/VisionCamera.js.map +1 -0
- package/lib/module/app/screens/index.js +46 -1
- package/lib/module/app/screens/index.js.map +1 -1
- package/lib/module/app/screens/new.html +171 -0
- package/lib/module/app/themes/config.js +299 -30
- package/lib/module/app/themes/config.js.map +1 -1
- package/lib/module/app/utils/city.json +7265 -0
- package/lib/typescript/eslint.config.d.mts +1 -1
- package/lib/typescript/src/App.d.ts.map +1 -1
- package/lib/typescript/src/app/api/api.d.ts +10 -0
- package/lib/typescript/src/app/api/api.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AccountSetupSteps.d.ts +3 -0
- package/lib/typescript/src/app/components/AccountSetupSteps.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AddItemBillParent.d.ts +5 -0
- package/lib/typescript/src/app/components/AddItemBillParent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/AdditemBillChild.d.ts +6 -0
- package/lib/typescript/src/app/components/AdditemBillChild.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Balance.d.ts +3 -1
- package/lib/typescript/src/app/components/Balance.d.ts.map +1 -1
- package/lib/typescript/src/app/components/BillList.d.ts +5 -0
- package/lib/typescript/src/app/components/BillList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BillSetupSteps.d.ts +3 -0
- package/lib/typescript/src/app/components/BillSetupSteps.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BottomView.d.ts +6 -0
- package/lib/typescript/src/app/components/BottomView.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card1.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card1.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card10.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card10.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card2.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card2.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card3.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card3.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card4.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card4.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card5.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card5.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card6.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card6.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card7.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card7.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card8.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card8.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/Card9.d.ts +14 -0
- package/lib/typescript/src/app/components/BusinessCards/Card9.d.ts.map +1 -0
- package/lib/typescript/src/app/components/BusinessCards/index.d.ts +11 -0
- package/lib/typescript/src/app/components/BusinessCards/index.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CashEntryComponent.d.ts +8 -0
- package/lib/typescript/src/app/components/CashEntryComponent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CityModal.d.ts +7 -0
- package/lib/typescript/src/app/components/CityModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CountryPhoneInput.d.ts +4 -1
- package/lib/typescript/src/app/components/CountryPhoneInput.d.ts.map +1 -1
- package/lib/typescript/src/app/components/CreateExpenseAccount.d.ts +9 -0
- package/lib/typescript/src/app/components/CreateExpenseAccount.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CustomStatusBar.d.ts +3 -0
- package/lib/typescript/src/app/components/CustomStatusBar.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CustomToast.d.ts +10 -0
- package/lib/typescript/src/app/components/CustomToast.d.ts.map +1 -0
- package/lib/typescript/src/app/components/DeleteBusinessModal.d.ts +8 -0
- package/lib/typescript/src/app/components/DeleteBusinessModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/DiscountTaxModal.d.ts +9 -0
- package/lib/typescript/src/app/components/DiscountTaxModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Entries.d.ts.map +1 -1
- package/lib/typescript/src/app/components/ExpenseList.d.ts +6 -0
- package/lib/typescript/src/app/components/ExpenseList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/ExpenseParent.d.ts +4 -0
- package/lib/typescript/src/app/components/ExpenseParent.d.ts.map +1 -0
- package/lib/typescript/src/app/components/FloatingInput.d.ts +18 -0
- package/lib/typescript/src/app/components/FloatingInput.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Header.d.ts +11 -0
- package/lib/typescript/src/app/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Loader.d.ts +5 -0
- package/lib/typescript/src/app/components/Loader.d.ts.map +1 -0
- package/lib/typescript/src/app/components/PartyModal.d.ts +7 -0
- package/lib/typescript/src/app/components/PartyModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/PickerModal.d.ts +8 -0
- package/lib/typescript/src/app/components/PickerModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/SalePaymentModal.d.ts +15 -0
- package/lib/typescript/src/app/components/SalePaymentModal.d.ts.map +1 -0
- package/lib/typescript/src/app/components/SearchBar.d.ts +2 -4
- package/lib/typescript/src/app/components/SearchBar.d.ts.map +1 -1
- package/lib/typescript/src/app/components/StockDetailChild.d.ts +5 -0
- package/lib/typescript/src/app/components/StockDetailChild.d.ts.map +1 -0
- package/lib/typescript/src/app/components/StockList.d.ts +6 -0
- package/lib/typescript/src/app/components/StockList.d.ts.map +1 -0
- package/lib/typescript/src/app/components/StockReportTransaction.d.ts +18 -0
- package/lib/typescript/src/app/components/StockReportTransaction.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Transaction.d.ts +9 -2
- package/lib/typescript/src/app/components/Transaction.d.ts.map +1 -1
- package/lib/typescript/src/app/components/User.d.ts +3 -1
- package/lib/typescript/src/app/components/User.d.ts.map +1 -1
- package/lib/typescript/src/app/components/index.d.ts +26 -7
- package/lib/typescript/src/app/components/index.d.ts.map +1 -1
- package/lib/typescript/src/app/database/bill.d.ts +7 -0
- package/lib/typescript/src/app/database/bill.d.ts.map +1 -0
- package/lib/typescript/src/app/database/business.d.ts +9 -0
- package/lib/typescript/src/app/database/business.d.ts.map +1 -0
- package/lib/typescript/src/app/database/cash.d.ts +14 -0
- package/lib/typescript/src/app/database/cash.d.ts.map +1 -0
- package/lib/typescript/src/app/database/clients.d.ts +36 -5
- package/lib/typescript/src/app/database/clients.d.ts.map +1 -1
- package/lib/typescript/src/app/database/expense.d.ts +12 -0
- package/lib/typescript/src/app/database/expense.d.ts.map +1 -0
- package/lib/typescript/src/app/database/schema.d.ts.map +1 -1
- package/lib/typescript/src/app/database/stock.d.ts +16 -0
- package/lib/typescript/src/app/database/stock.d.ts.map +1 -0
- package/lib/typescript/src/app/htmlTemplates/htmlTemplates.d.ts +29 -0
- package/lib/typescript/src/app/htmlTemplates/htmlTemplates.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/BillStack/BillStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/BillStack/BillStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/BottomTabs/BottomTabs.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/BusinessStack/BusinessStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/BusinessStack/BusinessStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/CashStack/CashStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/CashStack/CashStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/EntriesStack/EntriesStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/EntriesStack/EntriesStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/ExpenseStack.js/ExpenseStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/ExpenseStack.js/ExpenseStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/HomeStack/HomeStack.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/Root.d.ts.map +1 -1
- package/lib/typescript/src/app/navigation/SaleStack/SaleStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/SaleStack/SaleStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/StockStack/StockStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/StockStack/StockStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/index.d.ts +3 -1
- package/lib/typescript/src/app/navigation/index.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/Store.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/client/client_reducers.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts +5 -0
- package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts.map +1 -1
- package/lib/typescript/src/app/redux/reducers/user/user_reducers.d.ts +3 -0
- package/lib/typescript/src/app/redux/reducers/user/user_reducers.d.ts.map +1 -0
- package/lib/typescript/src/app/redux/reducers/user/user_types.d.ts +4 -0
- package/lib/typescript/src/app/redux/reducers/user/user_types.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddBank.d.ts +5 -0
- package/lib/typescript/src/app/screens/AddBank.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddBusiness.d.ts +4 -0
- package/lib/typescript/src/app/screens/AddBusiness.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddItems.d.ts +5 -0
- package/lib/typescript/src/app/screens/AddItems.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddScreen.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/All.d.ts +2 -0
- package/lib/typescript/src/app/screens/All.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AllTransactions.d.ts +5 -0
- package/lib/typescript/src/app/screens/AllTransactions.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Banks.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/BillDetails.d.ts +6 -0
- package/lib/typescript/src/app/screens/BillDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BillHome.d.ts +5 -0
- package/lib/typescript/src/app/screens/BillHome.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BillParent.d.ts +5 -0
- package/lib/typescript/src/app/screens/BillParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/BusinessDetail.d.ts +4 -0
- package/lib/typescript/src/app/screens/BusinessDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashEntry.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashEntry.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashHome.d.ts +4 -0
- package/lib/typescript/src/app/screens/CashHome.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashReport.d.ts +4 -0
- package/lib/typescript/src/app/screens/CashReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CashSummary.d.ts +5 -0
- package/lib/typescript/src/app/screens/CashSummary.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CreateBill.d.ts +5 -0
- package/lib/typescript/src/app/screens/CreateBill.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CustomerEntries.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/Customers.d.ts +1 -3
- package/lib/typescript/src/app/screens/Customers.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/EditCategory.d.ts +4 -0
- package/lib/typescript/src/app/screens/EditCategory.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/EditCategoryStock.d.ts +4 -0
- package/lib/typescript/src/app/screens/EditCategoryStock.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Entry.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/ExpenseDetail.d.ts +3 -0
- package/lib/typescript/src/app/screens/ExpenseDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntries.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntries.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntry.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntry.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseEntryReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseEntryReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ExpenseReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/ExpenseReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Geolocation.d.ts +5 -0
- package/lib/typescript/src/app/screens/Geolocation.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/GetStarted.d.ts +4 -0
- package/lib/typescript/src/app/screens/GetStarted.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/HomeScreen.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/InBuy.d.ts +5 -0
- package/lib/typescript/src/app/screens/InBuy.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/ItemEntryDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/ItemEntryDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/LowStock.d.ts +4 -0
- package/lib/typescript/src/app/screens/LowStock.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/NewPin.d.ts +5 -0
- package/lib/typescript/src/app/screens/NewPin.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/OutSell.d.ts +6 -0
- package/lib/typescript/src/app/screens/OutSell.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/POSSale.d.ts +9 -0
- package/lib/typescript/src/app/screens/POSSale.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/PinScreen.d.ts +5 -0
- package/lib/typescript/src/app/screens/PinScreen.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/PreviewBill.d.ts +5 -0
- package/lib/typescript/src/app/screens/PreviewBill.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Profile.d.ts +5 -0
- package/lib/typescript/src/app/screens/Profile.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/RateList.d.ts +5 -0
- package/lib/typescript/src/app/screens/RateList.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Report.d.ts +5 -0
- package/lib/typescript/src/app/screens/Report.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SaleItemDetail.d.ts +6 -0
- package/lib/typescript/src/app/screens/SaleItemDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SaleParent.d.ts +2 -0
- package/lib/typescript/src/app/screens/SaleParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SelectBank.d.ts +4 -0
- package/lib/typescript/src/app/screens/SelectBank.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SelectBusiness.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/Splash.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/StockChild.d.ts +7 -0
- package/lib/typescript/src/app/screens/StockChild.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockDetail.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockDetail.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockParent.d.ts +2 -0
- package/lib/typescript/src/app/screens/StockParent.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockReport.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockReport.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/StockValue.d.ts +5 -0
- package/lib/typescript/src/app/screens/StockValue.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Suppliers.d.ts +1 -3
- package/lib/typescript/src/app/screens/Suppliers.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/TransactionDetails.d.ts.map +1 -1
- package/lib/typescript/src/app/screens/UpdateBusiness.d.ts +5 -0
- package/lib/typescript/src/app/screens/UpdateBusiness.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/VisionCamera.d.ts +2 -0
- package/lib/typescript/src/app/screens/VisionCamera.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/index.d.ts +56 -11
- package/lib/typescript/src/app/screens/index.d.ts.map +1 -1
- package/lib/typescript/src/app/themes/config.d.ts +60 -8
- package/lib/typescript/src/app/themes/config.d.ts.map +1 -1
- package/package.json +6 -2
- package/src/App.js +30 -34
- package/src/app/api/api.js +11 -0
- package/src/app/assets/Icons/Bill.png +0 -0
- package/src/app/assets/Icons/Bill_Grey.png +0 -0
- package/src/app/assets/Icons/Cash.png +0 -0
- package/src/app/assets/Icons/Cash_Grey.png +0 -0
- package/src/app/assets/Icons/Expense.png +0 -0
- package/src/app/assets/Icons/Expense_Grey.png +0 -0
- package/src/app/assets/Icons/Staff.png +0 -0
- package/src/app/assets/Icons/Stock.png +0 -0
- package/src/app/assets/Icons/Stock_Grey.png +0 -0
- package/src/app/assets/Icons/abc.png +0 -0
- package/src/app/assets/Icons/bank_logo.png +0 -0
- package/src/app/assets/Icons/download_sale.png +0 -0
- package/src/app/assets/Icons/recycle-bin.png +0 -0
- package/src/app/assets/animations/recording.json +1 -0
- package/src/app/assets/animations/success.json +1 -0
- package/src/app/assets/animations/voice_visualization.json +1 -0
- package/src/app/assets/businessCards/card_11.png +0 -0
- package/src/app/assets/businessCards/card_12_bg.png +0 -0
- package/src/app/assets/businessCards/card_wall_01.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_02.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_03.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_04.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_05.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_06.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_07.jpeg +0 -0
- package/src/app/assets/businessCards/card_wall_08.jpeg +0 -0
- package/src/app/assets/illustrations/empty.png +0 -0
- package/src/app/assets/illustrations/packages.png +0 -0
- package/src/app/assets/images/Digikhata_idzarHgH0q_0.png +0 -0
- package/src/app/assets/images/bank.png +0 -0
- package/src/app/assets/images/digiLogo-main.png +0 -0
- package/src/app/assets/images/svgviewer-output.svg +57 -0
- package/src/app/assets/images/user.png +0 -0
- package/src/app/assets/oldIcons/BILL.svg +3 -0
- package/src/app/assets/oldIcons/CASH.svg +4 -0
- package/src/app/assets/oldIcons/EXPENSE.svg +6 -0
- package/src/app/assets/oldIcons/STAFF.svg +3 -0
- package/src/app/assets/oldIcons/Sale Active.svg +14 -0
- package/src/app/assets/oldIcons/Stock.svg +5 -0
- package/src/app/assets/svg/BILL.svg +4 -0
- package/src/app/assets/svg/CASH.svg +6 -0
- package/src/app/assets/svg/EXPENSE.svg +5 -0
- package/src/app/assets/svg/More Icon.svg +6 -0
- package/src/app/assets/svg/Payment Icon.svg +4 -0
- package/src/app/assets/svg/Pos.svg +13 -0
- package/src/app/assets/svg/STAFF.svg +5 -0
- package/src/app/assets/svg/Sale Active.svg +8 -0
- package/src/app/assets/svg/Sale Icon.svg +3 -0
- package/src/app/assets/svg/Stock.svg +5 -0
- package/src/app/components/AccountSetupSteps.js +58 -0
- package/src/app/components/AddItemBillParent.js +373 -0
- package/src/app/components/AdditemBillChild.js +1257 -0
- package/src/app/components/Balance.js +211 -114
- package/src/app/components/BillList.js +548 -0
- package/src/app/components/BillSetupSteps.js +56 -0
- package/src/app/components/BottomView.js +39 -0
- package/src/app/components/BusinessCards/Card1.js +160 -0
- package/src/app/components/BusinessCards/Card10.js +209 -0
- package/src/app/components/BusinessCards/Card2.js +148 -0
- package/src/app/components/BusinessCards/Card3.js +147 -0
- package/src/app/components/BusinessCards/Card4.js +147 -0
- package/src/app/components/BusinessCards/Card5.js +151 -0
- package/src/app/components/BusinessCards/Card6.js +157 -0
- package/src/app/components/BusinessCards/Card7.js +146 -0
- package/src/app/components/BusinessCards/Card8.js +170 -0
- package/src/app/components/BusinessCards/Card9.js +209 -0
- package/src/app/components/BusinessCards/index.js +10 -0
- package/src/app/components/CashEntryComponent.js +297 -0
- package/src/app/components/CityModal.js +117 -0
- package/src/app/components/CountryPhoneInput.js +373 -267
- package/src/app/components/CreateExpenseAccount.js +141 -0
- package/src/app/components/CustomStatusBar.js +33 -0
- package/src/app/components/CustomToast.js +143 -0
- package/src/app/components/DeleteBusinessModal.js +196 -0
- package/src/app/components/DiscountTaxModal.js +256 -0
- package/src/app/components/Entries.js +87 -67
- package/src/app/components/ExpenseList.js +507 -0
- package/src/app/components/ExpenseParent.js +446 -0
- package/src/app/components/FloatingInput.js +188 -0
- package/src/app/components/Header.js +121 -0
- package/src/app/components/Loader.js +35 -0
- package/src/app/components/PartyModal.js +213 -0
- package/src/app/components/PickerModal.js +176 -0
- package/src/app/components/SalePaymentModal.js +822 -0
- package/src/app/components/SearchBar.js +225 -47
- package/src/app/components/StockDetailChild.js +461 -0
- package/src/app/components/StockList.js +582 -0
- package/src/app/components/StockReportTransaction.js +192 -0
- package/src/app/components/Transaction.js +277 -86
- package/src/app/components/User.js +188 -80
- package/src/app/components/index.js +51 -13
- package/src/app/database/bill.js +305 -0
- package/src/app/database/business.js +499 -0
- package/src/app/database/cash.js +451 -0
- package/src/app/database/clients.js +1536 -43
- package/src/app/database/expense.js +439 -0
- package/src/app/database/schema.js +115 -4
- package/src/app/database/stock.js +724 -0
- package/src/app/htmlTemplates/htmlTemplates.js +2603 -0
- package/src/app/navigation/BillStack/BillStack.js +38 -0
- package/src/app/navigation/BottomTabs/BottomTabs.js +24 -19
- package/src/app/navigation/BusinessStack/BusinessStack.js +27 -0
- package/src/app/navigation/CashStack/CashStack.js +59 -0
- package/src/app/navigation/EntriesStack/EntriesStack.js +186 -0
- package/src/app/navigation/ExpenseStack.js/ExpenseStack.js +50 -0
- package/src/app/navigation/HomeStack/HomeStack.js +106 -39
- package/src/app/navigation/Root.js +16 -1
- package/src/app/navigation/SaleStack/SaleStack.js +62 -0
- package/src/app/navigation/StockStack/StockStack.js +48 -0
- package/src/app/navigation/index.js +5 -1
- package/src/app/redux/Store.js +2 -0
- package/src/app/redux/reducers/client/client_reducers.js +31 -2
- package/src/app/redux/reducers/client/client_types.js +8 -1
- package/src/app/redux/reducers/user/user_reducers.js +24 -0
- package/src/app/redux/reducers/user/user_types.js +3 -0
- package/src/app/screens/AddBank.js +353 -0
- package/src/app/screens/AddBusiness.js +1161 -0
- package/src/app/screens/AddItems.js +515 -0
- package/src/app/screens/AddScreen.js +525 -165
- package/src/app/screens/All.js +1074 -0
- package/src/app/screens/AllTransactions.js +1138 -0
- package/src/app/screens/Banks.js +1134 -133
- package/src/app/screens/BillDetails.js +989 -0
- package/src/app/screens/BillHome.js +97 -0
- package/src/app/screens/BillParent.js +419 -0
- package/src/app/screens/BusinessDetail.js +939 -0
- package/src/app/screens/CashEntry.js +2913 -0
- package/src/app/screens/CashEntryDetails.js +650 -0
- package/src/app/screens/CashHome.js +594 -0
- package/src/app/screens/CashReport.js +1658 -0
- package/src/app/screens/CashSummary.js +607 -0
- package/src/app/screens/CreateBill.js +2504 -0
- package/src/app/screens/CustomerEntries.js +1578 -350
- package/src/app/screens/Customers.js +1066 -213
- package/src/app/screens/EditCategory.js +316 -0
- package/src/app/screens/EditCategoryStock.js +320 -0
- package/src/app/screens/Entry.js +2555 -585
- package/src/app/screens/ExpenseDetail.js +14 -0
- package/src/app/screens/ExpenseEntries.js +837 -0
- package/src/app/screens/ExpenseEntry.js +2478 -0
- package/src/app/screens/ExpenseEntryDetails.js +612 -0
- package/src/app/screens/ExpenseEntryReport.js +1059 -0
- package/src/app/screens/ExpenseReport.js +1071 -0
- package/src/app/screens/Geolocation.js +435 -0
- package/src/app/screens/GetStarted.js +201 -0
- package/src/app/screens/HomeScreen.js +368 -132
- package/src/app/screens/InBuy.js +918 -0
- package/src/app/screens/ItemEntryDetails.js +582 -0
- package/src/app/screens/LowStock.js +417 -0
- package/src/app/screens/NewPin.js +225 -0
- package/src/app/screens/OutSell.js +2153 -0
- package/src/app/screens/POSSale.js +639 -0
- package/src/app/screens/PinScreen.js +720 -0
- package/src/app/screens/PreviewBill.js +302 -0
- package/src/app/screens/Profile.js +1594 -0
- package/src/app/screens/RateList.js +525 -0
- package/src/app/screens/Report.js +1401 -0
- package/src/app/screens/SaleItemDetail.js +1187 -0
- package/src/app/screens/SaleParent.js +345 -0
- package/src/app/screens/SelectBank.js +220 -0
- package/src/app/screens/SelectBusiness.js +670 -163
- package/src/app/screens/Splash.js +96 -15
- package/src/app/screens/StockChild.js +372 -0
- package/src/app/screens/StockDetail.js +758 -0
- package/src/app/screens/StockParent.js +287 -0
- package/src/app/screens/StockReport.js +1359 -0
- package/src/app/screens/StockValue.js +720 -0
- package/src/app/screens/Suppliers.js +1098 -205
- package/src/app/screens/TransactionDetails.js +1674 -180
- package/src/app/screens/UpdateBusiness.js +837 -0
- package/src/app/screens/VisionCamera.js +54 -0
- package/src/app/screens/index.js +111 -21
- package/src/app/screens/new.html +171 -0
- package/src/app/themes/config.js +431 -114
- package/src/app/utils/city.json +7265 -0
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View, Text, StyleSheet, TouchableOpacity, FlatList, Image, SafeAreaView, Dimensions, PermissionsAndroid, Platform, TextInput, Keyboard, Alert } from 'react-native';
|
|
4
|
+
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';
|
|
5
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
6
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
7
|
+
import { addCommas, COLORS, FONT_BOLD, FONT_MEDIUM, FONT_NORMAL, formatDateTime, isPdfFile, TEXT_SIZES, WP } from "../themes/config.js";
|
|
8
|
+
import { viewDocument } from '@react-native-documents/viewer';
|
|
9
|
+
import Sound, { AudioEncoderAndroidType, AudioSourceAndroidType, AVEncoderAudioQualityIOSType, AVEncodingOption, RecordBackType, PlayBackType, createSound } from 'react-native-nitro-sound';
|
|
10
|
+
import { useSelector, useDispatch } from "react-redux";
|
|
11
|
+
import LottieView from 'lottie-react-native';
|
|
12
|
+
import { BottomView } from "../components/index.js";
|
|
13
|
+
import { getItemDetailsByItemId, getItemsByBusiness, softDeleteItemDetail, updateItemQty } from "../database/stock.js";
|
|
14
|
+
import { getAllClients, getClientDetails } from "../database/clients.js";
|
|
15
|
+
import { getClientSummary } from "../database/cash.js";
|
|
16
|
+
import { CLIENT_DETAILS } from "../redux/reducers/client/client_types.js";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
export default function ItemEntryDetails({
|
|
19
|
+
navigation,
|
|
20
|
+
route
|
|
21
|
+
}) {
|
|
22
|
+
const selectBusiness = useSelector(state => state.client.selected_business);
|
|
23
|
+
const animationRef = useRef(null);
|
|
24
|
+
let itemDetailId = route?.params?.itemDetailId;
|
|
25
|
+
let itemId = route?.params?.itemId;
|
|
26
|
+
const dispatch = useDispatch();
|
|
27
|
+
const [IsPlaying, setIsPlaying] = useState(false);
|
|
28
|
+
const [PlayLoading, setPlayLoading] = useState(false);
|
|
29
|
+
const [Entry, setEntry] = useState(null);
|
|
30
|
+
const [ItemDetails, setItemDetails] = useState(null);
|
|
31
|
+
const [BillNo, setBillNo] = useState("");
|
|
32
|
+
const [CustomerName, setCustomerName] = useState('');
|
|
33
|
+
const clientName = async id => {
|
|
34
|
+
let details = await getClientDetails(id);
|
|
35
|
+
return details?.type == 2 ? details?.phone : details?.name;
|
|
36
|
+
};
|
|
37
|
+
const onStartPlay = async fileUrl => {
|
|
38
|
+
setPlayLoading(true);
|
|
39
|
+
// Set up playback progress listener
|
|
40
|
+
Sound.addPlayBackListener(e => {
|
|
41
|
+
console.log('Playback progress:', e.currentPosition, e.duration);
|
|
42
|
+
setIsPlaying(true);
|
|
43
|
+
animationRef.current?.play();
|
|
44
|
+
// setCurrentPosition(e.currentPosition);
|
|
45
|
+
// setTotalDuration(e.duration);
|
|
46
|
+
// setPlayTime(Sound.mmssss(Math.floor(e.currentPosition)));
|
|
47
|
+
// setDuration(Sound.mmssss(Math.floor(e.duration)));
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Set up playback end listener
|
|
51
|
+
Sound.addPlaybackEndListener(e => {
|
|
52
|
+
console.log('Playback completed:', e);
|
|
53
|
+
// Handle playback completion
|
|
54
|
+
setIsPlaying(false);
|
|
55
|
+
animationRef.current?.pause();
|
|
56
|
+
// setCurrentPosition(0);
|
|
57
|
+
});
|
|
58
|
+
const result = await Sound.startPlayer(fileUrl);
|
|
59
|
+
setPlayLoading(false);
|
|
60
|
+
console.log('Playback started:', result);
|
|
61
|
+
};
|
|
62
|
+
const onStopPlay = async () => {
|
|
63
|
+
Sound.stopPlayer();
|
|
64
|
+
Sound.removePlayBackListener();
|
|
65
|
+
Sound.removePlaybackEndListener();
|
|
66
|
+
animationRef.current?.pause();
|
|
67
|
+
setIsPlaying(false);
|
|
68
|
+
setPlayLoading(false);
|
|
69
|
+
};
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
const unsubscribe = navigation.addListener('focus', async () => {
|
|
72
|
+
try {
|
|
73
|
+
await getItemDetails();
|
|
74
|
+
getItemDetailsByItemId(itemId).then(async res => {
|
|
75
|
+
let filtered = res?.find(i => i?.id == itemDetailId);
|
|
76
|
+
let billNo = filtered?.details?.split("_")[2];
|
|
77
|
+
setBillNo(billNo);
|
|
78
|
+
setEntry(filtered);
|
|
79
|
+
let customerName = await clientName(filtered?.customerId);
|
|
80
|
+
setCustomerName(customerName);
|
|
81
|
+
}).catch(error => {
|
|
82
|
+
console.log('Error fetching item details:', error);
|
|
83
|
+
});
|
|
84
|
+
} catch (error) {
|
|
85
|
+
console.log('❌ Error fetching item details:', error);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
return unsubscribe;
|
|
89
|
+
}, [navigation]);
|
|
90
|
+
const getItemDetails = async () => {
|
|
91
|
+
let all = await getItemsByBusiness(selectBusiness?.id);
|
|
92
|
+
let filtered = all.find(item => item?.id == itemId);
|
|
93
|
+
setItemDetails(filtered);
|
|
94
|
+
};
|
|
95
|
+
const onDeletePress = () => {
|
|
96
|
+
Alert.alert('Delete entry?', 'Do you want to delete this entry?', [{
|
|
97
|
+
text: 'Cancel',
|
|
98
|
+
onPress: () => console.log('Cancel'),
|
|
99
|
+
style: 'cancel'
|
|
100
|
+
}, {
|
|
101
|
+
text: 'Delete',
|
|
102
|
+
style: 'destructive',
|
|
103
|
+
// optional: shows in red on iOS
|
|
104
|
+
onPress: async () => {
|
|
105
|
+
try {
|
|
106
|
+
let quantity = Number(Entry?.stockIN) > 0 ? Number(ItemDetails?.qty) - Number(Entry?.stockIN) : Number(ItemDetails?.qty) + Number(Entry?.stockOUT);
|
|
107
|
+
await softDeleteItemDetail(Entry?.id);
|
|
108
|
+
await updateItemQty(ItemDetails?.id, quantity);
|
|
109
|
+
navigation.goBack();
|
|
110
|
+
} catch (err) {
|
|
111
|
+
console.log('Error soft deleting transaction:', err);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}], {
|
|
115
|
+
cancelable: true
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
const onLedgerPress = async () => {
|
|
119
|
+
let customers = await getAllClients("most_recent", selectBusiness?.id);
|
|
120
|
+
let CustomerDetails = customers.find(i => i?.id == Entry?.customerId);
|
|
121
|
+
const summary = await getClientSummary(CustomerDetails);
|
|
122
|
+
getClientDetails(CustomerDetails?.id).then(res => {
|
|
123
|
+
dispatch({
|
|
124
|
+
type: CLIENT_DETAILS,
|
|
125
|
+
payload: res
|
|
126
|
+
});
|
|
127
|
+
// console.log(item,"item")
|
|
128
|
+
navigation.navigate('CustomerEntries', {
|
|
129
|
+
homeDetails: summary
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
return /*#__PURE__*/_jsxs(SafeAreaView, {
|
|
134
|
+
style: Styles._mainContainer,
|
|
135
|
+
children: [/*#__PURE__*/_jsxs(LinearGradient, {
|
|
136
|
+
style: Styles._headerMain,
|
|
137
|
+
start: {
|
|
138
|
+
x: 0,
|
|
139
|
+
y: 0
|
|
140
|
+
},
|
|
141
|
+
end: {
|
|
142
|
+
x: 1,
|
|
143
|
+
y: 0
|
|
144
|
+
},
|
|
145
|
+
colors: [COLORS.secondaryColor, COLORS.primaryColor],
|
|
146
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
147
|
+
activeOpacity: 0.8,
|
|
148
|
+
onPress: () => navigation?.goBack(),
|
|
149
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
150
|
+
name: 'chevron-back',
|
|
151
|
+
color: COLORS.whiteColor,
|
|
152
|
+
size: 25
|
|
153
|
+
})
|
|
154
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
155
|
+
style: Styles._headerTitle,
|
|
156
|
+
children: "Entry Detail"
|
|
157
|
+
})]
|
|
158
|
+
}), /*#__PURE__*/_jsx(LinearGradient, {
|
|
159
|
+
style: [Styles._headerMain, {
|
|
160
|
+
height: 30
|
|
161
|
+
}],
|
|
162
|
+
start: {
|
|
163
|
+
x: 0,
|
|
164
|
+
y: 0
|
|
165
|
+
},
|
|
166
|
+
end: {
|
|
167
|
+
x: 1,
|
|
168
|
+
y: 0
|
|
169
|
+
},
|
|
170
|
+
colors: [COLORS.primaryColor, COLORS.secondaryColor]
|
|
171
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
172
|
+
style: Styles._searchMain,
|
|
173
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
174
|
+
style: Styles._rowMain,
|
|
175
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
176
|
+
style: {
|
|
177
|
+
height: "100%",
|
|
178
|
+
justifyContent: "center",
|
|
179
|
+
paddingRight: 10
|
|
180
|
+
},
|
|
181
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
182
|
+
style: {
|
|
183
|
+
width: 50,
|
|
184
|
+
height: 50,
|
|
185
|
+
justifyContent: "center",
|
|
186
|
+
alignItems: "center",
|
|
187
|
+
backgroundColor: COLORS.lightGrey,
|
|
188
|
+
borderRadius: 100
|
|
189
|
+
},
|
|
190
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
191
|
+
color: Number(Entry?.stockIN) > 0 ? COLORS.greenColor : COLORS.redColor,
|
|
192
|
+
name: Number(Entry?.stockIN) > 0 ? "add-circle-sharp" : "remove-circle-sharp",
|
|
193
|
+
size: 35
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
197
|
+
style: {
|
|
198
|
+
width: "60%",
|
|
199
|
+
height: "100%",
|
|
200
|
+
justifyContent: "center"
|
|
201
|
+
},
|
|
202
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
203
|
+
style: Styles._heading,
|
|
204
|
+
children: ItemDetails?.name
|
|
205
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
206
|
+
style: Styles._date,
|
|
207
|
+
children: formatDateTime(Entry?.entryDate)
|
|
208
|
+
})]
|
|
209
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
210
|
+
style: {
|
|
211
|
+
width: "25%",
|
|
212
|
+
height: "100%",
|
|
213
|
+
justifyContent: "center",
|
|
214
|
+
alignItems: "flex-end"
|
|
215
|
+
},
|
|
216
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
217
|
+
style: [Styles._heading, {
|
|
218
|
+
fontFamily: FONT_BOLD,
|
|
219
|
+
color: Number(Entry?.stockIN) > 0 ? COLORS.greenColor : COLORS.redColor
|
|
220
|
+
}],
|
|
221
|
+
children: [Number(Entry?.stockIN) > 0 ? "+" : "-", " ", Number(Entry?.stockIN) > 0 ? String(Entry?.stockIN) : String(Entry?.stockOUT)]
|
|
222
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
223
|
+
style: Styles._date,
|
|
224
|
+
children: ItemDetails?.unit
|
|
225
|
+
})]
|
|
226
|
+
})]
|
|
227
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
228
|
+
style: [Styles._rowMain, {
|
|
229
|
+
flexDirection: "column",
|
|
230
|
+
justifyContent: "space-around"
|
|
231
|
+
}],
|
|
232
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
233
|
+
style: {
|
|
234
|
+
width: "100%",
|
|
235
|
+
justifyContent: "space-between",
|
|
236
|
+
flexDirection: "row"
|
|
237
|
+
},
|
|
238
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
239
|
+
style: Styles._heading2,
|
|
240
|
+
children: Number(Entry?.stockIN) > 0 ? "Purchase Price" : "Sale Price"
|
|
241
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
242
|
+
style: [Styles._heading, {
|
|
243
|
+
fontFamily: FONT_BOLD,
|
|
244
|
+
color: Number(Entry?.stockIN) > 0 ? COLORS.greenColor : COLORS.redColor
|
|
245
|
+
}],
|
|
246
|
+
children: ["Rs ", addCommas(Number(Entry?.subamount))]
|
|
247
|
+
})]
|
|
248
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
249
|
+
style: {
|
|
250
|
+
width: "100%",
|
|
251
|
+
justifyContent: "space-between",
|
|
252
|
+
flexDirection: "row"
|
|
253
|
+
},
|
|
254
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
255
|
+
style: Styles._heading2,
|
|
256
|
+
children: "Amount"
|
|
257
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
258
|
+
style: [Styles._heading, {
|
|
259
|
+
fontFamily: FONT_BOLD,
|
|
260
|
+
color: Number(Entry?.stockIN) > 0 ? COLORS.greenColor : COLORS.redColor
|
|
261
|
+
}],
|
|
262
|
+
children: ["Rs ", addCommas(Number(Entry?.amount))]
|
|
263
|
+
})]
|
|
264
|
+
})]
|
|
265
|
+
}), CustomerName && /*#__PURE__*/_jsxs(View, {
|
|
266
|
+
style: {
|
|
267
|
+
width: "100%",
|
|
268
|
+
justifyContent: "space-between",
|
|
269
|
+
flexDirection: "row",
|
|
270
|
+
borderBottomColor: COLORS.lightGray,
|
|
271
|
+
borderBottomWidth: 1
|
|
272
|
+
},
|
|
273
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
274
|
+
style: [Styles._categoryChip, {
|
|
275
|
+
backgroundColor: COLORS.whiteColor,
|
|
276
|
+
borderColor: COLORS.primaryColor,
|
|
277
|
+
flexDirection: 'row',
|
|
278
|
+
gap: 5,
|
|
279
|
+
paddingHorizontal: 5,
|
|
280
|
+
marginTop: 15,
|
|
281
|
+
marginBottom: 15
|
|
282
|
+
}],
|
|
283
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
284
|
+
name: 'person-circle-outline',
|
|
285
|
+
color: COLORS.primaryColor,
|
|
286
|
+
size: 16
|
|
287
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
288
|
+
style: [Styles._chipText, {
|
|
289
|
+
color: COLORS.primaryColor
|
|
290
|
+
}],
|
|
291
|
+
children: CustomerName
|
|
292
|
+
})]
|
|
293
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
294
|
+
activeOpacity: 0.8,
|
|
295
|
+
onPress: onLedgerPress,
|
|
296
|
+
style: [Styles._categoryChip, {
|
|
297
|
+
backgroundColor: COLORS.whiteColor,
|
|
298
|
+
borderColor: COLORS.whiteColor,
|
|
299
|
+
flexDirection: 'row',
|
|
300
|
+
gap: 5,
|
|
301
|
+
paddingHorizontal: 5,
|
|
302
|
+
marginTop: 15,
|
|
303
|
+
marginBottom: 15
|
|
304
|
+
}],
|
|
305
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
306
|
+
style: [Styles._chipText, {
|
|
307
|
+
color: COLORS.primaryColor
|
|
308
|
+
}],
|
|
309
|
+
children: "Ledger"
|
|
310
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
311
|
+
name: 'chevron-forward',
|
|
312
|
+
color: COLORS.primaryColor,
|
|
313
|
+
size: 16
|
|
314
|
+
})]
|
|
315
|
+
})]
|
|
316
|
+
}), Entry?.details && Entry?.details !== "_bill_" && /*#__PURE__*/_jsxs(View, {
|
|
317
|
+
style: [Styles._rowMain, {
|
|
318
|
+
flexDirection: "column",
|
|
319
|
+
justifyContent: "space-around"
|
|
320
|
+
}],
|
|
321
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
322
|
+
style: {
|
|
323
|
+
width: "100%",
|
|
324
|
+
justifyContent: "space-between",
|
|
325
|
+
flexDirection: "row"
|
|
326
|
+
},
|
|
327
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
328
|
+
style: Styles._heading2,
|
|
329
|
+
children: "Details"
|
|
330
|
+
}), /*#__PURE__*/_jsx(Text, {})]
|
|
331
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
332
|
+
style: {
|
|
333
|
+
width: "100%",
|
|
334
|
+
justifyContent: "space-between",
|
|
335
|
+
flexDirection: "row"
|
|
336
|
+
},
|
|
337
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
338
|
+
style: Styles._heading,
|
|
339
|
+
children: Entry?.details?.split("_")[0]
|
|
340
|
+
}), /*#__PURE__*/_jsx(Text, {})]
|
|
341
|
+
})]
|
|
342
|
+
}), BillNo && /*#__PURE__*/_jsxs(View, {
|
|
343
|
+
style: [Styles._rowMain, {
|
|
344
|
+
flexDirection: "column",
|
|
345
|
+
justifyContent: "space-around"
|
|
346
|
+
}],
|
|
347
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
348
|
+
style: {
|
|
349
|
+
width: "100%",
|
|
350
|
+
justifyContent: "space-between",
|
|
351
|
+
flexDirection: "row"
|
|
352
|
+
},
|
|
353
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
354
|
+
style: Styles._heading2,
|
|
355
|
+
children: "Bill No"
|
|
356
|
+
}), /*#__PURE__*/_jsx(Text, {})]
|
|
357
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
358
|
+
style: {
|
|
359
|
+
width: "100%",
|
|
360
|
+
justifyContent: "space-between",
|
|
361
|
+
flexDirection: "row"
|
|
362
|
+
},
|
|
363
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
364
|
+
style: Styles._heading,
|
|
365
|
+
children: BillNo
|
|
366
|
+
}), /*#__PURE__*/_jsx(Text, {})]
|
|
367
|
+
})]
|
|
368
|
+
}), Entry?.bill && /*#__PURE__*/_jsx(View, {
|
|
369
|
+
style: [Styles._rowMain, {
|
|
370
|
+
flexDirection: "column",
|
|
371
|
+
justifyContent: "space-around"
|
|
372
|
+
}],
|
|
373
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
374
|
+
style: {
|
|
375
|
+
backgroundColor: COLORS.lightGrey,
|
|
376
|
+
alignSelf: "flex-start",
|
|
377
|
+
paddingHorizontal: 10,
|
|
378
|
+
paddingVertical: 4,
|
|
379
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS
|
|
380
|
+
},
|
|
381
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
382
|
+
style: [Styles._date, {
|
|
383
|
+
color: COLORS.blackColor
|
|
384
|
+
}],
|
|
385
|
+
children: "Invoice"
|
|
386
|
+
})
|
|
387
|
+
})
|
|
388
|
+
}), Entry?.attachments && Entry?.attachments?.length != 0 && /*#__PURE__*/_jsxs(View, {
|
|
389
|
+
style: [Styles._rowMain, {
|
|
390
|
+
flexDirection: "column",
|
|
391
|
+
justifyContent: "space-around",
|
|
392
|
+
height: 130
|
|
393
|
+
}],
|
|
394
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
395
|
+
style: {
|
|
396
|
+
width: "100%",
|
|
397
|
+
justifyContent: "space-between",
|
|
398
|
+
flexDirection: "row"
|
|
399
|
+
},
|
|
400
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
401
|
+
style: Styles._heading2,
|
|
402
|
+
children: "Attachments"
|
|
403
|
+
}), /*#__PURE__*/_jsx(Text, {})]
|
|
404
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
405
|
+
style: {
|
|
406
|
+
flexDirection: "row",
|
|
407
|
+
gap: 10
|
|
408
|
+
},
|
|
409
|
+
children: Entry?.attachments?.map((i, index) => /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
410
|
+
activeOpacity: 0.8,
|
|
411
|
+
style: {
|
|
412
|
+
width: 80,
|
|
413
|
+
height: 80,
|
|
414
|
+
justifyContent: "center",
|
|
415
|
+
alignItems: "center"
|
|
416
|
+
},
|
|
417
|
+
onPress: () => {
|
|
418
|
+
viewDocument({
|
|
419
|
+
uri: i?.local_path
|
|
420
|
+
});
|
|
421
|
+
},
|
|
422
|
+
children: isPdfFile(i?.local_path) ? /*#__PURE__*/_jsx(Ionicons, {
|
|
423
|
+
name: "document-text-outline",
|
|
424
|
+
size: 70,
|
|
425
|
+
color: COLORS.primaryColor,
|
|
426
|
+
style: {
|
|
427
|
+
margin: 0
|
|
428
|
+
}
|
|
429
|
+
}) : /*#__PURE__*/_jsx(Image, {
|
|
430
|
+
source: {
|
|
431
|
+
uri: i?.local_path
|
|
432
|
+
},
|
|
433
|
+
style: {
|
|
434
|
+
width: 70,
|
|
435
|
+
height: 70,
|
|
436
|
+
margin: 0,
|
|
437
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS
|
|
438
|
+
},
|
|
439
|
+
resizeMode: "cover"
|
|
440
|
+
})
|
|
441
|
+
}, index))
|
|
442
|
+
})]
|
|
443
|
+
}), Entry?.local_path && /*#__PURE__*/_jsxs(View, {
|
|
444
|
+
style: [Styles._rowMain, {
|
|
445
|
+
justifyContent: "center",
|
|
446
|
+
gap: 20,
|
|
447
|
+
alignItems: "center",
|
|
448
|
+
height: 60
|
|
449
|
+
}],
|
|
450
|
+
children: [IsPlaying ? /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
451
|
+
activeOpacity: 0.8,
|
|
452
|
+
onPress: () => {
|
|
453
|
+
onStopPlay();
|
|
454
|
+
},
|
|
455
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
456
|
+
name: "pause",
|
|
457
|
+
color: COLORS.primaryColor,
|
|
458
|
+
size: 30
|
|
459
|
+
})
|
|
460
|
+
}) : /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
461
|
+
activeOpacity: 0.8,
|
|
462
|
+
onPress: () => {
|
|
463
|
+
onStartPlay(Entry?.local_path);
|
|
464
|
+
},
|
|
465
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
466
|
+
name: "play",
|
|
467
|
+
color: COLORS.primaryColor,
|
|
468
|
+
size: 30
|
|
469
|
+
})
|
|
470
|
+
}), /*#__PURE__*/_jsx(LottieView, {
|
|
471
|
+
source: require('../assets/animations/voice_visualization.json'),
|
|
472
|
+
autoPlay: false,
|
|
473
|
+
loop: true,
|
|
474
|
+
style: {
|
|
475
|
+
width: "75%",
|
|
476
|
+
height: 55
|
|
477
|
+
},
|
|
478
|
+
ref: animationRef
|
|
479
|
+
})]
|
|
480
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
481
|
+
style: [Styles._rowMain, {
|
|
482
|
+
borderBottomWidth: 0,
|
|
483
|
+
justifyContent: "center",
|
|
484
|
+
gap: 5,
|
|
485
|
+
alignItems: "center",
|
|
486
|
+
height: 60
|
|
487
|
+
}],
|
|
488
|
+
activeOpacity: 0.8,
|
|
489
|
+
onPress: () => {
|
|
490
|
+
if (!Entry?.bill) {
|
|
491
|
+
navigation.navigate('OutSell', {
|
|
492
|
+
type: 'IN',
|
|
493
|
+
itemId,
|
|
494
|
+
itemDetailId
|
|
495
|
+
});
|
|
496
|
+
} else {
|
|
497
|
+
Alert.alert('Edit from Bill Book Only!', 'You can edit this entry from bill book only');
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
501
|
+
name: "pencil-outline",
|
|
502
|
+
color: COLORS.primaryColor,
|
|
503
|
+
size: 25
|
|
504
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
505
|
+
style: {
|
|
506
|
+
color: COLORS.primaryColor,
|
|
507
|
+
fontFamily: FONT_MEDIUM,
|
|
508
|
+
fontSize: 16
|
|
509
|
+
},
|
|
510
|
+
children: "Edit Entry"
|
|
511
|
+
})]
|
|
512
|
+
})]
|
|
513
|
+
}), /*#__PURE__*/_jsx(BottomView, {
|
|
514
|
+
style: Styles._btnsMain,
|
|
515
|
+
children: /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
516
|
+
activeOpacity: 0.8,
|
|
517
|
+
style: Styles._bottomBtn,
|
|
518
|
+
onPress: () => {
|
|
519
|
+
if (!Entry?.bill) {
|
|
520
|
+
onDeletePress();
|
|
521
|
+
} else {
|
|
522
|
+
Alert.alert('Delete from Bill Book Only!', 'You can delete this entry from bill book only');
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
526
|
+
name: "trash-outline",
|
|
527
|
+
color: COLORS.redColor,
|
|
528
|
+
size: 20
|
|
529
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
530
|
+
style: {
|
|
531
|
+
color: COLORS.redColor,
|
|
532
|
+
fontFamily: FONT_MEDIUM,
|
|
533
|
+
fontSize: TEXT_SIZES.BUTTON_TEXT
|
|
534
|
+
},
|
|
535
|
+
children: "Delete Entry"
|
|
536
|
+
})]
|
|
537
|
+
})
|
|
538
|
+
})]
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
const Styles = StyleSheet.create({
|
|
542
|
+
_mainContainer: {
|
|
543
|
+
flex: 1,
|
|
544
|
+
backgroundColor: COLORS.backgroundColor
|
|
545
|
+
},
|
|
546
|
+
_headerMain: {
|
|
547
|
+
width: WP(100),
|
|
548
|
+
height: 60,
|
|
549
|
+
flexDirection: 'row',
|
|
550
|
+
alignItems: 'center',
|
|
551
|
+
// justifyContent: "space-between",
|
|
552
|
+
paddingHorizontal: Platform.OS == 'android' && 10,
|
|
553
|
+
gap: 15
|
|
554
|
+
},
|
|
555
|
+
_headerTitle: {
|
|
556
|
+
color: COLORS.whiteColor,
|
|
557
|
+
fontFamily: FONT_NORMAL,
|
|
558
|
+
fontSize: 15
|
|
559
|
+
},
|
|
560
|
+
_searchMain: {
|
|
561
|
+
width: '95%',
|
|
562
|
+
// height: 500,
|
|
563
|
+
backgroundColor: COLORS.whiteColor,
|
|
564
|
+
alignSelf: 'center',
|
|
565
|
+
position: 'absolute',
|
|
566
|
+
top: 60,
|
|
567
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
568
|
+
shadowColor: '#000',
|
|
569
|
+
shadowOffset: {
|
|
570
|
+
width: 0,
|
|
571
|
+
height: 2
|
|
572
|
+
},
|
|
573
|
+
shadowOpacity: 0.2,
|
|
574
|
+
shadowRadius: 3.84,
|
|
575
|
+
elevation: 5,
|
|
576
|
+
// alignItems: 'center',
|
|
577
|
+
overflow: 'hidden',
|
|
578
|
+
paddingHorizontal: 15,
|
|
579
|
+
justifyContent: "space-between"
|
|
580
|
+
},
|
|
581
|
+
_rowMain: {
|
|
582
|
+
width: "100%",
|
|
583
|
+
height: 80,
|
|
584
|
+
// backgroundColor:"red",
|
|
585
|
+
flexDirection: "row",
|
|
586
|
+
paddingVertical: 10,
|
|
587
|
+
borderBottomColor: COLORS.lightGray,
|
|
588
|
+
borderBottomWidth: 1
|
|
589
|
+
},
|
|
590
|
+
_heading: {
|
|
591
|
+
fontFamily: FONT_MEDIUM,
|
|
592
|
+
fontSize: 13,
|
|
593
|
+
color: COLORS.blackColor
|
|
594
|
+
},
|
|
595
|
+
_date: {
|
|
596
|
+
fontFamily: FONT_NORMAL,
|
|
597
|
+
fontSize: 13,
|
|
598
|
+
color: COLORS.gray
|
|
599
|
+
},
|
|
600
|
+
_heading2: {
|
|
601
|
+
fontFamily: FONT_MEDIUM,
|
|
602
|
+
fontSize: 13,
|
|
603
|
+
color: COLORS.gray
|
|
604
|
+
},
|
|
605
|
+
_btnsMain: {
|
|
606
|
+
width: WP(100),
|
|
607
|
+
// height: 70,
|
|
608
|
+
backgroundColor: COLORS.whiteColor,
|
|
609
|
+
position: "absolute",
|
|
610
|
+
// bottom: bottomNavBarH,
|
|
611
|
+
bottom: 0,
|
|
612
|
+
flexDirection: "row",
|
|
613
|
+
justifyContent: "center",
|
|
614
|
+
alignItems: "center",
|
|
615
|
+
paddingHorizontal: 10,
|
|
616
|
+
paddingTop: 8
|
|
617
|
+
},
|
|
618
|
+
_bottomBtn: {
|
|
619
|
+
width: "95%",
|
|
620
|
+
height: 50,
|
|
621
|
+
backgroundColor: COLORS.whiteColor,
|
|
622
|
+
justifyContent: "center",
|
|
623
|
+
alignItems: "center",
|
|
624
|
+
flexDirection: "row",
|
|
625
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
626
|
+
borderColor: COLORS.redColor,
|
|
627
|
+
borderWidth: 1,
|
|
628
|
+
paddingHorizontal: 20,
|
|
629
|
+
gap: 10
|
|
630
|
+
},
|
|
631
|
+
_categoryChip: {
|
|
632
|
+
backgroundColor: COLORS.lightGrey,
|
|
633
|
+
paddingHorizontal: 12,
|
|
634
|
+
// height: 20,
|
|
635
|
+
// flexDirection: "row",
|
|
636
|
+
justifyContent: 'center',
|
|
637
|
+
alignItems: 'center',
|
|
638
|
+
borderRadius: 100,
|
|
639
|
+
borderColor: COLORS.lightGrey,
|
|
640
|
+
borderWidth: 1,
|
|
641
|
+
alignSelf: 'flex-start',
|
|
642
|
+
marginTop: 5
|
|
643
|
+
// width:"20%"
|
|
644
|
+
// gap: 5,
|
|
645
|
+
},
|
|
646
|
+
_chipText: {
|
|
647
|
+
color: COLORS.blackColor,
|
|
648
|
+
fontFamily: FONT_NORMAL,
|
|
649
|
+
fontSize: 11
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
//# sourceMappingURL=ItemEntryDetails.js.map
|