diff --git a/src/components/POS/ItemsGrid.vue b/src/components/POS/Classic/ItemsGrid.vue similarity index 74% rename from src/components/POS/ItemsGrid.vue rename to src/components/POS/Classic/ItemsGrid.vue index 534efd29..2da0d0b7 100644 --- a/src/components/POS/ItemsGrid.vue +++ b/src/components/POS/Classic/ItemsGrid.vue @@ -3,18 +3,28 @@ class=" flex flex-col gap-4 - p-4 + p-2 items-center - mt-4 px-2 rounded-t-md text-black w-full + overflow-y-auto + custom-scroll custom-scroll-thumb2 " - style="height: 80vh" + style="height: 83vh" > -
+
-
-
+
+
+
import { defineComponent } from 'vue'; import { fyo } from 'src/initFyo'; -import { POSItem } from './types'; +import { POSItem } from '../types'; export default defineComponent({ name: 'ItemsGrid', diff --git a/src/components/POS/ItemsTable.vue b/src/components/POS/Classic/ItemsTable.vue similarity index 92% rename from src/components/POS/ItemsTable.vue rename to src/components/POS/Classic/ItemsTable.vue index 16bddb6f..046fcfcc 100644 --- a/src/components/POS/ItemsTable.vue +++ b/src/components/POS/Classic/ItemsTable.vue @@ -29,7 +29,10 @@
-
+
diff --git a/src/components/POS/Modern/ModernPOSItemsTable.vue b/src/components/POS/Modern/ModernPOSItemsTable.vue new file mode 100644 index 00000000..060ead45 --- /dev/null +++ b/src/components/POS/Modern/ModernPOSItemsTable.vue @@ -0,0 +1,202 @@ + + + diff --git a/src/pages/POS/ClassicPOS.vue b/src/pages/POS/ClassicPOS.vue index c7592935..b887ee39 100644 --- a/src/pages/POS/ClassicPOS.vue +++ b/src/pages/POS/ClassicPOS.vue @@ -514,7 +514,6 @@ import FloatingLabelFloatInput from 'src/components/POS/FloatingLabelFloatInput. import ItemsTable from 'src/components/POS/Classic/ItemsTable.vue'; import Link from 'src/components/Controls/Link.vue'; import OpenPOSShiftModal from './OpenPOSShiftModal.vue'; -import PageHeader from 'src/components/PageHeader.vue'; import PaymentModal from './PaymentModal.vue'; import SelectedItemTable from 'src/components/POS/Classic/SelectedItemTable.vue'; import { computed, defineComponent } from 'vue'; @@ -559,7 +558,6 @@ import CouponCodeModal from './CouponCodeModal.vue'; import { AppliedCouponCodes } from 'models/baseModels/AppliedCouponCodes/AppliedCouponCodes'; import MultiLabelLink from 'src/components/Controls/MultiLabelLink.vue'; - export default defineComponent({ name: 'ClassicPOS', components: { @@ -573,7 +571,6 @@ export default defineComponent({ MultiLabelLink, AlertModal, OpenPOSShiftModal, - PageHeader, PaymentModal, LoyaltyProgramModal, SavedInvoiceModal, @@ -1054,8 +1051,6 @@ export default defineComponent({ } }, toggleModal(modal: ModalName, value?: boolean) { - console.log("toggleModal"); - if (value) { return (this[`open${modal}Modal`] = value); } diff --git a/src/pages/POS/ModernPOS.vue b/src/pages/POS/ModernPOS.vue index 9822f590..962d352e 100644 --- a/src/pages/POS/ModernPOS.vue +++ b/src/pages/POS/ModernPOS.vue @@ -258,249 +258,249 @@
-
-
- +
+ +
+ + {{ tableView ? 'Grid View' : 'List View' }} + +
+ +
+
+ + -
- - {{ tableView ? 'Grid View' : 'List View' }} - +
-
-
- - - -
+ + Sales Invoice List + +
- +
+ - Sales Invoice List - + +
-
-
- - - -
+ + Loyalty Program + +
- +
+ - Loyalty Program - -
- -
-
- - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - -
- - Coupon Code - -
- {{ appliedCouponsCount }} -
+ +
-
+ + Coupon Code + +
+ {{ appliedCouponsCount }} +
+
+
@@ -513,7 +513,6 @@ import FloatingLabelCurrencyInput from 'src/components/POS/FloatingLabelCurrency import FloatingLabelFloatInput from 'src/components/POS/FloatingLabelFloatInput.vue'; import Link from 'src/components/Controls/Link.vue'; import OpenPOSShiftModal from './OpenPOSShiftModal.vue'; -import PageHeader from 'src/components/PageHeader.vue'; import PaymentModal from './PaymentModal.vue'; import { computed, defineComponent } from 'vue'; import { fyo } from 'src/initFyo'; @@ -572,7 +571,6 @@ export default defineComponent({ Link, AlertModal, OpenPOSShiftModal, - PageHeader, PaymentModal, LoyaltyProgramModal, SavedInvoiceModal, @@ -580,7 +578,7 @@ export default defineComponent({ ModernPOSSelectedItemTable, Barcode, KeyboardModal, - MultiLabelLink + MultiLabelLink, }, provide() { return {