mirror of
https://github.com/frappe/books.git
synced 2024-12-31 22:11:48 +00:00
fix: enable POS only if discounts enabled
This commit is contained in:
parent
a04e2af555
commit
b072253755
@ -46,7 +46,10 @@ export class InventorySettings extends Doc {
|
|||||||
return !!this.enableStockReturns;
|
return !!this.enableStockReturns;
|
||||||
},
|
},
|
||||||
enablePointOfSale: () => {
|
enablePointOfSale: () => {
|
||||||
return !!this.fyo.singles.POSShift?.isShiftOpen;
|
return (
|
||||||
|
!!this.fyo.singles.POSShift?.isShiftOpen &&
|
||||||
|
!!this.fyo.singles.AccountingSettings?.enableDiscounting
|
||||||
|
);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user