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,147 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, ImageBackground, StyleSheet } from 'react-native';
|
|
3
|
+
import { COLORS, FONT_BOLD, FONT_NORMAL } from '../../themes/config';
|
|
4
|
+
|
|
5
|
+
export default function Card4({
|
|
6
|
+
businessName,
|
|
7
|
+
businessCategory,
|
|
8
|
+
businessType,
|
|
9
|
+
ownerName,
|
|
10
|
+
phoneNumber,
|
|
11
|
+
email,
|
|
12
|
+
address,
|
|
13
|
+
createAddress,
|
|
14
|
+
city,
|
|
15
|
+
businessTypeDetail,
|
|
16
|
+
businessCategoryDetail,
|
|
17
|
+
}) {
|
|
18
|
+
const typeData = [
|
|
19
|
+
{ id: '1', title: 'Retailer/ Shop', icon: 'storefront-outline' },
|
|
20
|
+
{ id: '2', title: 'Wholesaler', icon: 'restaurant-outline' },
|
|
21
|
+
{ id: '3', title: 'Distributor', icon: 'business-outline' },
|
|
22
|
+
{ id: '4', title: 'Manufacturer', icon: 'briefcase-outline' },
|
|
23
|
+
{ id: '5', title: 'Services', icon: 'briefcase-outline' },
|
|
24
|
+
{ id: '6', title: 'Other', icon: 'briefcase-outline' },
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
const categoryData = [
|
|
28
|
+
{ id: '1', title: 'Kirana/Grocery', icon: 'cart-outline' },
|
|
29
|
+
{ id: '2', title: 'Textile/Fashion', icon: 'shirt-outline' },
|
|
30
|
+
{ id: '3', title: 'Medical', icon: 'medkit-outline' },
|
|
31
|
+
{ id: '4', title: 'Electronics', icon: 'tv-outline' },
|
|
32
|
+
{ id: '5', title: 'Mobile', icon: 'phone-portrait-outline' },
|
|
33
|
+
{ id: '6', title: 'Automobile', icon: 'car-outline' },
|
|
34
|
+
{ id: '7', title: 'Sports', icon: 'bicycle-outline' },
|
|
35
|
+
{ id: '8', title: 'Kids/Toys', icon: 'happy-outline' },
|
|
36
|
+
{ id: '9', title: 'Hardware/Tools', icon: 'construct-outline' },
|
|
37
|
+
{ id: '10', title: 'Others', icon: 'apps-outline' },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const typeTitle =
|
|
41
|
+
typeData.find((t) => t.id === businessType)?.title || 'type';
|
|
42
|
+
const categoryTitle =
|
|
43
|
+
categoryData.find((c) => c.id === businessCategory)?.title || 'category';
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<ImageBackground
|
|
47
|
+
source={require('../../assets/businessCards/card_wall_04.jpeg')}
|
|
48
|
+
resizeMode="contain"
|
|
49
|
+
style={styles.bg}
|
|
50
|
+
>
|
|
51
|
+
<View style={styles.overlay}>
|
|
52
|
+
{/* Top Section */}
|
|
53
|
+
<View style={styles.topSection}>
|
|
54
|
+
<Text style={styles.businessName}>
|
|
55
|
+
{businessName || 'business name'}
|
|
56
|
+
</Text>
|
|
57
|
+
{businessType && businessCategory && (
|
|
58
|
+
<Text style={styles.category}>
|
|
59
|
+
{typeTitle} / {categoryTitle}
|
|
60
|
+
</Text>
|
|
61
|
+
)}
|
|
62
|
+
|
|
63
|
+
{businessTypeDetail && businessCategoryDetail && (
|
|
64
|
+
<Text style={styles.category}>
|
|
65
|
+
{businessTypeDetail} / {businessCategoryDetail}
|
|
66
|
+
</Text>
|
|
67
|
+
)}
|
|
68
|
+
<Text style={styles.ownerName}>{ownerName || 'name'}</Text>
|
|
69
|
+
</View>
|
|
70
|
+
|
|
71
|
+
{/* Middle Section */}
|
|
72
|
+
{/* <View style={styles.middleSection}>
|
|
73
|
+
<Text style={styles.ownerName}>{ownerName || 'Owner Name'}</Text>
|
|
74
|
+
</View> */}
|
|
75
|
+
|
|
76
|
+
{/* Bottom Section */}
|
|
77
|
+
<View style={styles.bottomSection}>
|
|
78
|
+
<Text style={styles.contactText}>{phoneNumber || 'number'}</Text>
|
|
79
|
+
<Text style={styles.contactText}>{email || 'email'}</Text>
|
|
80
|
+
<Text style={styles.contactTextAddress}>
|
|
81
|
+
{createAddress?.formattedAddress || address || 'address'}
|
|
82
|
+
</Text>
|
|
83
|
+
<Text style={styles.contactText}>{city || 'city'}</Text>
|
|
84
|
+
</View>
|
|
85
|
+
</View>
|
|
86
|
+
</ImageBackground>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const styles = StyleSheet.create({
|
|
91
|
+
bg: {
|
|
92
|
+
width: '100%',
|
|
93
|
+
height: '100%',
|
|
94
|
+
justifyContent: 'center',
|
|
95
|
+
},
|
|
96
|
+
overlay: {
|
|
97
|
+
flex: 1,
|
|
98
|
+
padding: 20,
|
|
99
|
+
justifyContent: 'space-between',
|
|
100
|
+
alignItems: 'center',
|
|
101
|
+
},
|
|
102
|
+
topSection: {
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
marginTop: 12,
|
|
105
|
+
},
|
|
106
|
+
businessName: {
|
|
107
|
+
color: COLORS.whiteColor,
|
|
108
|
+
fontSize: 14,
|
|
109
|
+
fontFamily: FONT_NORMAL,
|
|
110
|
+
textAlign: 'center',
|
|
111
|
+
},
|
|
112
|
+
category: {
|
|
113
|
+
color: COLORS.whiteColor,
|
|
114
|
+
fontSize: 10,
|
|
115
|
+
fontFamily: FONT_NORMAL,
|
|
116
|
+
textAlign: 'center',
|
|
117
|
+
marginTop: 2,
|
|
118
|
+
},
|
|
119
|
+
middleSection: {
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
},
|
|
122
|
+
ownerName: {
|
|
123
|
+
color: COLORS.whiteColor,
|
|
124
|
+
fontSize: 16,
|
|
125
|
+
fontFamily: FONT_NORMAL,
|
|
126
|
+
textAlign: 'center',
|
|
127
|
+
marginTop: 10,
|
|
128
|
+
},
|
|
129
|
+
bottomSection: {
|
|
130
|
+
alignItems: 'center',
|
|
131
|
+
marginBottom: 10,
|
|
132
|
+
},
|
|
133
|
+
contactText: {
|
|
134
|
+
color: COLORS.whiteColor,
|
|
135
|
+
fontSize: 10,
|
|
136
|
+
marginVertical: 0,
|
|
137
|
+
fontFamily: FONT_NORMAL,
|
|
138
|
+
textAlign: 'center',
|
|
139
|
+
},
|
|
140
|
+
contactTextAddress: {
|
|
141
|
+
color: COLORS.whiteColor,
|
|
142
|
+
fontSize: 9,
|
|
143
|
+
marginVertical: 0,
|
|
144
|
+
fontFamily: FONT_NORMAL,
|
|
145
|
+
textAlign: 'center',
|
|
146
|
+
},
|
|
147
|
+
});
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, ImageBackground, StyleSheet } from 'react-native';
|
|
3
|
+
import { COLORS, FONT_BOLD, FONT_NORMAL } from '../../themes/config';
|
|
4
|
+
|
|
5
|
+
export default function Card5({
|
|
6
|
+
businessName,
|
|
7
|
+
businessCategory,
|
|
8
|
+
businessType,
|
|
9
|
+
ownerName,
|
|
10
|
+
phoneNumber,
|
|
11
|
+
email,
|
|
12
|
+
address,
|
|
13
|
+
createAddress,
|
|
14
|
+
city,
|
|
15
|
+
businessTypeDetail,
|
|
16
|
+
businessCategoryDetail,
|
|
17
|
+
}) {
|
|
18
|
+
const typeData = [
|
|
19
|
+
{ id: '1', title: 'Retailer/ Shop', icon: 'storefront-outline' },
|
|
20
|
+
{ id: '2', title: 'Wholesaler', icon: 'restaurant-outline' },
|
|
21
|
+
{ id: '3', title: 'Distributor', icon: 'business-outline' },
|
|
22
|
+
{ id: '4', title: 'Manufacturer', icon: 'briefcase-outline' },
|
|
23
|
+
{ id: '5', title: 'Services', icon: 'briefcase-outline' },
|
|
24
|
+
{ id: '6', title: 'Other', icon: 'briefcase-outline' },
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
const categoryData = [
|
|
28
|
+
{ id: '1', title: 'Kirana/Grocery', icon: 'cart-outline' },
|
|
29
|
+
{ id: '2', title: 'Textile/Fashion', icon: 'shirt-outline' },
|
|
30
|
+
{ id: '3', title: 'Medical', icon: 'medkit-outline' },
|
|
31
|
+
{ id: '4', title: 'Electronics', icon: 'tv-outline' },
|
|
32
|
+
{ id: '5', title: 'Mobile', icon: 'phone-portrait-outline' },
|
|
33
|
+
{ id: '6', title: 'Automobile', icon: 'car-outline' },
|
|
34
|
+
{ id: '7', title: 'Sports', icon: 'bicycle-outline' },
|
|
35
|
+
{ id: '8', title: 'Kids/Toys', icon: 'happy-outline' },
|
|
36
|
+
{ id: '9', title: 'Hardware/Tools', icon: 'construct-outline' },
|
|
37
|
+
{ id: '10', title: 'Others', icon: 'apps-outline' },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const typeTitle =
|
|
41
|
+
typeData.find((t) => t.id === businessType)?.title || 'Type';
|
|
42
|
+
const categoryTitle =
|
|
43
|
+
categoryData.find((c) => c.id === businessCategory)?.title || 'Category';
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<ImageBackground
|
|
47
|
+
source={require('../../assets/businessCards/card_wall_05.jpeg')}
|
|
48
|
+
resizeMode="contain"
|
|
49
|
+
style={styles.bg}
|
|
50
|
+
>
|
|
51
|
+
<View style={styles.overlay}>
|
|
52
|
+
{/* Top Section */}
|
|
53
|
+
<View style={styles.topSection}>
|
|
54
|
+
<Text style={styles.businessName}>
|
|
55
|
+
{businessName || 'Business Name'}
|
|
56
|
+
</Text>
|
|
57
|
+
{businessType && businessCategory && (
|
|
58
|
+
<Text style={styles.category}>
|
|
59
|
+
{typeTitle} / {categoryTitle}
|
|
60
|
+
</Text>
|
|
61
|
+
)}
|
|
62
|
+
|
|
63
|
+
{businessTypeDetail && businessCategoryDetail && (
|
|
64
|
+
<Text style={styles.category}>
|
|
65
|
+
{businessTypeDetail} / {businessCategoryDetail}
|
|
66
|
+
</Text>
|
|
67
|
+
)}
|
|
68
|
+
<Text style={styles.ownerName}>{ownerName || 'name'}</Text>
|
|
69
|
+
</View>
|
|
70
|
+
|
|
71
|
+
{/* Middle Section */}
|
|
72
|
+
{/* <View style={styles.middleSection}>
|
|
73
|
+
<Text style={styles.ownerName}>{ownerName || 'Owner Name'}</Text>
|
|
74
|
+
</View> */}
|
|
75
|
+
|
|
76
|
+
{/* Bottom Section */}
|
|
77
|
+
<View style={styles.bottomSection}>
|
|
78
|
+
<Text style={styles.contactText}>{phoneNumber || 'number'}</Text>
|
|
79
|
+
<Text style={styles.contactText}>{email || 'email'}</Text>
|
|
80
|
+
<Text
|
|
81
|
+
style={styles.contactTextAddress}
|
|
82
|
+
numberOfLines={2}
|
|
83
|
+
ellipsizeMode="tail"
|
|
84
|
+
>
|
|
85
|
+
{createAddress?.formattedAddress || address || 'address'}
|
|
86
|
+
</Text>
|
|
87
|
+
<Text style={styles.contactText}>{city || 'city'}</Text>
|
|
88
|
+
</View>
|
|
89
|
+
</View>
|
|
90
|
+
</ImageBackground>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const styles = StyleSheet.create({
|
|
95
|
+
bg: {
|
|
96
|
+
width: '100%',
|
|
97
|
+
height: '100%',
|
|
98
|
+
justifyContent: 'center',
|
|
99
|
+
},
|
|
100
|
+
overlay: {
|
|
101
|
+
flex: 1,
|
|
102
|
+
padding: 20,
|
|
103
|
+
justifyContent: 'space-between',
|
|
104
|
+
alignItems: 'center',
|
|
105
|
+
},
|
|
106
|
+
topSection: {
|
|
107
|
+
alignItems: 'center',
|
|
108
|
+
},
|
|
109
|
+
businessName: {
|
|
110
|
+
color: COLORS.whiteColor,
|
|
111
|
+
fontSize: 14,
|
|
112
|
+
fontFamily: FONT_NORMAL,
|
|
113
|
+
textAlign: 'center',
|
|
114
|
+
},
|
|
115
|
+
category: {
|
|
116
|
+
color: COLORS.whiteColor,
|
|
117
|
+
fontSize: 10,
|
|
118
|
+
fontFamily: FONT_NORMAL,
|
|
119
|
+
textAlign: 'center',
|
|
120
|
+
marginTop: 2,
|
|
121
|
+
},
|
|
122
|
+
middleSection: {
|
|
123
|
+
alignItems: 'center',
|
|
124
|
+
},
|
|
125
|
+
ownerName: {
|
|
126
|
+
color: COLORS.whiteColor,
|
|
127
|
+
fontSize: 16,
|
|
128
|
+
fontFamily: FONT_NORMAL,
|
|
129
|
+
textAlign: 'center',
|
|
130
|
+
marginTop: 10,
|
|
131
|
+
},
|
|
132
|
+
bottomSection: {
|
|
133
|
+
alignItems: 'center',
|
|
134
|
+
marginBottom: 0,
|
|
135
|
+
},
|
|
136
|
+
contactText: {
|
|
137
|
+
color: COLORS.whiteColor,
|
|
138
|
+
fontSize: 10,
|
|
139
|
+
marginVertical: 0,
|
|
140
|
+
fontFamily: FONT_NORMAL,
|
|
141
|
+
textAlign: 'center',
|
|
142
|
+
},
|
|
143
|
+
contactTextAddress: {
|
|
144
|
+
color: COLORS.whiteColor,
|
|
145
|
+
fontSize: 9,
|
|
146
|
+
marginVertical: 2,
|
|
147
|
+
fontFamily: FONT_NORMAL,
|
|
148
|
+
textAlign: 'right', // ✅ text aligns right
|
|
149
|
+
width: '50%', // ✅ uses full bottomRight width
|
|
150
|
+
},
|
|
151
|
+
});
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, ImageBackground, StyleSheet } from 'react-native';
|
|
3
|
+
import { COLORS, FONT_BOLD, FONT_NORMAL } from '../../themes/config';
|
|
4
|
+
|
|
5
|
+
export default function Card6({
|
|
6
|
+
businessName,
|
|
7
|
+
businessCategory,
|
|
8
|
+
businessCategoryDetail,
|
|
9
|
+
businessType,
|
|
10
|
+
businessTypeDetail,
|
|
11
|
+
ownerName,
|
|
12
|
+
phoneNumber,
|
|
13
|
+
email,
|
|
14
|
+
address,
|
|
15
|
+
createAddress,
|
|
16
|
+
city,
|
|
17
|
+
}) {
|
|
18
|
+
console.log('businessTypeDetail', businessCategory, businessType);
|
|
19
|
+
|
|
20
|
+
const typeData = [
|
|
21
|
+
{ id: '1', title: 'Retailer/ Shop', icon: 'storefront-outline' },
|
|
22
|
+
{ id: '2', title: 'Wholesaler', icon: 'restaurant-outline' },
|
|
23
|
+
{ id: '3', title: 'Distributor', icon: 'business-outline' },
|
|
24
|
+
{ id: '4', title: 'Manufacturer', icon: 'briefcase-outline' },
|
|
25
|
+
{ id: '5', title: 'Services', icon: 'briefcase-outline' },
|
|
26
|
+
{ id: '6', title: 'Other', icon: 'briefcase-outline' },
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const categoryData = [
|
|
30
|
+
{ id: '1', title: 'Kirana/Grocery', icon: 'cart-outline' },
|
|
31
|
+
{ id: '2', title: 'Textile/Fashion', icon: 'shirt-outline' },
|
|
32
|
+
{ id: '3', title: 'Medical', icon: 'medkit-outline' },
|
|
33
|
+
{ id: '4', title: 'Electronics', icon: 'tv-outline' },
|
|
34
|
+
{ id: '5', title: 'Mobile', icon: 'phone-portrait-outline' },
|
|
35
|
+
{ id: '6', title: 'Automobile', icon: 'car-outline' },
|
|
36
|
+
{ id: '7', title: 'Sports', icon: 'bicycle-outline' },
|
|
37
|
+
{ id: '8', title: 'Kids/Toys', icon: 'happy-outline' },
|
|
38
|
+
{ id: '9', title: 'Hardware/Tools', icon: 'construct-outline' },
|
|
39
|
+
{ id: '10', title: 'Others', icon: 'apps-outline' },
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
const typeTitle =
|
|
43
|
+
typeData.find((t) => t.id === businessType)?.title || 'type';
|
|
44
|
+
const categoryTitle =
|
|
45
|
+
categoryData.find((c) => c.id === businessCategory)?.title || 'category';
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<ImageBackground
|
|
49
|
+
source={require('../../assets/businessCards/card_wall_06.jpeg')}
|
|
50
|
+
resizeMode="contain"
|
|
51
|
+
style={styles.bg}
|
|
52
|
+
>
|
|
53
|
+
<View style={styles.container}>
|
|
54
|
+
{/* Top Right Section */}
|
|
55
|
+
<View style={styles.topRight}>
|
|
56
|
+
<Text style={styles.businessName}>
|
|
57
|
+
{businessName || 'business name'}
|
|
58
|
+
</Text>
|
|
59
|
+
{businessType && businessCategory && (
|
|
60
|
+
<Text style={styles.category}>
|
|
61
|
+
{typeTitle} / {categoryTitle}
|
|
62
|
+
</Text>
|
|
63
|
+
)}
|
|
64
|
+
|
|
65
|
+
{businessTypeDetail && businessCategoryDetail && (
|
|
66
|
+
<Text style={styles.category}>
|
|
67
|
+
{businessTypeDetail} / {businessCategoryDetail}
|
|
68
|
+
</Text>
|
|
69
|
+
)}
|
|
70
|
+
</View>
|
|
71
|
+
|
|
72
|
+
{/* Center Right - Owner Name */}
|
|
73
|
+
<View style={styles.centerRight}>
|
|
74
|
+
<Text style={styles.ownerName}>{ownerName || 'name'}</Text>
|
|
75
|
+
</View>
|
|
76
|
+
|
|
77
|
+
{/* Bottom Right - Contact Info */}
|
|
78
|
+
<View style={styles.bottomRight}>
|
|
79
|
+
<Text style={styles.contactText}>{phoneNumber || 'number'}</Text>
|
|
80
|
+
<Text style={styles.contactText}>{email || 'email'}</Text>
|
|
81
|
+
<Text
|
|
82
|
+
style={styles.contactTextAddress}
|
|
83
|
+
numberOfLines={2}
|
|
84
|
+
ellipsizeMode="tail"
|
|
85
|
+
>
|
|
86
|
+
{createAddress?.formattedAddress || address || 'address'}
|
|
87
|
+
</Text>
|
|
88
|
+
<Text style={styles.contactText}>{city || 'city'}</Text>
|
|
89
|
+
</View>
|
|
90
|
+
</View>
|
|
91
|
+
</ImageBackground>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const styles = StyleSheet.create({
|
|
96
|
+
bg: {
|
|
97
|
+
width: '100%',
|
|
98
|
+
height: '100%',
|
|
99
|
+
},
|
|
100
|
+
container: {
|
|
101
|
+
flex: 1,
|
|
102
|
+
paddingHorizontal: 20,
|
|
103
|
+
},
|
|
104
|
+
topRight: {
|
|
105
|
+
position: 'absolute',
|
|
106
|
+
top: 25,
|
|
107
|
+
right: 20,
|
|
108
|
+
alignItems: 'flex-end',
|
|
109
|
+
},
|
|
110
|
+
businessName: {
|
|
111
|
+
color: COLORS.blackColor,
|
|
112
|
+
fontSize: 14,
|
|
113
|
+
fontFamily: FONT_NORMAL,
|
|
114
|
+
textAlign: 'right',
|
|
115
|
+
},
|
|
116
|
+
category: {
|
|
117
|
+
color: COLORS.gray,
|
|
118
|
+
fontSize: 10,
|
|
119
|
+
fontFamily: FONT_NORMAL,
|
|
120
|
+
textAlign: 'right',
|
|
121
|
+
marginTop: 2,
|
|
122
|
+
},
|
|
123
|
+
centerRight: {
|
|
124
|
+
position: 'absolute',
|
|
125
|
+
right: 20,
|
|
126
|
+
top: '28%',
|
|
127
|
+
alignItems: 'flex-end',
|
|
128
|
+
},
|
|
129
|
+
ownerName: {
|
|
130
|
+
color: COLORS.light_golden,
|
|
131
|
+
fontSize: 16,
|
|
132
|
+
fontFamily: FONT_NORMAL,
|
|
133
|
+
textAlign: 'right',
|
|
134
|
+
},
|
|
135
|
+
bottomRight: {
|
|
136
|
+
position: 'absolute',
|
|
137
|
+
bottom: 30,
|
|
138
|
+
right: 20,
|
|
139
|
+
alignItems: 'flex-end',
|
|
140
|
+
width: '70%', // ✅ ensures address text wraps correctly
|
|
141
|
+
},
|
|
142
|
+
contactText: {
|
|
143
|
+
color: COLORS.blackColor,
|
|
144
|
+
fontSize: 10,
|
|
145
|
+
// marginVertical: 2,
|
|
146
|
+
fontFamily: FONT_NORMAL,
|
|
147
|
+
textAlign: 'right',
|
|
148
|
+
},
|
|
149
|
+
contactTextAddress: {
|
|
150
|
+
color: COLORS.blackColor,
|
|
151
|
+
fontSize: 9,
|
|
152
|
+
// marginVertical: 2,
|
|
153
|
+
fontFamily: FONT_NORMAL,
|
|
154
|
+
textAlign: 'right', // ✅ text aligns right
|
|
155
|
+
width: '80%', // ✅ uses full bottomRight width
|
|
156
|
+
},
|
|
157
|
+
});
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, ImageBackground, StyleSheet } from 'react-native';
|
|
3
|
+
import { COLORS, FONT_BOLD, FONT_NORMAL } from '../../themes/config';
|
|
4
|
+
|
|
5
|
+
export default function Card7({
|
|
6
|
+
businessName,
|
|
7
|
+
businessCategory,
|
|
8
|
+
businessType,
|
|
9
|
+
ownerName,
|
|
10
|
+
phoneNumber,
|
|
11
|
+
email,
|
|
12
|
+
address,
|
|
13
|
+
city,
|
|
14
|
+
createAddress,
|
|
15
|
+
businessTypeDetail,
|
|
16
|
+
businessCategoryDetail,
|
|
17
|
+
}) {
|
|
18
|
+
const typeData = [
|
|
19
|
+
{ id: '1', title: 'Retailer/ Shop', icon: 'storefront-outline' },
|
|
20
|
+
{ id: '2', title: 'Wholesaler', icon: 'restaurant-outline' },
|
|
21
|
+
{ id: '3', title: 'Distributor', icon: 'business-outline' },
|
|
22
|
+
{ id: '4', title: 'Manufacturer', icon: 'briefcase-outline' },
|
|
23
|
+
{ id: '5', title: 'Services', icon: 'briefcase-outline' },
|
|
24
|
+
{ id: '6', title: 'Other', icon: 'briefcase-outline' },
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
const categoryData = [
|
|
28
|
+
{ id: '1', title: 'Kirana/Grocery', icon: 'cart-outline' },
|
|
29
|
+
{ id: '2', title: 'Textile/Fashion', icon: 'shirt-outline' },
|
|
30
|
+
{ id: '3', title: 'Medical', icon: 'medkit-outline' },
|
|
31
|
+
{ id: '4', title: 'Electronics', icon: 'tv-outline' },
|
|
32
|
+
{ id: '5', title: 'Mobile', icon: 'phone-portrait-outline' },
|
|
33
|
+
{ id: '6', title: 'Automobile', icon: 'car-outline' },
|
|
34
|
+
{ id: '7', title: 'Sports', icon: 'bicycle-outline' },
|
|
35
|
+
{ id: '8', title: 'Kids/Toys', icon: 'happy-outline' },
|
|
36
|
+
{ id: '9', title: 'Hardware/Tools', icon: 'construct-outline' },
|
|
37
|
+
{ id: '10', title: 'Others', icon: 'apps-outline' },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const typeTitle =
|
|
41
|
+
typeData.find((t) => t.id === businessType)?.title || 'Type';
|
|
42
|
+
const categoryTitle =
|
|
43
|
+
categoryData.find((c) => c.id === businessCategory)?.title || 'Category';
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<ImageBackground
|
|
47
|
+
source={require('../../assets/businessCards/card_wall_07.jpeg')}
|
|
48
|
+
resizeMode="contain"
|
|
49
|
+
style={styles.bg}
|
|
50
|
+
>
|
|
51
|
+
<View style={styles.overlay}>
|
|
52
|
+
{/* Top Section */}
|
|
53
|
+
<View style={styles.topSection}>
|
|
54
|
+
<Text style={styles.businessName}>
|
|
55
|
+
{businessName || 'business name'}
|
|
56
|
+
</Text>
|
|
57
|
+
{businessType && businessCategory && (
|
|
58
|
+
<Text style={styles.category}>
|
|
59
|
+
{typeTitle} / {categoryTitle}
|
|
60
|
+
</Text>
|
|
61
|
+
)}
|
|
62
|
+
|
|
63
|
+
{businessTypeDetail && businessCategoryDetail && (
|
|
64
|
+
<Text style={styles.category}>
|
|
65
|
+
{businessTypeDetail} / {businessCategoryDetail}
|
|
66
|
+
</Text>
|
|
67
|
+
)}
|
|
68
|
+
<Text style={styles.ownerName}>{ownerName || 'name'}</Text>
|
|
69
|
+
</View>
|
|
70
|
+
|
|
71
|
+
{/* Middle Section */}
|
|
72
|
+
{/* <View style={styles.middleSection}>
|
|
73
|
+
<Text style={styles.ownerName}>{ownerName || 'Owner Name'}</Text>
|
|
74
|
+
</View> */}
|
|
75
|
+
|
|
76
|
+
{/* Bottom Section */}
|
|
77
|
+
<View style={styles.bottomSection}>
|
|
78
|
+
<Text style={styles.contactText}>{phoneNumber || 'number'}</Text>
|
|
79
|
+
<Text style={styles.contactText}>{email || 'email'}</Text>
|
|
80
|
+
<Text style={styles.contactTextAddress}>
|
|
81
|
+
{createAddress?.formattedAddress || address || 'address'}
|
|
82
|
+
</Text>
|
|
83
|
+
<Text style={styles.contactText}>{city || 'city'}</Text>
|
|
84
|
+
</View>
|
|
85
|
+
</View>
|
|
86
|
+
</ImageBackground>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const styles = StyleSheet.create({
|
|
91
|
+
bg: {
|
|
92
|
+
width: '100%',
|
|
93
|
+
height: '100%',
|
|
94
|
+
justifyContent: 'center',
|
|
95
|
+
},
|
|
96
|
+
overlay: {
|
|
97
|
+
flex: 1,
|
|
98
|
+
padding: 20,
|
|
99
|
+
justifyContent: 'space-between',
|
|
100
|
+
alignItems: 'center',
|
|
101
|
+
},
|
|
102
|
+
topSection: {
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
},
|
|
105
|
+
businessName: {
|
|
106
|
+
color: COLORS.whiteColor,
|
|
107
|
+
fontSize: 14,
|
|
108
|
+
fontFamily: FONT_NORMAL,
|
|
109
|
+
textAlign: 'center',
|
|
110
|
+
},
|
|
111
|
+
category: {
|
|
112
|
+
color: COLORS.whiteColor,
|
|
113
|
+
fontSize: 10,
|
|
114
|
+
fontFamily: FONT_NORMAL,
|
|
115
|
+
textAlign: 'center',
|
|
116
|
+
marginTop: 2,
|
|
117
|
+
},
|
|
118
|
+
middleSection: {
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
},
|
|
121
|
+
ownerName: {
|
|
122
|
+
color: COLORS.whiteColor,
|
|
123
|
+
fontSize: 16,
|
|
124
|
+
fontFamily: FONT_NORMAL,
|
|
125
|
+
textAlign: 'center',
|
|
126
|
+
marginTop: 10,
|
|
127
|
+
},
|
|
128
|
+
bottomSection: {
|
|
129
|
+
alignItems: 'center',
|
|
130
|
+
marginBottom: 0,
|
|
131
|
+
},
|
|
132
|
+
contactText: {
|
|
133
|
+
color: COLORS.whiteColor,
|
|
134
|
+
fontSize: 10,
|
|
135
|
+
marginVertical: 0,
|
|
136
|
+
fontFamily: FONT_NORMAL,
|
|
137
|
+
textAlign: 'center',
|
|
138
|
+
},
|
|
139
|
+
contactTextAddress: {
|
|
140
|
+
color: COLORS.whiteColor,
|
|
141
|
+
fontSize: 9,
|
|
142
|
+
marginVertical: 0,
|
|
143
|
+
fontFamily: FONT_NORMAL,
|
|
144
|
+
textAlign: 'center',
|
|
145
|
+
},
|
|
146
|
+
});
|