commit | fc42041f8fff7bd9f3b374992565bf3eccfaf43d | [log] [tgz] |
---|---|---|
author | Saqib Ansari <nextchamp.saqib@gmail.com> | Wed Mar 09 18:01:10 2022 +0530 |
committer | Saqib Ansari <nextchamp.saqib@gmail.com> | Wed Mar 09 18:04:35 2022 +0530 |
tree | 6369f516acd7aad0aa780a85b6acf96a393b0f80 | |
parent | 23ce6fb8de100e8261ab48251b27323970733524 [diff] |
fix(psoa): add company filter to account
diff --git a/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.js b/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.js index 088c190..29f2e98 100644 --- a/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.js +++ b/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.js
@@ -51,6 +51,13 @@ } } }); + frm.set_query("account", function() { + return { + filters: { + 'company': frm.doc.company + } + }; + }); if(frm.doc.__islocal){ frm.set_value('from_date', frappe.datetime.add_months(frappe.datetime.get_today(), -1)); frm.set_value('to_date', frappe.datetime.get_today());