Skip to content

Commit

Permalink
fix(ux): unhide paymentType condition
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayitzme committed Nov 17, 2023
1 parent 67f9232 commit 74fcbe6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion models/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ export function getMakePaymentAction(fyo: Fyo): Action {
await router.push(currentRoute);
});

const hideFields = ['party', 'paymentType', 'for'];
const hideFields = ['party', 'for'];

if (!fyo.singles.AccountingSettings?.enableInvoiceReturns) {
hideFields.push('paymentType');
}

if (doc.schemaName === ModelNameEnum.SalesInvoice) {
hideFields.push('account');
} else {
Expand Down

0 comments on commit 74fcbe6

Please sign in to comment.