Skip to content

Commit

Permalink
fix(ux): show enabled features
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Jan 9, 2023
1 parent 4aa9245 commit f69723c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/pages/Settings/TabGeneral.vue
Original file line number Diff line number Diff line change
@@ -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');
}

0 comments on commit f69723c

Please sign in to comment.