Merge pull request #30145 from nextchamp-saqib/add-filter-to-psoa
fix(psoa): add company filter to account
This commit is contained in:
commit
45c1d83ea1
@ -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());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user