code improvement

This commit is contained in:
hello@openetech.com 2019-10-19 12:00:25 +05:30 committed by Rohit Waghchaure
parent c8e64235c0
commit 90f170c376

View File

@ -9,7 +9,8 @@ frappe.ui.form.on('Import Supplier Invoice', {
window.setTimeout(title => frm.dashboard.hide_progress(title), 1500, data.title);
}
});
},
setup: function(frm) {
frm.set_query("tax_account", function() {
return {
filters: { account_type: 'Tax' }