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,743 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { View, Text, Modal, TouchableOpacity, StyleSheet, Dimensions, TextInput, ScrollView, FlatList } from 'react-native';
|
|
5
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
6
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
7
|
+
import { COLORS, FONT_BOLD, FONT_MEDIUM, FONT_NORMAL, formatDateTime, fromJsDateToSql, TEXT_SIZES } from "../themes/config.js";
|
|
8
|
+
import BottomView from "./BottomView.js";
|
|
9
|
+
import SearchBar from "./SearchBar.js";
|
|
10
|
+
import FloatingInput from "./FloatingInput.js";
|
|
11
|
+
import CountryPhoneInput from "./CountryPhoneInput.js";
|
|
12
|
+
import { createBill, getInvoiceEntries } from "../database/bill.js";
|
|
13
|
+
import { addItemDetails, updateItemQty } from "../database/stock.js";
|
|
14
|
+
import { useSelector } from 'react-redux';
|
|
15
|
+
import { addCashEntry } from "../database/cash.js";
|
|
16
|
+
import User from "./User.js";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
const {
|
|
19
|
+
height
|
|
20
|
+
} = Dimensions.get('window');
|
|
21
|
+
const SalePaymentModal = ({
|
|
22
|
+
visible,
|
|
23
|
+
onClose,
|
|
24
|
+
totalAmount,
|
|
25
|
+
onConfirm,
|
|
26
|
+
Tax,
|
|
27
|
+
Discount,
|
|
28
|
+
SelectedItems,
|
|
29
|
+
setVisible,
|
|
30
|
+
selectedParty,
|
|
31
|
+
clients,
|
|
32
|
+
banks
|
|
33
|
+
}) => {
|
|
34
|
+
const selectBusiness = useSelector(state => state.client.selected_business);
|
|
35
|
+
const [selectedTab, setSelectedTab] = useState('Cash');
|
|
36
|
+
const [amount, setAmount] = useState('');
|
|
37
|
+
const [showNewBtn, setShowNewBtn] = useState(false);
|
|
38
|
+
const [SelectedParty, setSelectedParty] = useState(selectedParty);
|
|
39
|
+
const addValue = val => setAmount(prev => prev + val);
|
|
40
|
+
const clear = () => setAmount('');
|
|
41
|
+
const backspace = () => setAmount(prev => prev.slice(0, -1));
|
|
42
|
+
const quickAdd = val => setAmount(prev => (Number(prev || 0) + val).toString());
|
|
43
|
+
const onCreateBill = async val => {
|
|
44
|
+
try {
|
|
45
|
+
const finalValue = Number(val);
|
|
46
|
+
|
|
47
|
+
// ✅ Validate value (ignore CalculatorErr)
|
|
48
|
+
if (!finalValue ||
|
|
49
|
+
// empty, null, undefined, 0
|
|
50
|
+
!isFinite(finalValue) ||
|
|
51
|
+
// NaN, Infinity
|
|
52
|
+
finalValue <= 0 ||
|
|
53
|
+
// must be positive
|
|
54
|
+
finalValue > 999999999 // too large
|
|
55
|
+
) {
|
|
56
|
+
console.log('❌ Invalid or non-positive result, not saving');
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const invoices = (await getInvoiceEntries(null, null, selectBusiness?.id, null, true)) || [];
|
|
60
|
+
const test_id = invoices.length + 1;
|
|
61
|
+
|
|
62
|
+
// ✅ Prepare debit/credit
|
|
63
|
+
const bill = Number(test_id);
|
|
64
|
+
const bId = Number(selectBusiness?.id);
|
|
65
|
+
const entryDate = fromJsDateToSql(new Date());
|
|
66
|
+
const amount = Number(finalValue);
|
|
67
|
+
const subamount = Number(finalValue);
|
|
68
|
+
const note = null;
|
|
69
|
+
const local_path = null;
|
|
70
|
+
const tax = Number(Tax);
|
|
71
|
+
const discount = Number(Discount);
|
|
72
|
+
const payment_mode = selectedTab === 'Unpaid' ? 0 : selectedTab === 'Cash' ? 1 : 2;
|
|
73
|
+
const advance = Number(finalValue);
|
|
74
|
+
const customerId = SelectedParty ? Number(SelectedParty?.id) : null;
|
|
75
|
+
console.log({
|
|
76
|
+
bill,
|
|
77
|
+
bId,
|
|
78
|
+
entryDate,
|
|
79
|
+
amount,
|
|
80
|
+
subamount,
|
|
81
|
+
note,
|
|
82
|
+
local_path,
|
|
83
|
+
tax,
|
|
84
|
+
discount,
|
|
85
|
+
payment_mode,
|
|
86
|
+
advance
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// ✅ Save main transaction
|
|
90
|
+
const res = await createBill(bill, bId, entryDate, amount, subamount, note, local_path, tax, discount, payment_mode, advance, customerId, SelectedItems?.length > 0 ? JSON.stringify(SelectedItems) : '', true);
|
|
91
|
+
console.log(res, '✅ Bill Add Success');
|
|
92
|
+
const invoiceId = res.insertId;
|
|
93
|
+
const trxId = res.insertId;
|
|
94
|
+
|
|
95
|
+
// SelectedParty && (await addPartyTransaction(CalculatedAmount, trxId));
|
|
96
|
+
if (selectedTab == 'Cash') {
|
|
97
|
+
await addCash(finalValue, trxId);
|
|
98
|
+
}
|
|
99
|
+
if (SelectedItems) {
|
|
100
|
+
const parsedItems = SelectedItems;
|
|
101
|
+
await Promise.all(parsedItems.map(async i => {
|
|
102
|
+
await addStockEntry(i?.id,
|
|
103
|
+
// itemId
|
|
104
|
+
i?.qty,
|
|
105
|
+
// stockOUT
|
|
106
|
+
Number(i?.qty) * Number(i?.sellingPrice),
|
|
107
|
+
// amount
|
|
108
|
+
Number(i?.sellingPrice),
|
|
109
|
+
// rateSale
|
|
110
|
+
trxId,
|
|
111
|
+
// billNo
|
|
112
|
+
i?.addedQuantity,
|
|
113
|
+
// oldQuantity
|
|
114
|
+
i?.qty,
|
|
115
|
+
// addedQuantity
|
|
116
|
+
'',
|
|
117
|
+
// Details
|
|
118
|
+
'',
|
|
119
|
+
// AudioFile
|
|
120
|
+
fromJsDateToSql(new Date()),
|
|
121
|
+
// date
|
|
122
|
+
selectBusiness // selectBusiness
|
|
123
|
+
);
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
setVisible();
|
|
127
|
+
// ✅ Add party transaction (if any)
|
|
128
|
+
// if (SelectedParty) {
|
|
129
|
+
// await addPartyTransaction(finalValue, trxId);
|
|
130
|
+
// }
|
|
131
|
+
} catch (err) {
|
|
132
|
+
console.log('💥 Bill Creation Error:', err);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
const calculateQuantity = (existingQty, newQty, type) => {
|
|
136
|
+
const current = Number(existingQty) || 0;
|
|
137
|
+
const input = Number(newQty) || 0;
|
|
138
|
+
if (type === 'IN') {
|
|
139
|
+
return current + input; // Add stock
|
|
140
|
+
} else if (type === 'OUT') {
|
|
141
|
+
return current - input; // Reduce stock
|
|
142
|
+
} else {
|
|
143
|
+
return current; // No change if type is invalid
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
const addStockEntry = async (itemId, stockOUT, amount, rateSale, billNo, oldQuantity, addedQuantity, Details, AudioFile, date, selectBusiness) => {
|
|
147
|
+
try {
|
|
148
|
+
debugger;
|
|
149
|
+
const res = await addItemDetails(itemId, '0',
|
|
150
|
+
// stockIN (since this is stockOUT)
|
|
151
|
+
stockOUT, amount, rateSale, `${Details}_bill_${String(billNo)}`, AudioFile, fromJsDateToSql(date), selectBusiness?.id, String(billNo));
|
|
152
|
+
console.log('✅ Transaction Success:', res);
|
|
153
|
+
const updatedQty = calculateQuantity(oldQuantity, addedQuantity, 'OUT');
|
|
154
|
+
await updateItemQty(itemId, updatedQty);
|
|
155
|
+
const trxId = res?.insertId;
|
|
156
|
+
console.log('🆔 New Transaction ID:', trxId);
|
|
157
|
+
return trxId; // optional return if you want to use it later
|
|
158
|
+
} catch (error) {
|
|
159
|
+
console.error('❌ Error adding entry:', error);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
const addCash = async (finalValue, saleBillId) => {
|
|
163
|
+
try {
|
|
164
|
+
const res = await addCashEntry('0',
|
|
165
|
+
// red = debit
|
|
166
|
+
String(finalValue),
|
|
167
|
+
// green = credit
|
|
168
|
+
'', fromJsDateToSql(new Date()), '', '', fromJsDateToSql(new Date()), SelectedParty ? SelectedParty?.id : null, selectBusiness?.id, '', `fromSale_${saleBillId}`);
|
|
169
|
+
console.log(res, 'Transaction Success');
|
|
170
|
+
const trxId = res.insertId;
|
|
171
|
+
return trxId;
|
|
172
|
+
} catch (err) {
|
|
173
|
+
console.log(err, 'Transaction Error');
|
|
174
|
+
throw err;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
178
|
+
visible: visible,
|
|
179
|
+
animationType: "slide",
|
|
180
|
+
transparent: true,
|
|
181
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
182
|
+
style: styles.overlay,
|
|
183
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
184
|
+
style: styles.modalBoxParent,
|
|
185
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
186
|
+
style: styles.header,
|
|
187
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
188
|
+
onPress: onClose,
|
|
189
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
190
|
+
name: "close",
|
|
191
|
+
size: 26,
|
|
192
|
+
color: COLORS.primaryColor
|
|
193
|
+
})
|
|
194
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
195
|
+
style: {
|
|
196
|
+
flex: 1
|
|
197
|
+
},
|
|
198
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
199
|
+
style: styles.headerTitle,
|
|
200
|
+
children: "Payment"
|
|
201
|
+
})
|
|
202
|
+
})]
|
|
203
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
204
|
+
style: styles.modalBox,
|
|
205
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
206
|
+
style: styles.valueContainer,
|
|
207
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
208
|
+
style: styles.netValueRow,
|
|
209
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
210
|
+
style: styles.label,
|
|
211
|
+
children: "Net Value"
|
|
212
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
213
|
+
style: styles.currentBill,
|
|
214
|
+
children: totalAmount
|
|
215
|
+
})]
|
|
216
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
217
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
218
|
+
style: styles.tapText,
|
|
219
|
+
children: "Tap to equal Total"
|
|
220
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
221
|
+
style: styles.remaining,
|
|
222
|
+
children: ((totalAmount || 0) - Number(amount || 0)).toFixed(1)
|
|
223
|
+
})]
|
|
224
|
+
})]
|
|
225
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
226
|
+
style: styles.tabs,
|
|
227
|
+
children: ['Cash', 'Unpaid', 'Online'].map(tab => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
228
|
+
style: [styles.tabItem, selectedTab === tab && styles.activeTab],
|
|
229
|
+
onPress: () => setSelectedTab(tab),
|
|
230
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
231
|
+
name: tab === 'Cash' ? 'cash-outline' : tab === 'Online' ? 'business-outline' : 'person-outline',
|
|
232
|
+
size: 22,
|
|
233
|
+
color: selectedTab === tab ? COLORS.blackColor : COLORS.primaryColor
|
|
234
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
235
|
+
style: [styles.tabText, {
|
|
236
|
+
color: selectedTab === tab ? COLORS.blackColor : COLORS.primaryColor
|
|
237
|
+
}],
|
|
238
|
+
children: tab
|
|
239
|
+
})]
|
|
240
|
+
}, tab))
|
|
241
|
+
}), selectedTab === 'Cash' ? /*#__PURE__*/_jsxs(ScrollView, {
|
|
242
|
+
contentContainerStyle: {
|
|
243
|
+
paddingBottom: 250
|
|
244
|
+
},
|
|
245
|
+
style: styles.kepardParent,
|
|
246
|
+
showsVerticalScrollIndicator: false,
|
|
247
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
248
|
+
style: styles.amountInput,
|
|
249
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
250
|
+
style: styles.currency,
|
|
251
|
+
children: "Rs"
|
|
252
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
253
|
+
style: styles.amountText,
|
|
254
|
+
children: amount || 0
|
|
255
|
+
})]
|
|
256
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
257
|
+
style: styles.keypad,
|
|
258
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
259
|
+
style: styles.keypadRow,
|
|
260
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
261
|
+
style: styles.keyGray,
|
|
262
|
+
onPress: clear,
|
|
263
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
264
|
+
style: styles.keyText,
|
|
265
|
+
children: "Clear"
|
|
266
|
+
})
|
|
267
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
268
|
+
style: styles.keyGray,
|
|
269
|
+
onPress: backspace,
|
|
270
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
271
|
+
name: "backspace-outline",
|
|
272
|
+
size: 28,
|
|
273
|
+
color: "#000"
|
|
274
|
+
})
|
|
275
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
276
|
+
style: styles.keyGray,
|
|
277
|
+
onPress: () => quickAdd(1000),
|
|
278
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
279
|
+
style: styles.keyText,
|
|
280
|
+
children: "1,000"
|
|
281
|
+
})
|
|
282
|
+
})]
|
|
283
|
+
}), [['7', '8', '9', 500], ['4', '5', '6', 100], ['1', '2', '3', 50], ['0', '.', 20]].map((row, rowIndex) => /*#__PURE__*/_jsx(View, {
|
|
284
|
+
style: styles.keypadRow,
|
|
285
|
+
children: row.map(val => /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
286
|
+
style: typeof val === 'number' ? styles.keyGray : styles.key,
|
|
287
|
+
onPress: () => typeof val === 'number' ? quickAdd(val) : addValue(val),
|
|
288
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
289
|
+
style: styles.keyText,
|
|
290
|
+
children: val
|
|
291
|
+
})
|
|
292
|
+
}, val))
|
|
293
|
+
}, rowIndex))]
|
|
294
|
+
})]
|
|
295
|
+
}) : selectedTab === 'Unpaid' ?
|
|
296
|
+
/*#__PURE__*/
|
|
297
|
+
// CUSTOMER SECTION
|
|
298
|
+
_jsxs(View, {
|
|
299
|
+
style: styles.unpaidContainer,
|
|
300
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
301
|
+
style: {
|
|
302
|
+
width: '100%',
|
|
303
|
+
height: 50,
|
|
304
|
+
backgroundColor: COLORS.whiteColor,
|
|
305
|
+
flexDirection: 'row',
|
|
306
|
+
alignItems: "center",
|
|
307
|
+
gap: 10,
|
|
308
|
+
paddingHorizontal: 10
|
|
309
|
+
},
|
|
310
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
311
|
+
name: "person-circle-outline",
|
|
312
|
+
color: COLORS.primaryColor,
|
|
313
|
+
size: 30
|
|
314
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
315
|
+
style: {
|
|
316
|
+
color: COLORS.blackColor,
|
|
317
|
+
fontFamily: FONT_NORMAL,
|
|
318
|
+
fontSize: 13
|
|
319
|
+
},
|
|
320
|
+
children: "Select customer you gave the Credit"
|
|
321
|
+
})]
|
|
322
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
323
|
+
data: clients,
|
|
324
|
+
keyExtractor: item => item.id.toString(),
|
|
325
|
+
renderItem: ({
|
|
326
|
+
item,
|
|
327
|
+
index
|
|
328
|
+
}) => {
|
|
329
|
+
let amount = item?.total_subamount - item?.total_amount;
|
|
330
|
+
let type = 'none';
|
|
331
|
+
if (amount > 0) {
|
|
332
|
+
type = 'receivable';
|
|
333
|
+
} else if (amount < 0) {
|
|
334
|
+
type = 'payable';
|
|
335
|
+
}
|
|
336
|
+
amount = Math.abs(amount);
|
|
337
|
+
return /*#__PURE__*/_jsx(User, {
|
|
338
|
+
name: item?.name,
|
|
339
|
+
addedAt: formatDateTime(item?.latest_transaction_date || item?.created_at),
|
|
340
|
+
amount: amount,
|
|
341
|
+
type: type,
|
|
342
|
+
avatarColor: item?.type == 0 ? 'red' : 'green',
|
|
343
|
+
clientType: item?.type,
|
|
344
|
+
icon: item?.local_path,
|
|
345
|
+
mainContainer: {
|
|
346
|
+
width: '100%',
|
|
347
|
+
paddingHorizontal: 10
|
|
348
|
+
}
|
|
349
|
+
// onPress={() => {
|
|
350
|
+
// setShowNewBtn(false);
|
|
351
|
+
// setChangeModal(false);
|
|
352
|
+
// setSelectedParty(item);
|
|
353
|
+
// }}
|
|
354
|
+
}, index);
|
|
355
|
+
}
|
|
356
|
+
})]
|
|
357
|
+
}) :
|
|
358
|
+
/*#__PURE__*/
|
|
359
|
+
// ONLINE PAYMENT SECTION
|
|
360
|
+
_jsxs(View, {
|
|
361
|
+
style: styles.unpaidContainer,
|
|
362
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
363
|
+
style: styles._modalSearchMain,
|
|
364
|
+
children: /*#__PURE__*/_jsx(FloatingInput, {
|
|
365
|
+
label: "Select a bank",
|
|
366
|
+
iconName: "business-outline",
|
|
367
|
+
iconPosition: "left",
|
|
368
|
+
allowedChars: /[^A-Za-z0-9\s]/g,
|
|
369
|
+
maxLength: 15,
|
|
370
|
+
containerStyle: {
|
|
371
|
+
width: '100%'
|
|
372
|
+
}
|
|
373
|
+
})
|
|
374
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
375
|
+
data: banks,
|
|
376
|
+
keyExtractor: item => item.id.toString(),
|
|
377
|
+
renderItem: ({
|
|
378
|
+
item,
|
|
379
|
+
index
|
|
380
|
+
}) => {
|
|
381
|
+
let amount = item?.total_subamount - item?.total_amount;
|
|
382
|
+
let type = 'none';
|
|
383
|
+
if (amount > 0) {
|
|
384
|
+
type = 'receivable';
|
|
385
|
+
} else if (amount < 0) {
|
|
386
|
+
type = 'payable';
|
|
387
|
+
}
|
|
388
|
+
amount = Math.abs(amount);
|
|
389
|
+
return /*#__PURE__*/_jsx(User, {
|
|
390
|
+
name: item?.name,
|
|
391
|
+
addedAt: formatDateTime(item?.latest_transaction_date || item?.created_at),
|
|
392
|
+
amount: amount,
|
|
393
|
+
type: type,
|
|
394
|
+
avatarColor: item?.type == 0 ? 'red' : 'green',
|
|
395
|
+
clientType: item?.type,
|
|
396
|
+
icon: item?.local_path,
|
|
397
|
+
mainContainer: {
|
|
398
|
+
width: '100%',
|
|
399
|
+
paddingHorizontal: 10
|
|
400
|
+
}
|
|
401
|
+
// onPress={() => {
|
|
402
|
+
// setShowNewBtn(false);
|
|
403
|
+
// setChangeModal(false);
|
|
404
|
+
// setSelectedParty(item);
|
|
405
|
+
// }}
|
|
406
|
+
}, index);
|
|
407
|
+
}
|
|
408
|
+
})]
|
|
409
|
+
}), /*#__PURE__*/_jsx(BottomView, {
|
|
410
|
+
style: [styles.bottomBar],
|
|
411
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
412
|
+
onPress: () => {
|
|
413
|
+
if (Number(totalAmount) >= Number(amount)) {
|
|
414
|
+
if (!amount) {
|
|
415
|
+
setAmount(totalAmount);
|
|
416
|
+
setTimeout(() => {
|
|
417
|
+
onCreateBill(amount ? amount : totalAmount);
|
|
418
|
+
}, 200);
|
|
419
|
+
} else {
|
|
420
|
+
onCreateBill(amount ? amount : totalAmount);
|
|
421
|
+
}
|
|
422
|
+
} else {
|
|
423
|
+
console.log('Nope');
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
style: styles.confirmBtn,
|
|
427
|
+
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
428
|
+
colors: [COLORS.primaryColor, COLORS.primaryColor],
|
|
429
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
430
|
+
style: styles.confirmText,
|
|
431
|
+
children: "PAYMENT CONFIRM"
|
|
432
|
+
})
|
|
433
|
+
})
|
|
434
|
+
})
|
|
435
|
+
})]
|
|
436
|
+
})]
|
|
437
|
+
})
|
|
438
|
+
})
|
|
439
|
+
});
|
|
440
|
+
};
|
|
441
|
+
export default SalePaymentModal;
|
|
442
|
+
const styles = StyleSheet.create({
|
|
443
|
+
overlay: {
|
|
444
|
+
flex: 1,
|
|
445
|
+
backgroundColor: '#00000088',
|
|
446
|
+
justifyContent: 'flex-end'
|
|
447
|
+
},
|
|
448
|
+
modalBoxParent: {
|
|
449
|
+
backgroundColor: COLORS.backgroundColor,
|
|
450
|
+
// borderTopLeftRadius: 16,
|
|
451
|
+
// borderTopRightRadius: 16,
|
|
452
|
+
height: height * 0.82
|
|
453
|
+
},
|
|
454
|
+
modalBox: {
|
|
455
|
+
// backgroundColor: COLORS.backgroundColor,
|
|
456
|
+
// borderTopLeftRadius: 16,
|
|
457
|
+
// borderTopRightRadius: 16,
|
|
458
|
+
height: height * 0.8,
|
|
459
|
+
padding: 10
|
|
460
|
+
},
|
|
461
|
+
header: {
|
|
462
|
+
flexDirection: 'row',
|
|
463
|
+
alignItems: 'center',
|
|
464
|
+
marginBottom: 8,
|
|
465
|
+
backgroundColor: COLORS.borderColor,
|
|
466
|
+
padding: 10
|
|
467
|
+
},
|
|
468
|
+
headerTitle: {
|
|
469
|
+
fontSize: 16,
|
|
470
|
+
color: COLORS.blackColor,
|
|
471
|
+
// marginLeft: 10,
|
|
472
|
+
fontFamily: FONT_NORMAL,
|
|
473
|
+
alignSelf: 'center'
|
|
474
|
+
},
|
|
475
|
+
valueContainer: {
|
|
476
|
+
flexDirection: 'column',
|
|
477
|
+
// justifyContent: 'space-between',
|
|
478
|
+
// alignItems: 'center',
|
|
479
|
+
marginVertical: 10
|
|
480
|
+
},
|
|
481
|
+
label: {
|
|
482
|
+
color: '#333',
|
|
483
|
+
fontSize: 16,
|
|
484
|
+
fontFamily: FONT_NORMAL
|
|
485
|
+
},
|
|
486
|
+
tapText: {
|
|
487
|
+
color: '#bbb',
|
|
488
|
+
fontSize: 13,
|
|
489
|
+
fontFamily: FONT_NORMAL
|
|
490
|
+
},
|
|
491
|
+
total: {
|
|
492
|
+
fontSize: 18,
|
|
493
|
+
color: '#333',
|
|
494
|
+
textAlign: 'right'
|
|
495
|
+
},
|
|
496
|
+
currentBill: {
|
|
497
|
+
fontSize: 22,
|
|
498
|
+
color: COLORS.redColor,
|
|
499
|
+
textAlign: 'right',
|
|
500
|
+
fontFamily: FONT_NORMAL
|
|
501
|
+
},
|
|
502
|
+
remaining: {
|
|
503
|
+
fontSize: 26,
|
|
504
|
+
color: COLORS.redColor,
|
|
505
|
+
textAlign: 'right',
|
|
506
|
+
fontFamily: FONT_NORMAL
|
|
507
|
+
},
|
|
508
|
+
tabs: {
|
|
509
|
+
flexDirection: 'row',
|
|
510
|
+
marginVertical: 10,
|
|
511
|
+
backgroundColor: COLORS.whiteColor,
|
|
512
|
+
borderWidth: 1,
|
|
513
|
+
borderColor: COLORS.borderColor,
|
|
514
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS
|
|
515
|
+
},
|
|
516
|
+
tabItem: {
|
|
517
|
+
flex: 1,
|
|
518
|
+
alignItems: 'center',
|
|
519
|
+
paddingVertical: 6,
|
|
520
|
+
backgroundColor: COLORS.whiteColor
|
|
521
|
+
},
|
|
522
|
+
activeTab: {
|
|
523
|
+
backgroundColor: COLORS.backgroundColor,
|
|
524
|
+
borderWidth: 1,
|
|
525
|
+
borderColor: COLORS.borderColor
|
|
526
|
+
},
|
|
527
|
+
tabText: {
|
|
528
|
+
fontSize: 12,
|
|
529
|
+
marginTop: 4
|
|
530
|
+
},
|
|
531
|
+
amountInput: {
|
|
532
|
+
flexDirection: 'row',
|
|
533
|
+
alignItems: 'center',
|
|
534
|
+
justifyContent: 'space-between',
|
|
535
|
+
borderWidth: 1,
|
|
536
|
+
borderColor: '#ddd',
|
|
537
|
+
padding: 10,
|
|
538
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
539
|
+
marginVertical: 8
|
|
540
|
+
},
|
|
541
|
+
currency: {
|
|
542
|
+
fontSize: 16,
|
|
543
|
+
color: COLORS.blackColor,
|
|
544
|
+
marginRight: 5,
|
|
545
|
+
fontFamily: FONT_NORMAL
|
|
546
|
+
},
|
|
547
|
+
amountText: {
|
|
548
|
+
fontSize: 14,
|
|
549
|
+
color: COLORS.blackColor,
|
|
550
|
+
fontFamily: FONT_NORMAL
|
|
551
|
+
},
|
|
552
|
+
keypad: {
|
|
553
|
+
marginTop: 8
|
|
554
|
+
},
|
|
555
|
+
keypadRow: {
|
|
556
|
+
flexDirection: 'row',
|
|
557
|
+
justifyContent: 'space-between'
|
|
558
|
+
},
|
|
559
|
+
key: {
|
|
560
|
+
flex: 1,
|
|
561
|
+
alignItems: 'center',
|
|
562
|
+
justifyContent: 'center',
|
|
563
|
+
// paddingVertical: 12,
|
|
564
|
+
borderWidth: 1,
|
|
565
|
+
borderColor: COLORS.borderColor,
|
|
566
|
+
backgroundColor: '#fff'
|
|
567
|
+
},
|
|
568
|
+
keyGray: {
|
|
569
|
+
flex: 1,
|
|
570
|
+
alignItems: 'center',
|
|
571
|
+
paddingVertical: 15,
|
|
572
|
+
borderWidth: 1,
|
|
573
|
+
borderColor: '#ddd',
|
|
574
|
+
backgroundColor: COLORS.backgroundColor // ✅ gray buttons
|
|
575
|
+
},
|
|
576
|
+
keyText: {
|
|
577
|
+
fontSize: 15,
|
|
578
|
+
color: COLORS.blackColor,
|
|
579
|
+
fontFamily: FONT_NORMAL
|
|
580
|
+
},
|
|
581
|
+
unpaidContainer: {
|
|
582
|
+
marginTop: 2,
|
|
583
|
+
alignItems: 'center'
|
|
584
|
+
// gap: 10,
|
|
585
|
+
},
|
|
586
|
+
customerLabel: {
|
|
587
|
+
fontSize: 15,
|
|
588
|
+
color: '#444',
|
|
589
|
+
marginBottom: 10
|
|
590
|
+
},
|
|
591
|
+
customerSelect: {
|
|
592
|
+
flexDirection: 'row',
|
|
593
|
+
alignItems: 'center',
|
|
594
|
+
backgroundColor: '#f8f8f8',
|
|
595
|
+
paddingVertical: 12,
|
|
596
|
+
paddingHorizontal: 16,
|
|
597
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
598
|
+
borderWidth: 1,
|
|
599
|
+
borderColor: '#ddd',
|
|
600
|
+
width: '95%',
|
|
601
|
+
justifyContent: 'center'
|
|
602
|
+
},
|
|
603
|
+
customerText: {
|
|
604
|
+
color: '#555',
|
|
605
|
+
fontSize: 14,
|
|
606
|
+
marginLeft: 8
|
|
607
|
+
},
|
|
608
|
+
confirmBtn: {
|
|
609
|
+
borderWidth: 1,
|
|
610
|
+
// marginBottom: 10,
|
|
611
|
+
flexDirection: 'row',
|
|
612
|
+
gap: 10,
|
|
613
|
+
borderColor: COLORS.primaryColor,
|
|
614
|
+
backgroundColor: COLORS.primaryColor,
|
|
615
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
616
|
+
width: '100%',
|
|
617
|
+
height: 50,
|
|
618
|
+
alignItems: 'center',
|
|
619
|
+
justifyContent: 'center'
|
|
620
|
+
},
|
|
621
|
+
confirmText: {
|
|
622
|
+
color: COLORS.whiteColor,
|
|
623
|
+
fontSize: 13,
|
|
624
|
+
fontFamily: FONT_MEDIUM
|
|
625
|
+
},
|
|
626
|
+
bottomBar: {
|
|
627
|
+
position: 'absolute',
|
|
628
|
+
left: 0,
|
|
629
|
+
bottom: 30,
|
|
630
|
+
right: 0,
|
|
631
|
+
backgroundColor: '#fff',
|
|
632
|
+
borderTopLeftRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
633
|
+
borderTopRightRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
634
|
+
alignItems: 'center',
|
|
635
|
+
justifyContent: 'center',
|
|
636
|
+
paddingVertical: 10,
|
|
637
|
+
elevation: 10
|
|
638
|
+
},
|
|
639
|
+
_inputMain: {
|
|
640
|
+
width: '100%'
|
|
641
|
+
},
|
|
642
|
+
/// Party Modal Styling
|
|
643
|
+
|
|
644
|
+
_modalSearchMain: {
|
|
645
|
+
width: '100%',
|
|
646
|
+
justifyContent: 'center',
|
|
647
|
+
alignItems: 'center'
|
|
648
|
+
// marginVertical: 7.5,
|
|
649
|
+
},
|
|
650
|
+
_modalSearch: {
|
|
651
|
+
width: '100%',
|
|
652
|
+
height: 45,
|
|
653
|
+
borderWidth: 1,
|
|
654
|
+
borderColor: COLORS.gray,
|
|
655
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
656
|
+
paddingLeft: 10,
|
|
657
|
+
fontFamily: FONT_NORMAL,
|
|
658
|
+
fontSize: 13,
|
|
659
|
+
color: COLORS.blackColor
|
|
660
|
+
},
|
|
661
|
+
_avatarText: {
|
|
662
|
+
fontFamily: FONT_NORMAL,
|
|
663
|
+
fontSize: 16,
|
|
664
|
+
color: COLORS.primaryColor
|
|
665
|
+
},
|
|
666
|
+
_addContactBtn: {
|
|
667
|
+
width: '100%',
|
|
668
|
+
height: 60,
|
|
669
|
+
backgroundColor: COLORS.whiteColor,
|
|
670
|
+
// borderWidth: 1,
|
|
671
|
+
// borderColor: COLORS.borderColor,
|
|
672
|
+
flexDirection: 'row',
|
|
673
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
674
|
+
justifyContent: 'space-evenly',
|
|
675
|
+
elevation: 1,
|
|
676
|
+
alignItems: 'center'
|
|
677
|
+
},
|
|
678
|
+
_contactsCardMain: {
|
|
679
|
+
width: '100%',
|
|
680
|
+
height: 60,
|
|
681
|
+
// backgroundColor: "red",
|
|
682
|
+
marginVertical: 10,
|
|
683
|
+
flexDirection: 'row',
|
|
684
|
+
justifyContent: 'space-between',
|
|
685
|
+
alignItems: 'center',
|
|
686
|
+
alignSelf: 'center'
|
|
687
|
+
},
|
|
688
|
+
_phoneInputMain: {
|
|
689
|
+
width: '92%',
|
|
690
|
+
// height:60,
|
|
691
|
+
// backgroundColor:"red",
|
|
692
|
+
alignItems: 'center',
|
|
693
|
+
gap: 15
|
|
694
|
+
},
|
|
695
|
+
_avatarMain: {
|
|
696
|
+
backgroundColor: COLORS.lightRedColor,
|
|
697
|
+
padding: 10,
|
|
698
|
+
borderRadius: 50
|
|
699
|
+
},
|
|
700
|
+
kepardParent: {
|
|
701
|
+
// width: '100%',
|
|
702
|
+
},
|
|
703
|
+
bottomRs: {
|
|
704
|
+
color: COLORS.primaryColor,
|
|
705
|
+
fontFamily: FONT_MEDIUM,
|
|
706
|
+
fontSize: 13
|
|
707
|
+
},
|
|
708
|
+
actionButton: {
|
|
709
|
+
// flex: 0.48,
|
|
710
|
+
// paddingVertical: 12,
|
|
711
|
+
width: '100%',
|
|
712
|
+
borderRadius: 8,
|
|
713
|
+
alignItems: 'center'
|
|
714
|
+
},
|
|
715
|
+
actionButtonText: {
|
|
716
|
+
color: COLORS.white,
|
|
717
|
+
fontWeight: '600',
|
|
718
|
+
fontSize: 15
|
|
719
|
+
},
|
|
720
|
+
totalButton: {
|
|
721
|
+
borderWidth: 1,
|
|
722
|
+
marginBottom: 10,
|
|
723
|
+
borderColor: COLORS.primaryColor,
|
|
724
|
+
backgroundColor: COLORS.primaryColor,
|
|
725
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
726
|
+
width: '100%',
|
|
727
|
+
height: 50,
|
|
728
|
+
alignItems: 'center',
|
|
729
|
+
justifyContent: 'center'
|
|
730
|
+
},
|
|
731
|
+
totalText: {
|
|
732
|
+
color: COLORS.whiteColor,
|
|
733
|
+
fontFamily: FONT_NORMAL,
|
|
734
|
+
fontSize: 13
|
|
735
|
+
},
|
|
736
|
+
netValueRow: {
|
|
737
|
+
flexDirection: 'row',
|
|
738
|
+
justifyContent: 'space-between',
|
|
739
|
+
// marginBottom: 5,
|
|
740
|
+
alignItems: 'center'
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
//# sourceMappingURL=SalePaymentModal.js.map
|