diff --git a/src/components/POS/Modern/ModernPOSSelectedItemTable.vue b/src/components/POS/Modern/ModernPOSSelectedItemTable.vue index 1de6fd18..1e1966fb 100644 --- a/src/components/POS/Modern/ModernPOSSelectedItemTable.vue +++ b/src/components/POS/Modern/ModernPOSSelectedItemTable.vue @@ -85,6 +85,7 @@ export default defineComponent({ isExapanded: false, }; }, + emits: ['toggleModal'], computed: { ratio() { return [0.1, 0.8, 0.4, 0.8, 0.8, 0.3]; @@ -138,7 +139,7 @@ export default defineComponent({ }, methods: { handleToggleModal(modal: string) { - this.$emit('toggle-modal', modal); + this.$emit('toggleModal', modal); }, async runSinvFormulas() { await this.sinvDoc.runFormulas(); diff --git a/src/pages/POS/ClassicPOS.vue b/src/pages/POS/ClassicPOS.vue index d36d2e07..4449e3e3 100644 --- a/src/pages/POS/ClassicPOS.vue +++ b/src/pages/POS/ClassicPOS.vue @@ -107,7 +107,15 @@ />
- +
@@ -395,6 +403,9 @@ export default defineComponent({ setTransferRefNo(ref: string) { this.transferRefNo = ref; }, + emitRouteToSinvList() { + this.$emit('routeToSinvList'); + }, toggleView() { this.tableView = !this.tableView; }, diff --git a/src/pages/POS/ModernPOS.vue b/src/pages/POS/ModernPOS.vue index 54383192..52441131 100644 --- a/src/pages/POS/ModernPOS.vue +++ b/src/pages/POS/ModernPOS.vue @@ -257,10 +257,10 @@
, default: () => ({}), }, + sinvDoc: { + type: Object as PropType, + default: undefined, + }, itemQuantityMap: { type: Object as PropType, default: () => ({}),