mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 07:29:22 +00:00
Merge pull request #30151 from frappe/mergify/bp/version-13-hotfix/pr-30145
fix(psoa): add company filter to account (backport #30145)
This commit is contained in:
@@ -51,6 +51,13 @@ frappe.ui.form.on('Process Statement Of Accounts', {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
frm.set_query("account", function() {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
'company': frm.doc.company
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
if(frm.doc.__islocal){
|
if(frm.doc.__islocal){
|
||||||
frm.set_value('from_date', frappe.datetime.add_months(frappe.datetime.get_today(), -1));
|
frm.set_value('from_date', frappe.datetime.add_months(frappe.datetime.get_today(), -1));
|
||||||
frm.set_value('to_date', frappe.datetime.get_today());
|
frm.set_value('to_date', frappe.datetime.get_today());
|
||||||
|
|||||||
Reference in New Issue
Block a user