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,1047 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useEffect } from 'react';
|
|
4
|
+
import { View, Text, StyleSheet, TouchableOpacity, FlatList, Image, Alert, Platform, TextInput, ScrollView, PermissionsAndroid } from 'react-native';
|
|
5
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
6
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
7
|
+
import { BottomView, CountryPhoneInput, SalePaymentModal, User } from "../components/index.js";
|
|
8
|
+
import { addCommas, COLORS, FONT_BOLD, FONT_NORMAL, formatDateTime, formatPhoneNumber, getAvatar, TEXT_SIZES, WP } from "../themes/config.js";
|
|
9
|
+
import DiscountTaxModal from "../components/DiscountTaxModal.js";
|
|
10
|
+
import Modal from 'react-native-modal';
|
|
11
|
+
import { HP, FONT_MEDIUM } from "../themes/config.js";
|
|
12
|
+
import LottieView from 'lottie-react-native';
|
|
13
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
14
|
+
import { addClient, getClientDetails, getClientsByType } from "../database/clients.js";
|
|
15
|
+
import Contacts from 'react-native-contacts';
|
|
16
|
+
import { CLIENT_DETAILS } from "../redux/reducers/client/client_types.js";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
const SaleItemDetail = ({
|
|
19
|
+
navigation,
|
|
20
|
+
route
|
|
21
|
+
}) => {
|
|
22
|
+
const selectBusiness = useSelector(state => state.client.selected_business);
|
|
23
|
+
const dispatch = useDispatch();
|
|
24
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
25
|
+
const [modalType, setModalType] = useState('Discount');
|
|
26
|
+
const [paymentVisible, setPaymentVisible] = useState(false);
|
|
27
|
+
const [items, setItems] = useState([]);
|
|
28
|
+
const [Discount, setDiscount] = useState(0);
|
|
29
|
+
const [DiscountType, setDiscountType] = useState('amt');
|
|
30
|
+
const [Tax, setTax] = useState(0);
|
|
31
|
+
const [TaxType, setTaxType] = useState('amt');
|
|
32
|
+
const [SuccessModal, setSuccessModal] = useState(false);
|
|
33
|
+
const [amount, setAmount] = useState(0);
|
|
34
|
+
const [ChangeModal, setChangeModal] = useState(false);
|
|
35
|
+
const [SelectedParty, setSelectedParty] = useState(null);
|
|
36
|
+
const [Clients, setClients] = useState([]);
|
|
37
|
+
const [ShowNewBtn, setShowNewBtn] = useState(false);
|
|
38
|
+
const [contacts, setContacts] = useState([]);
|
|
39
|
+
const [Name, setName] = useState('');
|
|
40
|
+
const [clientPhoneSet, setClientPhoneSet] = useState(new Set());
|
|
41
|
+
const [clientPhoneMap, setClientPhoneMap] = useState(new Map());
|
|
42
|
+
const [searchText, setSearchText] = useState('');
|
|
43
|
+
const [PhoneNum, setPhoneNum] = useState('');
|
|
44
|
+
const [isModalVisible, setIsModalVisible] = useState(false);
|
|
45
|
+
const [banks, setBanks] = useState([]);
|
|
46
|
+
const clients = useSelector(state => state.client.home_customers);
|
|
47
|
+
const suppliers = useSelector(state => state.client.home_suppliers);
|
|
48
|
+
const {
|
|
49
|
+
cartedItems
|
|
50
|
+
} = route.params;
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
setItems(cartedItems);
|
|
53
|
+
}, [cartedItems]);
|
|
54
|
+
const handleAddToCart = id => {
|
|
55
|
+
const updated = items.map(item => item.id === id ? {
|
|
56
|
+
...item,
|
|
57
|
+
qty: 1
|
|
58
|
+
} : item);
|
|
59
|
+
setItems(updated);
|
|
60
|
+
};
|
|
61
|
+
const handleIncrease = id => {
|
|
62
|
+
const updated = items.map(item => item.id === id ? {
|
|
63
|
+
...item,
|
|
64
|
+
qty: item.qty + 1
|
|
65
|
+
} : item);
|
|
66
|
+
setItems(updated);
|
|
67
|
+
};
|
|
68
|
+
const handleDecrease = id => {
|
|
69
|
+
const updated = items.map(item => item.id === id ? {
|
|
70
|
+
...item,
|
|
71
|
+
qty: item.qty > 1 ? item.qty - 1 : 0
|
|
72
|
+
} : item);
|
|
73
|
+
setItems(updated);
|
|
74
|
+
};
|
|
75
|
+
const renderItem = ({
|
|
76
|
+
item
|
|
77
|
+
}) => /*#__PURE__*/_jsxs(View, {
|
|
78
|
+
style: [styles.itemRow, {
|
|
79
|
+
display: item?.qty > 0 ? 'flex' : 'none'
|
|
80
|
+
}],
|
|
81
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
82
|
+
style: styles.imageBox,
|
|
83
|
+
children: item?.local_path ? /*#__PURE__*/_jsx(Image, {
|
|
84
|
+
source: {
|
|
85
|
+
uri: item?.local_path
|
|
86
|
+
},
|
|
87
|
+
style: {
|
|
88
|
+
width: '100%',
|
|
89
|
+
height: '100%'
|
|
90
|
+
},
|
|
91
|
+
resizeMode: "cover"
|
|
92
|
+
}) : /*#__PURE__*/_jsx(Ionicons, {
|
|
93
|
+
name: "cube-outline",
|
|
94
|
+
size: 35,
|
|
95
|
+
color: COLORS.gray
|
|
96
|
+
})
|
|
97
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
98
|
+
style: styles.textContainer,
|
|
99
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
100
|
+
style: styles.itemName,
|
|
101
|
+
children: item?.name
|
|
102
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
103
|
+
style: styles.itemPrice,
|
|
104
|
+
children: ["Rs.", addCommas(Number(item.sellingPrice))]
|
|
105
|
+
})]
|
|
106
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
107
|
+
style: styles.qtyContainer,
|
|
108
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
109
|
+
style: styles.qtyButton,
|
|
110
|
+
activeOpacity: 0.8,
|
|
111
|
+
onPress: () => {
|
|
112
|
+
handleDecrease(item?.id);
|
|
113
|
+
},
|
|
114
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
115
|
+
name: "remove-outline",
|
|
116
|
+
size: 18,
|
|
117
|
+
color: COLORS.primaryColor
|
|
118
|
+
})
|
|
119
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
120
|
+
style: styles.qtyText,
|
|
121
|
+
children: item?.qty
|
|
122
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
123
|
+
style: styles.qtyButton,
|
|
124
|
+
activeOpacity: 0.8,
|
|
125
|
+
onPress: () => {
|
|
126
|
+
handleIncrease(item?.id);
|
|
127
|
+
},
|
|
128
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
129
|
+
name: "add-outline",
|
|
130
|
+
size: 18,
|
|
131
|
+
color: COLORS.primaryColor
|
|
132
|
+
})
|
|
133
|
+
})]
|
|
134
|
+
})]
|
|
135
|
+
});
|
|
136
|
+
const clearCart = () => {
|
|
137
|
+
Alert.alert('Clear Cart', 'Do you want to clear all of your selected items?', [{
|
|
138
|
+
text: 'No',
|
|
139
|
+
style: 'cancel'
|
|
140
|
+
}, {
|
|
141
|
+
text: 'Yes',
|
|
142
|
+
onPress: () => {
|
|
143
|
+
setDiscount(0);
|
|
144
|
+
setDiscountType('amt');
|
|
145
|
+
setTax(0);
|
|
146
|
+
setTaxType('amt');
|
|
147
|
+
setItems([]);
|
|
148
|
+
},
|
|
149
|
+
style: 'destructive'
|
|
150
|
+
}]);
|
|
151
|
+
};
|
|
152
|
+
const totalItems = items.filter(item => item.qty > 0).length;
|
|
153
|
+
const totalPcs = items.reduce((sum, item) => sum + (item.qty || 0), 0);
|
|
154
|
+
const totalAmount = items.reduce((sum, item) => sum + (item.sellingPrice || 0) * (item.qty || 0), 0);
|
|
155
|
+
const totalDiscount = DiscountType === 'percent' ? totalAmount * Discount / 100 : Discount;
|
|
156
|
+
const totalTax = TaxType === 'percent' ? totalAmount * Tax / 100 : Tax;
|
|
157
|
+
const grandTotal = Number(totalAmount) - Number(totalDiscount) + Number(totalTax);
|
|
158
|
+
const filteredContacts = contacts.filter(item => {
|
|
159
|
+
const name = item?.displayName?.toLowerCase() || '';
|
|
160
|
+
const rawNumber = item?.phoneNumbers[0]?.number || '';
|
|
161
|
+
const formattedNumber = formatPhoneNumber(rawNumber)?.toLowerCase() || '';
|
|
162
|
+
|
|
163
|
+
// 🔹 use your searchText state (from TextInput)
|
|
164
|
+
const searchLower = searchText.toLowerCase();
|
|
165
|
+
|
|
166
|
+
// (optional) client type
|
|
167
|
+
const clientType = clientPhoneMap.get(formattedNumber);
|
|
168
|
+
return name.includes(searchLower) || formattedNumber.includes(searchLower);
|
|
169
|
+
});
|
|
170
|
+
const filteredClients = Clients.filter(c => {
|
|
171
|
+
const name = c.name?.toLowerCase() || '';
|
|
172
|
+
const phone = c.phone?.toLowerCase() || '';
|
|
173
|
+
const searchLower = searchText.toLowerCase();
|
|
174
|
+
return name.includes(searchLower) || phone.includes(searchLower);
|
|
175
|
+
});
|
|
176
|
+
const getAllClientTypes = async () => {
|
|
177
|
+
try {
|
|
178
|
+
const [customers, suppliers, banks] = await Promise.all([getClientsByType(0, null, null, selectBusiness?.id), getClientsByType(1, null, null, selectBusiness?.id), getClientsByType(2, null, null, selectBusiness?.id)]);
|
|
179
|
+
const allClients = [...customers, ...suppliers, ...banks];
|
|
180
|
+
|
|
181
|
+
// sort
|
|
182
|
+
const sortedClients = allClients.sort((a, b) => a.type - b.type);
|
|
183
|
+
setClients(sortedClients);
|
|
184
|
+
|
|
185
|
+
// Map phone -> full client info
|
|
186
|
+
const phoneMap = new Map();
|
|
187
|
+
allClients.forEach(c => {
|
|
188
|
+
const formatted = formatPhoneNumber(c.phone || '')?.toLowerCase();
|
|
189
|
+
if (formatted) {
|
|
190
|
+
phoneMap.set(formatted, {
|
|
191
|
+
id: c.id,
|
|
192
|
+
type: c.type,
|
|
193
|
+
name: c.name,
|
|
194
|
+
phone: c.phone
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
setClientPhoneMap(phoneMap);
|
|
199
|
+
} catch (error) {
|
|
200
|
+
console.error(error);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
const getAllContacts = async () => {
|
|
204
|
+
if (Platform.OS === 'android') {
|
|
205
|
+
try {
|
|
206
|
+
const granted = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.READ_CONTACTS, {
|
|
207
|
+
title: 'Contacts',
|
|
208
|
+
message: 'This app would like to view your contacts.',
|
|
209
|
+
buttonPositive: 'Please accept bare mortal'
|
|
210
|
+
});
|
|
211
|
+
if (granted === PermissionsAndroid.RESULTS.GRANTED) {
|
|
212
|
+
console.log('Contacts permission granted');
|
|
213
|
+
Contacts.getAll().then(contacts => {
|
|
214
|
+
setContacts(contacts);
|
|
215
|
+
});
|
|
216
|
+
} else {
|
|
217
|
+
console.log('Contacts permission denied');
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
} catch (err) {
|
|
221
|
+
console.warn(err);
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
setIsModalVisible(false);
|
|
226
|
+
};
|
|
227
|
+
const onPartyPress = async () => {
|
|
228
|
+
await getAllContacts();
|
|
229
|
+
await getAllClientTypes();
|
|
230
|
+
setChangeModal(true);
|
|
231
|
+
};
|
|
232
|
+
const onContinue = async (name, phoneNUmer) => {
|
|
233
|
+
// normalize phone
|
|
234
|
+
const normalizedPhone = phoneNUmer ? String(phoneNUmer).trim() : '';
|
|
235
|
+
let data = [...clients, ...suppliers];
|
|
236
|
+
try {
|
|
237
|
+
let clientId;
|
|
238
|
+
let homeDetails = null;
|
|
239
|
+
|
|
240
|
+
// If phone exists → check if already in clients array
|
|
241
|
+
const isExist = normalizedPhone !== '' ? data?.find(item => {
|
|
242
|
+
const itemPhone = item?.phone ? String(item.phone).trim() : '';
|
|
243
|
+
return itemPhone === normalizedPhone && itemPhone !== '';
|
|
244
|
+
}) : undefined; // no phone → force new client
|
|
245
|
+
|
|
246
|
+
if (isExist) {
|
|
247
|
+
// Existing client found
|
|
248
|
+
clientId = isExist.id;
|
|
249
|
+
homeDetails = isExist;
|
|
250
|
+
} else {
|
|
251
|
+
console.log('else');
|
|
252
|
+
// No existing client or no phone given → always create new
|
|
253
|
+
const res = await addClient(name, normalizedPhone, 0, selectBusiness?.id);
|
|
254
|
+
setName('');
|
|
255
|
+
setPhoneNum('');
|
|
256
|
+
clientId = res?.insertId;
|
|
257
|
+
}
|
|
258
|
+
const resp = await getClientDetails(clientId);
|
|
259
|
+
dispatch({
|
|
260
|
+
type: CLIENT_DETAILS,
|
|
261
|
+
payload: resp
|
|
262
|
+
});
|
|
263
|
+
setSelectedParty(resp);
|
|
264
|
+
setChangeModal(false);
|
|
265
|
+
|
|
266
|
+
// navigation.replace('CustomerEntries', homeDetails ? { homeDetails } : {});
|
|
267
|
+
} catch (err) {
|
|
268
|
+
console.log('Error:', err);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
const addPartyTransaction = async (finalValue, oldId) => {
|
|
272
|
+
let allItems = await getItemsByBusiness(selectBusiness?.id);
|
|
273
|
+
let filteredItem = allItems.find(i => i?.id == itemId);
|
|
274
|
+
let mutatedData = {
|
|
275
|
+
...filteredItem,
|
|
276
|
+
addedQty: form?.qty,
|
|
277
|
+
addedRate: form?.rateSale
|
|
278
|
+
};
|
|
279
|
+
let final = [mutatedData];
|
|
280
|
+
try {
|
|
281
|
+
const res = await addTransaction(SelectedParty.id, type == "OUT" ? String(finalValue) : '0', type == "IN" ? String(finalValue) : '0', form?.details, fromJsDateToSql(date), AudioFile, `Stock_stockId${String(oldId)}`, JSON.stringify(final));
|
|
282
|
+
console.log(res, 'Transaction Success');
|
|
283
|
+
const trxId = res.insertId; // ✅ new transaction ID
|
|
284
|
+
|
|
285
|
+
if (attachments && attachments.length > 0) {
|
|
286
|
+
for (const file of attachments) {
|
|
287
|
+
try {
|
|
288
|
+
await addTransactionImages(trxId, file.uri);
|
|
289
|
+
console.log(`Attachment added: ${file.name}`);
|
|
290
|
+
} catch (err) {
|
|
291
|
+
console.log('Attachment insert error:', err);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
} catch (err) {
|
|
296
|
+
console.log(err, 'Transaction Error');
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
useEffect(() => {
|
|
300
|
+
const unsubscribe = navigation.addListener('focus', async () => {
|
|
301
|
+
const clients = await getClientsByType(2, null, null, selectBusiness?.id); // banks
|
|
302
|
+
|
|
303
|
+
const freshClients = addPayType(clients);
|
|
304
|
+
setBanks(freshClients);
|
|
305
|
+
});
|
|
306
|
+
return unsubscribe;
|
|
307
|
+
}, [navigation, selectBusiness?.id]);
|
|
308
|
+
function addPayType(clients) {
|
|
309
|
+
return clients.map(item => {
|
|
310
|
+
const amount = (item?.total_subamount || 0) - (item?.total_amount || 0);
|
|
311
|
+
let pay_type = 'none';
|
|
312
|
+
if (amount > 0) pay_type = 'payable';else if (amount < 0) pay_type = 'receivable';
|
|
313
|
+
return {
|
|
314
|
+
...item,
|
|
315
|
+
amount: Math.abs(amount),
|
|
316
|
+
pay_type
|
|
317
|
+
};
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
321
|
+
style: styles.container,
|
|
322
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
323
|
+
style: styles.header,
|
|
324
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
325
|
+
style: styles.backButton,
|
|
326
|
+
onPress: () => navigation.goBack(),
|
|
327
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
328
|
+
name: 'chevron-back',
|
|
329
|
+
color: COLORS.primaryColor,
|
|
330
|
+
size: 24
|
|
331
|
+
})
|
|
332
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
333
|
+
style: styles.headerGroup,
|
|
334
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
335
|
+
style: styles.headerItem,
|
|
336
|
+
onPress: () => {
|
|
337
|
+
setModalType('Discount');
|
|
338
|
+
setModalVisible(true);
|
|
339
|
+
},
|
|
340
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
341
|
+
name: "pricetag-outline",
|
|
342
|
+
size: 20,
|
|
343
|
+
color: COLORS.primaryColor
|
|
344
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
345
|
+
style: styles.headerText,
|
|
346
|
+
children: "Discount"
|
|
347
|
+
})]
|
|
348
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
349
|
+
style: [styles.headerItem, styles.headerDivider],
|
|
350
|
+
onPress: () => {
|
|
351
|
+
setModalType('Tax');
|
|
352
|
+
setModalVisible(true);
|
|
353
|
+
},
|
|
354
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
355
|
+
name: "sync-outline",
|
|
356
|
+
size: 20,
|
|
357
|
+
color: COLORS.primaryColor
|
|
358
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
359
|
+
style: styles.headerText,
|
|
360
|
+
children: "Tax"
|
|
361
|
+
})]
|
|
362
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
363
|
+
style: [styles.headerItem, styles.headerDivider],
|
|
364
|
+
activeOpacity: 0.8,
|
|
365
|
+
onPress: onPartyPress,
|
|
366
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
367
|
+
name: "person-outline",
|
|
368
|
+
size: 20,
|
|
369
|
+
color: COLORS.primaryColor
|
|
370
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
371
|
+
style: styles.headerText,
|
|
372
|
+
children: "Customer"
|
|
373
|
+
})]
|
|
374
|
+
})]
|
|
375
|
+
})]
|
|
376
|
+
}), SelectedParty && /*#__PURE__*/_jsxs(View, {
|
|
377
|
+
style: {
|
|
378
|
+
width: "100%",
|
|
379
|
+
height: 50,
|
|
380
|
+
flexDirection: "row",
|
|
381
|
+
justifyContent: "space-between",
|
|
382
|
+
alignItems: "center",
|
|
383
|
+
paddingHorizontal: 15
|
|
384
|
+
},
|
|
385
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
386
|
+
color: COLORS.primaryColor,
|
|
387
|
+
name: "person-circle-outline",
|
|
388
|
+
size: 25
|
|
389
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
390
|
+
style: {
|
|
391
|
+
flexDirection: "row",
|
|
392
|
+
alignItems: "center",
|
|
393
|
+
gap: 5
|
|
394
|
+
},
|
|
395
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
396
|
+
style: {
|
|
397
|
+
color: COLORS.primaryColor,
|
|
398
|
+
fontFamily: FONT_NORMAL,
|
|
399
|
+
fontSize: 13
|
|
400
|
+
},
|
|
401
|
+
children: SelectedParty?.name
|
|
402
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
403
|
+
activeOpacity: 0.8,
|
|
404
|
+
onPress: () => setSelectedParty(null),
|
|
405
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
406
|
+
name: "close-outline",
|
|
407
|
+
color: COLORS.blackColor,
|
|
408
|
+
size: 25
|
|
409
|
+
})
|
|
410
|
+
})]
|
|
411
|
+
})]
|
|
412
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
413
|
+
style: styles.totalContainer,
|
|
414
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
415
|
+
style: styles.totalRow,
|
|
416
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
417
|
+
style: styles.totalLabel,
|
|
418
|
+
children: "Total Amount"
|
|
419
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
420
|
+
style: styles.totalValue,
|
|
421
|
+
children: addCommas(Number(totalAmount))
|
|
422
|
+
})]
|
|
423
|
+
}), Discount > 0 && /*#__PURE__*/_jsxs(View, {
|
|
424
|
+
style: styles.totalRow,
|
|
425
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
426
|
+
style: [styles.totalLabel, {
|
|
427
|
+
color: COLORS.redColor
|
|
428
|
+
}],
|
|
429
|
+
children: ["Discount ( ", Discount, DiscountType === 'amt' ? ' Rs' : '%', " )"]
|
|
430
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
431
|
+
style: [styles.totalValue, {
|
|
432
|
+
color: COLORS.redColor
|
|
433
|
+
}],
|
|
434
|
+
children: ["- ", addCommas(Number(totalDiscount))]
|
|
435
|
+
})]
|
|
436
|
+
}), Tax > 0 && /*#__PURE__*/_jsxs(View, {
|
|
437
|
+
style: styles.totalRow,
|
|
438
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
439
|
+
style: [styles.totalLabel, {
|
|
440
|
+
color: COLORS.greenColor
|
|
441
|
+
}],
|
|
442
|
+
children: ["Tax ( ", Tax, TaxType === 'amt' ? ' Rs' : '%', " )"]
|
|
443
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
444
|
+
style: [styles.totalValue, {
|
|
445
|
+
color: COLORS.greenColor
|
|
446
|
+
}],
|
|
447
|
+
children: ["+ ", addCommas(Number(totalTax))]
|
|
448
|
+
})]
|
|
449
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
450
|
+
style: styles.totalRow,
|
|
451
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
452
|
+
style: styles.totalLabel,
|
|
453
|
+
children: "Rs"
|
|
454
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
455
|
+
style: styles.totalPrice,
|
|
456
|
+
children: addCommas(Number(grandTotal))
|
|
457
|
+
})]
|
|
458
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
459
|
+
style: styles.payButton,
|
|
460
|
+
onPress: () => setPaymentVisible(true),
|
|
461
|
+
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
462
|
+
colors: [COLORS.primaryColor, COLORS.primaryColor],
|
|
463
|
+
style: styles.totalButton,
|
|
464
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
465
|
+
style: styles.clearText,
|
|
466
|
+
children: "PAY"
|
|
467
|
+
})
|
|
468
|
+
})
|
|
469
|
+
})]
|
|
470
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
471
|
+
style: styles.listHeader,
|
|
472
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
473
|
+
style: styles.listHeaderText,
|
|
474
|
+
children: [totalItems, " Items/ ", totalPcs, " pcs."]
|
|
475
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
476
|
+
style: styles.listHeaderValue,
|
|
477
|
+
children: addCommas(Number(totalAmount))
|
|
478
|
+
})]
|
|
479
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
480
|
+
data: items,
|
|
481
|
+
keyExtractor: item => item?.id,
|
|
482
|
+
renderItem: renderItem,
|
|
483
|
+
contentContainerStyle: {
|
|
484
|
+
paddingBottom: 300
|
|
485
|
+
}
|
|
486
|
+
}), items?.length > 0 && /*#__PURE__*/_jsx(BottomView, {
|
|
487
|
+
style: [styles.bottomBar],
|
|
488
|
+
children: /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
489
|
+
style: styles.totalButton,
|
|
490
|
+
activeOpacity: 0.8,
|
|
491
|
+
onPress: clearCart,
|
|
492
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
493
|
+
name: "close-outline",
|
|
494
|
+
size: 24,
|
|
495
|
+
color: COLORS.whiteColor
|
|
496
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
497
|
+
style: styles.clearText,
|
|
498
|
+
children: "Clear Cart"
|
|
499
|
+
})]
|
|
500
|
+
})
|
|
501
|
+
}), /*#__PURE__*/_jsx(DiscountTaxModal, {
|
|
502
|
+
visible: modalVisible,
|
|
503
|
+
onClose: () => setModalVisible(false),
|
|
504
|
+
type: modalType,
|
|
505
|
+
totalAmount: 300,
|
|
506
|
+
onApply: (value, isPercent) => {
|
|
507
|
+
console.log(`Applied ${modalType}:`, value, isPercent ? '%' : 'Rs');
|
|
508
|
+
if (modalType == 'Discount') {
|
|
509
|
+
setDiscount(value);
|
|
510
|
+
setDiscountType(isPercent ? 'percent' : 'amt');
|
|
511
|
+
} else {
|
|
512
|
+
setTax(value);
|
|
513
|
+
setTaxType(isPercent ? 'percent' : 'amt');
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}), /*#__PURE__*/_jsx(SalePaymentModal, {
|
|
517
|
+
visible: paymentVisible,
|
|
518
|
+
onClose: () => setPaymentVisible(false),
|
|
519
|
+
totalAmount: grandTotal,
|
|
520
|
+
clients: [...clients, ...suppliers],
|
|
521
|
+
banks: banks,
|
|
522
|
+
onConfirm: amount => {
|
|
523
|
+
console.log('Payment Confirmed:', amount);
|
|
524
|
+
setPaymentVisible(false);
|
|
525
|
+
},
|
|
526
|
+
Tax: Tax,
|
|
527
|
+
Discount: Discount,
|
|
528
|
+
SelectedItems: items,
|
|
529
|
+
selectedParty: SelectedParty,
|
|
530
|
+
setVisible: () => {
|
|
531
|
+
setPaymentVisible(false);
|
|
532
|
+
setTimeout(() => {
|
|
533
|
+
setSuccessModal(true);
|
|
534
|
+
}, 200);
|
|
535
|
+
}
|
|
536
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
537
|
+
isVisible: SuccessModal,
|
|
538
|
+
coverScreen: true,
|
|
539
|
+
style: {
|
|
540
|
+
margin: 0,
|
|
541
|
+
padding: 0
|
|
542
|
+
},
|
|
543
|
+
animationInTiming: 100,
|
|
544
|
+
animationOutTiming: 100,
|
|
545
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
546
|
+
style: {
|
|
547
|
+
width: WP(100),
|
|
548
|
+
height: HP(100),
|
|
549
|
+
backgroundColor: COLORS.whiteColor,
|
|
550
|
+
justifyContent: 'center',
|
|
551
|
+
alignItems: 'center'
|
|
552
|
+
},
|
|
553
|
+
children: [/*#__PURE__*/_jsx(LottieView, {
|
|
554
|
+
source: require('../assets/animations/success.json'),
|
|
555
|
+
style: {
|
|
556
|
+
width: 120,
|
|
557
|
+
height: 120
|
|
558
|
+
},
|
|
559
|
+
autoPlay: true,
|
|
560
|
+
loop: false
|
|
561
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
562
|
+
style: {
|
|
563
|
+
width: WP(90),
|
|
564
|
+
height: 50,
|
|
565
|
+
backgroundColor: COLORS.primaryColor,
|
|
566
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
567
|
+
justifyContent: 'center',
|
|
568
|
+
alignItems: 'center',
|
|
569
|
+
position: 'absolute',
|
|
570
|
+
bottom: 70
|
|
571
|
+
},
|
|
572
|
+
onPress: () => {
|
|
573
|
+
setSuccessModal(false);
|
|
574
|
+
navigation?.goBack();
|
|
575
|
+
},
|
|
576
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
577
|
+
style: styles.clearText,
|
|
578
|
+
children: "Done"
|
|
579
|
+
})
|
|
580
|
+
})]
|
|
581
|
+
})
|
|
582
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
583
|
+
isVisible: ChangeModal,
|
|
584
|
+
onBackButtonPress: () => {
|
|
585
|
+
setShowNewBtn(false);
|
|
586
|
+
setChangeModal(false);
|
|
587
|
+
},
|
|
588
|
+
onBackdropPress: () => {
|
|
589
|
+
setShowNewBtn(false);
|
|
590
|
+
setChangeModal(false);
|
|
591
|
+
},
|
|
592
|
+
avoidKeyboard: false,
|
|
593
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
594
|
+
style: styles._changeModalMain,
|
|
595
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
596
|
+
style: styles._changeModalHeader,
|
|
597
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
598
|
+
style: styles._changeModalHeaderTxt,
|
|
599
|
+
children: "Select Party"
|
|
600
|
+
})
|
|
601
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
602
|
+
style: styles._modalSearchMain,
|
|
603
|
+
children: /*#__PURE__*/_jsx(TextInput, {
|
|
604
|
+
style: styles._modalSearch,
|
|
605
|
+
cursorColor: COLORS.primaryColor,
|
|
606
|
+
placeholder: ShowNewBtn ? filteredContacts?.length && filteredContacts.length != 0 ? 'Search Contacts' : 'Type Customer Name' : 'Search Clients',
|
|
607
|
+
value: searchText,
|
|
608
|
+
maxLength: 25,
|
|
609
|
+
onChangeText: setSearchText,
|
|
610
|
+
placeholderTextColor: COLORS.gray
|
|
611
|
+
})
|
|
612
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
613
|
+
style: styles._modalSearchMain,
|
|
614
|
+
children: !ShowNewBtn ? /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
615
|
+
style: styles._addContactBtn,
|
|
616
|
+
activeOpacity: 0.8,
|
|
617
|
+
onPress: () => setShowNewBtn(true),
|
|
618
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
619
|
+
style: styles._avatarMain,
|
|
620
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
621
|
+
name: "person-add-outline",
|
|
622
|
+
color: COLORS.primaryColor,
|
|
623
|
+
size: 22
|
|
624
|
+
})
|
|
625
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
626
|
+
style: {
|
|
627
|
+
width: '70%'
|
|
628
|
+
},
|
|
629
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
630
|
+
style: {
|
|
631
|
+
color: COLORS.primaryColor,
|
|
632
|
+
fontFamily: FONT_NORMAL,
|
|
633
|
+
fontSize: 12
|
|
634
|
+
},
|
|
635
|
+
children: "Add New Customer"
|
|
636
|
+
})
|
|
637
|
+
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
638
|
+
name: "chevron-forward",
|
|
639
|
+
color: COLORS.primaryColor,
|
|
640
|
+
size: 22
|
|
641
|
+
})]
|
|
642
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
643
|
+
style: styles._phoneInputMain,
|
|
644
|
+
children: [/*#__PURE__*/_jsx(CountryPhoneInput, {
|
|
645
|
+
contentContainerStyle: {
|
|
646
|
+
width: '100%'
|
|
647
|
+
},
|
|
648
|
+
onChange: text => {
|
|
649
|
+
setPhoneNum(text?.fullNumber);
|
|
650
|
+
}
|
|
651
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
652
|
+
activeOpacity: 0.8,
|
|
653
|
+
onPress: () => {
|
|
654
|
+
if (searchText.trim()) {
|
|
655
|
+
onContinue(searchText, PhoneNum);
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
style: [styles._modalBtn, {
|
|
659
|
+
backgroundColor: searchText?.trim() ? COLORS.primaryColor : COLORS.gray,
|
|
660
|
+
width: '100%',
|
|
661
|
+
justifyContent: 'center',
|
|
662
|
+
paddingVertical: 15,
|
|
663
|
+
alignItems: 'center'
|
|
664
|
+
}],
|
|
665
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
666
|
+
style: {
|
|
667
|
+
color: COLORS.whiteColor,
|
|
668
|
+
fontFamily: FONT_NORMAL,
|
|
669
|
+
fontSize: 12
|
|
670
|
+
},
|
|
671
|
+
children: "CONTINUE"
|
|
672
|
+
})
|
|
673
|
+
})]
|
|
674
|
+
})
|
|
675
|
+
}), !ShowNewBtn ? /*#__PURE__*/_jsx(ScrollView, {
|
|
676
|
+
contentContainerStyle: {
|
|
677
|
+
alignItems: 'center'
|
|
678
|
+
},
|
|
679
|
+
children: filteredClients?.length === 0 ? /*#__PURE__*/_jsx(View, {
|
|
680
|
+
style: {
|
|
681
|
+
height: 300,
|
|
682
|
+
justifyContent: 'center',
|
|
683
|
+
alignItems: 'center'
|
|
684
|
+
},
|
|
685
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
686
|
+
style: {
|
|
687
|
+
textAlign: 'center',
|
|
688
|
+
color: COLORS.blackColor,
|
|
689
|
+
fontFamily: FONT_MEDIUM,
|
|
690
|
+
fontSize: 13
|
|
691
|
+
},
|
|
692
|
+
children: "No Records Found"
|
|
693
|
+
})
|
|
694
|
+
}) : filteredClients.map((item, index) => {
|
|
695
|
+
let amount = item?.total_subamount - item?.total_amount;
|
|
696
|
+
let type = 'none';
|
|
697
|
+
if (amount > 0) {
|
|
698
|
+
type = 'receivable';
|
|
699
|
+
} else if (amount < 0) {
|
|
700
|
+
type = 'payable';
|
|
701
|
+
}
|
|
702
|
+
amount = Math.abs(amount);
|
|
703
|
+
return /*#__PURE__*/_jsx(User, {
|
|
704
|
+
name: item?.name,
|
|
705
|
+
addedAt: formatDateTime(item?.latest_transaction_date || item?.created_at),
|
|
706
|
+
amount: amount,
|
|
707
|
+
type: type,
|
|
708
|
+
avatarColor: item?.type == 0 ? 'red' : 'green',
|
|
709
|
+
clientType: item?.type,
|
|
710
|
+
icon: item?.local_path,
|
|
711
|
+
mainContainer: {
|
|
712
|
+
width: '100%'
|
|
713
|
+
},
|
|
714
|
+
onPress: () => {
|
|
715
|
+
setShowNewBtn(false);
|
|
716
|
+
setChangeModal(false);
|
|
717
|
+
setSelectedParty(item);
|
|
718
|
+
}
|
|
719
|
+
}, index);
|
|
720
|
+
})
|
|
721
|
+
}) : /*#__PURE__*/_jsx(FlatList, {
|
|
722
|
+
data: filteredContacts // 🔹 now using filtered contacts
|
|
723
|
+
,
|
|
724
|
+
keyExtractor: (item, index) => index.toString(),
|
|
725
|
+
contentContainerStyle: {
|
|
726
|
+
paddingBottom: HP(20)
|
|
727
|
+
},
|
|
728
|
+
renderItem: ({
|
|
729
|
+
item
|
|
730
|
+
}) => {
|
|
731
|
+
const rawNumber = item?.phoneNumbers[0]?.number;
|
|
732
|
+
const formattedNumber = formatPhoneNumber(rawNumber)?.toLowerCase();
|
|
733
|
+
const clientInfo = clientPhoneMap.get(formattedNumber);
|
|
734
|
+
const clientId = clientInfo?.id;
|
|
735
|
+
const clientType = clientInfo?.type;
|
|
736
|
+
let typeLabel = '';
|
|
737
|
+
if (clientType === 0) typeLabel = 'Customer';else if (clientType === 1) typeLabel = 'Supplier';
|
|
738
|
+
const highlight = clientType === 0 || clientType === 1;
|
|
739
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
740
|
+
style: [styles._contactsCardMain],
|
|
741
|
+
activeOpacity: 0.8,
|
|
742
|
+
onPress: async () => {
|
|
743
|
+
onContinue(item?.displayName, item?.phoneNumbers[0]?.number);
|
|
744
|
+
},
|
|
745
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
746
|
+
style: styles._avatarMain,
|
|
747
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
748
|
+
style: styles._avatarText,
|
|
749
|
+
children: getAvatar(item?.displayName)
|
|
750
|
+
})
|
|
751
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
752
|
+
style: {
|
|
753
|
+
width: '55%'
|
|
754
|
+
},
|
|
755
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
756
|
+
style: {
|
|
757
|
+
color: COLORS.blackColor,
|
|
758
|
+
fontFamily: FONT_NORMAL,
|
|
759
|
+
fontSize: 13
|
|
760
|
+
},
|
|
761
|
+
children: item?.displayName
|
|
762
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
763
|
+
style: {
|
|
764
|
+
color: COLORS.blackColor,
|
|
765
|
+
fontFamily: FONT_NORMAL,
|
|
766
|
+
fontSize: 12,
|
|
767
|
+
opacity: 0.6
|
|
768
|
+
},
|
|
769
|
+
children: formattedNumber
|
|
770
|
+
})]
|
|
771
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
772
|
+
style: {
|
|
773
|
+
width: '27%',
|
|
774
|
+
height: '100%',
|
|
775
|
+
justifyContent: 'center',
|
|
776
|
+
alignItems: 'flex-end'
|
|
777
|
+
},
|
|
778
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
779
|
+
style: {
|
|
780
|
+
color: COLORS.darkGrey,
|
|
781
|
+
fontFamily: FONT_NORMAL,
|
|
782
|
+
fontSize: 11
|
|
783
|
+
},
|
|
784
|
+
children: typeLabel
|
|
785
|
+
})
|
|
786
|
+
})]
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
})]
|
|
790
|
+
})
|
|
791
|
+
})]
|
|
792
|
+
});
|
|
793
|
+
};
|
|
794
|
+
export default SaleItemDetail;
|
|
795
|
+
const styles = StyleSheet.create({
|
|
796
|
+
container: {
|
|
797
|
+
flex: 1,
|
|
798
|
+
backgroundColor: '#F4F4F4'
|
|
799
|
+
},
|
|
800
|
+
header: {
|
|
801
|
+
flexDirection: 'row',
|
|
802
|
+
alignItems: 'center',
|
|
803
|
+
backgroundColor: '#F4F4F4',
|
|
804
|
+
borderBottomWidth: 0.5,
|
|
805
|
+
borderBottomColor: '#DDD',
|
|
806
|
+
paddingVertical: 10
|
|
807
|
+
},
|
|
808
|
+
backButton: {
|
|
809
|
+
width: 50,
|
|
810
|
+
alignItems: 'center'
|
|
811
|
+
},
|
|
812
|
+
headerGroup: {
|
|
813
|
+
flexDirection: 'row',
|
|
814
|
+
flex: 1,
|
|
815
|
+
justifyContent: 'space-between',
|
|
816
|
+
alignItems: 'center'
|
|
817
|
+
},
|
|
818
|
+
headerItem: {
|
|
819
|
+
flex: 1,
|
|
820
|
+
alignItems: 'center',
|
|
821
|
+
justifyContent: 'center'
|
|
822
|
+
},
|
|
823
|
+
headerDivider: {
|
|
824
|
+
borderLeftWidth: 1,
|
|
825
|
+
borderLeftColor: '#DDD'
|
|
826
|
+
},
|
|
827
|
+
totalContainer: {
|
|
828
|
+
backgroundColor: '#fff',
|
|
829
|
+
paddingHorizontal: 16,
|
|
830
|
+
paddingVertical: 14
|
|
831
|
+
},
|
|
832
|
+
totalRow: {
|
|
833
|
+
flexDirection: 'row',
|
|
834
|
+
justifyContent: 'space-between',
|
|
835
|
+
marginBottom: 6
|
|
836
|
+
},
|
|
837
|
+
totalLabel: {
|
|
838
|
+
fontSize: 15,
|
|
839
|
+
color: '#555',
|
|
840
|
+
fontFamily: FONT_NORMAL
|
|
841
|
+
},
|
|
842
|
+
totalValue: {
|
|
843
|
+
fontSize: 15,
|
|
844
|
+
color: '#555'
|
|
845
|
+
},
|
|
846
|
+
totalPrice: {
|
|
847
|
+
fontSize: 22,
|
|
848
|
+
color: COLORS.blackColor,
|
|
849
|
+
fontFamily: FONT_BOLD
|
|
850
|
+
},
|
|
851
|
+
payButton: {
|
|
852
|
+
marginTop: 10
|
|
853
|
+
},
|
|
854
|
+
payGradient: {
|
|
855
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
856
|
+
alignItems: 'center',
|
|
857
|
+
paddingVertical: 12
|
|
858
|
+
},
|
|
859
|
+
payText: {
|
|
860
|
+
color: '#fff',
|
|
861
|
+
fontFamily: FONT_NORMAL,
|
|
862
|
+
fontSize: 12
|
|
863
|
+
},
|
|
864
|
+
listHeader: {
|
|
865
|
+
backgroundColor: '#E0E0E0',
|
|
866
|
+
flexDirection: 'row',
|
|
867
|
+
justifyContent: 'space-between',
|
|
868
|
+
paddingHorizontal: 12,
|
|
869
|
+
paddingVertical: 8
|
|
870
|
+
},
|
|
871
|
+
listHeaderText: {
|
|
872
|
+
fontSize: 13,
|
|
873
|
+
color: COLORS.blackColor,
|
|
874
|
+
fontFamily: FONT_NORMAL
|
|
875
|
+
},
|
|
876
|
+
listHeaderValue: {
|
|
877
|
+
fontSize: 13,
|
|
878
|
+
color: COLORS.blackColor,
|
|
879
|
+
fontFamily: FONT_NORMAL
|
|
880
|
+
},
|
|
881
|
+
itemRow: {
|
|
882
|
+
flexDirection: 'row',
|
|
883
|
+
alignItems: 'center',
|
|
884
|
+
backgroundColor: '#fff',
|
|
885
|
+
// marginHorizontal: 10,
|
|
886
|
+
width: '100%',
|
|
887
|
+
justifyContent: 'center',
|
|
888
|
+
alignSelf: 'center',
|
|
889
|
+
marginTop: 8,
|
|
890
|
+
// borderRadius: 8,
|
|
891
|
+
padding: 10,
|
|
892
|
+
elevation: 1
|
|
893
|
+
},
|
|
894
|
+
imageBox: {
|
|
895
|
+
width: 50,
|
|
896
|
+
height: 50,
|
|
897
|
+
borderRadius: 8,
|
|
898
|
+
backgroundColor: '#E0E0E0',
|
|
899
|
+
alignItems: 'center',
|
|
900
|
+
justifyContent: 'center',
|
|
901
|
+
overflow: 'hidden'
|
|
902
|
+
},
|
|
903
|
+
textContainer: {
|
|
904
|
+
flex: 1,
|
|
905
|
+
marginHorizontal: 12
|
|
906
|
+
},
|
|
907
|
+
itemName: {
|
|
908
|
+
fontSize: 16,
|
|
909
|
+
fontWeight: '500',
|
|
910
|
+
color: COLORS.blackColor
|
|
911
|
+
},
|
|
912
|
+
itemPrice: {
|
|
913
|
+
fontSize: 14,
|
|
914
|
+
color: '#757575',
|
|
915
|
+
marginTop: 2
|
|
916
|
+
},
|
|
917
|
+
qtyContainer: {
|
|
918
|
+
flexDirection: 'row',
|
|
919
|
+
alignItems: 'center',
|
|
920
|
+
borderWidth: 1.2,
|
|
921
|
+
borderColor: COLORS.primaryColor,
|
|
922
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
923
|
+
paddingHorizontal: 10,
|
|
924
|
+
paddingVertical: 4
|
|
925
|
+
},
|
|
926
|
+
qtyButton: {
|
|
927
|
+
paddingHorizontal: 6
|
|
928
|
+
},
|
|
929
|
+
qtyText: {
|
|
930
|
+
fontSize: 12,
|
|
931
|
+
color: COLORS.primaryColor,
|
|
932
|
+
fontFamily: FONT_NORMAL,
|
|
933
|
+
marginHorizontal: 10
|
|
934
|
+
},
|
|
935
|
+
totalButton: {
|
|
936
|
+
borderWidth: 1,
|
|
937
|
+
marginBottom: 10,
|
|
938
|
+
flexDirection: 'row',
|
|
939
|
+
gap: 10,
|
|
940
|
+
borderColor: COLORS.primaryColor,
|
|
941
|
+
backgroundColor: COLORS.primaryColor,
|
|
942
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
943
|
+
width: '100%',
|
|
944
|
+
height: 50,
|
|
945
|
+
alignItems: 'center',
|
|
946
|
+
justifyContent: 'center'
|
|
947
|
+
},
|
|
948
|
+
clearText: {
|
|
949
|
+
color: COLORS.whiteColor,
|
|
950
|
+
fontFamily: FONT_NORMAL,
|
|
951
|
+
fontSize: 14
|
|
952
|
+
},
|
|
953
|
+
bottomBar: {
|
|
954
|
+
position: 'absolute',
|
|
955
|
+
left: 0,
|
|
956
|
+
right: 0,
|
|
957
|
+
backgroundColor: '#fff',
|
|
958
|
+
borderTopLeftRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
959
|
+
borderTopRightRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
960
|
+
alignItems: 'center',
|
|
961
|
+
justifyContent: 'center',
|
|
962
|
+
paddingVertical: 10,
|
|
963
|
+
elevation: 10
|
|
964
|
+
},
|
|
965
|
+
headerText: {
|
|
966
|
+
fontSize: 11,
|
|
967
|
+
color: COLORS.primaryColor,
|
|
968
|
+
fontFamily: FONT_NORMAL
|
|
969
|
+
},
|
|
970
|
+
_textInputParty: {
|
|
971
|
+
width: '100%',
|
|
972
|
+
height: 60,
|
|
973
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
974
|
+
borderColor: COLORS.gray,
|
|
975
|
+
borderWidth: 1,
|
|
976
|
+
flexDirection: 'row',
|
|
977
|
+
justifyContent: 'space-between',
|
|
978
|
+
alignItems: 'center',
|
|
979
|
+
paddingHorizontal: 12,
|
|
980
|
+
gap: 15
|
|
981
|
+
},
|
|
982
|
+
_changeModalMain: {
|
|
983
|
+
width: WP(90),
|
|
984
|
+
maxHeight: HP(75),
|
|
985
|
+
backgroundColor: COLORS.whiteColor
|
|
986
|
+
},
|
|
987
|
+
_changeModalHeader: {
|
|
988
|
+
width: '100%',
|
|
989
|
+
height: HP(6),
|
|
990
|
+
backgroundColor: COLORS.primaryColor,
|
|
991
|
+
justifyContent: 'center',
|
|
992
|
+
alignItems: 'center'
|
|
993
|
+
},
|
|
994
|
+
_changeModalHeaderTxt: {
|
|
995
|
+
color: COLORS.whiteColor,
|
|
996
|
+
fontFamily: FONT_MEDIUM,
|
|
997
|
+
fontSize: 14
|
|
998
|
+
},
|
|
999
|
+
_modalSearchMain: {
|
|
1000
|
+
width: '100%',
|
|
1001
|
+
justifyContent: 'center',
|
|
1002
|
+
alignItems: 'center',
|
|
1003
|
+
marginVertical: 7.5
|
|
1004
|
+
},
|
|
1005
|
+
_modalSearch: {
|
|
1006
|
+
width: '92%',
|
|
1007
|
+
height: 50,
|
|
1008
|
+
borderWidth: 1,
|
|
1009
|
+
borderColor: COLORS.gray,
|
|
1010
|
+
borderRadius: TEXT_SIZES.BORDER_RADIUS,
|
|
1011
|
+
paddingLeft: 10,
|
|
1012
|
+
fontFamily: FONT_NORMAL,
|
|
1013
|
+
fontSize: 13,
|
|
1014
|
+
color: COLORS.blackColor
|
|
1015
|
+
},
|
|
1016
|
+
_avatarText: {
|
|
1017
|
+
fontFamily: FONT_NORMAL,
|
|
1018
|
+
fontSize: 16,
|
|
1019
|
+
color: COLORS.primaryColor
|
|
1020
|
+
},
|
|
1021
|
+
_addContactBtn: {
|
|
1022
|
+
width: '92%',
|
|
1023
|
+
height: 50,
|
|
1024
|
+
// backgroundColor: "red",
|
|
1025
|
+
flexDirection: 'row',
|
|
1026
|
+
justifyContent: 'space-between',
|
|
1027
|
+
alignItems: 'center'
|
|
1028
|
+
},
|
|
1029
|
+
_contactsCardMain: {
|
|
1030
|
+
width: '92%',
|
|
1031
|
+
height: 50,
|
|
1032
|
+
// backgroundColor: "red",
|
|
1033
|
+
marginVertical: 10,
|
|
1034
|
+
flexDirection: 'row',
|
|
1035
|
+
justifyContent: 'space-between',
|
|
1036
|
+
alignItems: 'center',
|
|
1037
|
+
alignSelf: 'center'
|
|
1038
|
+
},
|
|
1039
|
+
_phoneInputMain: {
|
|
1040
|
+
width: '92%',
|
|
1041
|
+
// height:60,
|
|
1042
|
+
// backgroundColor:"red",
|
|
1043
|
+
alignItems: 'center',
|
|
1044
|
+
gap: 15
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
//# sourceMappingURL=SaleItemDetail.js.map
|