Skip to content

Commit

Permalink
fix: resolved linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleKSaju committed Dec 5, 2024
1 parent 01f6809 commit d39a804
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/pages/POS/CouponCodeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default defineComponent({
});
}
},
setCouponCode() {
setCouponCode() {
this.$emit('toggleModal', 'CouponCode');
},
async removeAppliedCoupon(coupon: AppliedCouponCodes) {
Expand Down
18 changes: 9 additions & 9 deletions src/pages/POS/POS.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,30 +284,30 @@ 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');
});
this.shortcuts?.pmodShift.set(COMPONENT_NAME, ['Backspace'], async () => {
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');
}
Expand All @@ -317,11 +317,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 &&
Expand All @@ -332,7 +332,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 &&
Expand Down
2 changes: 1 addition & 1 deletion src/pages/POS/PriceListModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default defineComponent({
cancelPriceList() {
this.$emit('toggleModal', 'PriceList');
},
async setPriceList() {
setPriceList() {
this.$emit('toggleModal', 'PriceList');
},
},
Expand Down

0 comments on commit d39a804

Please sign in to comment.