From b3dbd81f8970213d533e19370a29d001bb8b48fa Mon Sep 17 00:00:00 2001 From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:50:22 +0530 Subject: [PATCH] fix: resolved linting issues --- src/pages/POS/CouponCodeModal.vue | 2 +- src/pages/POS/POS.vue | 18 +++++++++--------- src/pages/POS/PriceListModal.vue | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pages/POS/CouponCodeModal.vue b/src/pages/POS/CouponCodeModal.vue index 527eeae5..f2f67f3b 100644 --- a/src/pages/POS/CouponCodeModal.vue +++ b/src/pages/POS/CouponCodeModal.vue @@ -198,7 +198,7 @@ export default defineComponent({ }); } }, - setCouponCode() { + setCouponCode() { this.$emit('toggleModal', 'CouponCode'); }, async removeAppliedCoupon(coupon: AppliedCouponCodes) { diff --git a/src/pages/POS/POS.vue b/src/pages/POS/POS.vue index 89727ef1..27e56f8b 100644 --- a/src/pages/POS/POS.vue +++ b/src/pages/POS/POS.vue @@ -286,18 +286,18 @@ export default defineComponent({ }, setShortcuts() { this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyS'], async () => { - this.routeToSinvList(); + await this.routeToSinvList(); }); - this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyV'], async () => { + this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyV'], () => { this.toggleView(); }); - this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyP'], async () => { + this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyP'], () => { this.toggleModal('PriceList'); }); - this.shortcuts?.pmodShift.set(COMPONENT_NAME, ['KeyH'], async () => { + this.shortcuts?.pmodShift.set(COMPONENT_NAME, ['KeyH'], () => { this.toggleModal('SavedInvoice'); }); @@ -305,11 +305,11 @@ export default defineComponent({ const modalStatus = this.isModalOpen(); if (!modalStatus) { - this.clearValues(); + await this.clearValues(); } }); - this.shortcuts?.pmodShift.set(COMPONENT_NAME, ['KeyP'], async () => { + this.shortcuts?.pmodShift.set(COMPONENT_NAME, ['KeyP'], () => { if (!this.disablePayButton) { this.toggleModal('Payment'); } @@ -319,11 +319,11 @@ export default defineComponent({ const modalStatus = this.isModalOpen(); if (!modalStatus && this.sinvDoc.party && this.sinvDoc.items?.length) { - this.saveOrder(); + await this.saveOrder(); } }); - this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyL'], async () => { + this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyL'], () => { if ( this.fyo.singles.AccountingSettings?.enablePriceList && this.loyaltyPoints && @@ -334,7 +334,7 @@ export default defineComponent({ } }); - this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyC'], async () => { + this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyC'], () => { if ( this.fyo.singles.AccountingSettings?.enableCouponCode && this.sinvDoc?.party && diff --git a/src/pages/POS/PriceListModal.vue b/src/pages/POS/PriceListModal.vue index 95a9a40c..f45cdbfb 100644 --- a/src/pages/POS/PriceListModal.vue +++ b/src/pages/POS/PriceListModal.vue @@ -105,7 +105,7 @@ export default defineComponent({ cancelPriceList() { this.$emit('toggleModal', 'PriceList'); }, - async setPriceList() { + setPriceList() { this.$emit('toggleModal', 'PriceList'); }, },