2
0
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:
akshayitzme 2023-11-17 12:12:35 +05:30
parent 67f9232160
commit 74fcbe6dfd

View File

@ -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 {