2
0
mirror of https://github.com/frappe/books.git synced 2024-09-19 19:19:02 +00:00

fix(ux): show enabled features

This commit is contained in:
18alantom 2023-01-09 12:39:02 +05:30
parent 4aa92457c7
commit f69723ca31

View File

@ -28,16 +28,10 @@ export default defineComponent({
'fiscalYearEnd',
'writeOffAccount',
'roundOffAccount',
'enableDiscounting',
'enableInventory',
];
if (!this.doc?.enableDiscounting) {
fields.push('enableDiscounting');
}
if (!this.doc?.enableInventory) {
fields.push('enableInventory');
}
if (this.doc?.enableDiscounting) {
fields.push('discountAccount');
}