fix: Label and dependes on fixes in Bank Account (#19245)

This commit is contained in:
Deepesh Garg 2019-10-04 16:22:00 +05:30 committed by Nabin Hait
parent ba2faecdc7
commit 41a6548acb
2 changed files with 254 additions and 1019 deletions

View File

@ -20,7 +20,7 @@ frappe.ui.form.on('Bank Account', {
},
refresh: function(frm) {
frappe.dynamic_link = { doc: frm.doc, fieldname: 'name', doctype: 'Bank Account' }
frm.toggle_display(['address_html','contact_html'], !frm.doc.__islocal);
if (frm.doc.__islocal) {
@ -37,5 +37,9 @@ frappe.ui.form.on('Bank Account', {
});
});
}
},
is_company_account: function(frm) {
frm.set_df_property('account', 'reqd', frm.doc.is_company_account);
}
});

File diff suppressed because it is too large Load Diff