mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
fix(ux): unhide paymentType condition
This commit is contained in:
parent
67f9232160
commit
74fcbe6dfd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user