mirror of
https://github.com/frappe/books.git
synced 2025-01-02 22:50:14 +00:00
fix: resolved linting issues
This commit is contained in:
parent
b6ebfd9a51
commit
b3dbd81f89
@ -198,7 +198,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setCouponCode() {
|
setCouponCode() {
|
||||||
this.$emit('toggleModal', 'CouponCode');
|
this.$emit('toggleModal', 'CouponCode');
|
||||||
},
|
},
|
||||||
async removeAppliedCoupon(coupon: AppliedCouponCodes) {
|
async removeAppliedCoupon(coupon: AppliedCouponCodes) {
|
||||||
|
@ -286,18 +286,18 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
setShortcuts() {
|
setShortcuts() {
|
||||||
this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyS'], async () => {
|
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.toggleView();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyP'], async () => {
|
this.shortcuts?.shift.set(COMPONENT_NAME, ['KeyP'], () => {
|
||||||
this.toggleModal('PriceList');
|
this.toggleModal('PriceList');
|
||||||
});
|
});
|
||||||
|
|
||||||
this.shortcuts?.pmodShift.set(COMPONENT_NAME, ['KeyH'], async () => {
|
this.shortcuts?.pmodShift.set(COMPONENT_NAME, ['KeyH'], () => {
|
||||||
this.toggleModal('SavedInvoice');
|
this.toggleModal('SavedInvoice');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -305,11 +305,11 @@ export default defineComponent({
|
|||||||
const modalStatus = this.isModalOpen();
|
const modalStatus = this.isModalOpen();
|
||||||
|
|
||||||
if (!modalStatus) {
|
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) {
|
if (!this.disablePayButton) {
|
||||||
this.toggleModal('Payment');
|
this.toggleModal('Payment');
|
||||||
}
|
}
|
||||||
@ -319,11 +319,11 @@ export default defineComponent({
|
|||||||
const modalStatus = this.isModalOpen();
|
const modalStatus = this.isModalOpen();
|
||||||
|
|
||||||
if (!modalStatus && this.sinvDoc.party && this.sinvDoc.items?.length) {
|
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 (
|
if (
|
||||||
this.fyo.singles.AccountingSettings?.enablePriceList &&
|
this.fyo.singles.AccountingSettings?.enablePriceList &&
|
||||||
this.loyaltyPoints &&
|
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 (
|
if (
|
||||||
this.fyo.singles.AccountingSettings?.enableCouponCode &&
|
this.fyo.singles.AccountingSettings?.enableCouponCode &&
|
||||||
this.sinvDoc?.party &&
|
this.sinvDoc?.party &&
|
||||||
|
@ -105,7 +105,7 @@ export default defineComponent({
|
|||||||
cancelPriceList() {
|
cancelPriceList() {
|
||||||
this.$emit('toggleModal', 'PriceList');
|
this.$emit('toggleModal', 'PriceList');
|
||||||
},
|
},
|
||||||
async setPriceList() {
|
setPriceList() {
|
||||||
this.$emit('toggleModal', 'PriceList');
|
this.$emit('toggleModal', 'PriceList');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user