feat: load company bank account

This commit is contained in:
Mangesh-Khairnar 2019-05-14 18:30:19 +05:30
parent d9140dc772
commit 557419a745

View File

@ -17,6 +17,13 @@ frappe.ui.form.on("Supplier", {
}
}
});
frm.set_query("default_bank_account", function() {
return {
filters: {
"is_company_account":1
}
}
});
},
refresh: function (frm) {
frappe.dynamic_link = { doc: frm.doc, fieldname: 'name', doctype: 'Supplier' }