mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
Reset filters in Item Price report on each route
This commit is contained in:
@@ -29,10 +29,7 @@ cur_frm.cscript.make_dashboard = function() {
|
|||||||
|
|
||||||
cur_frm.cscript.edit_prices_button = function() {
|
cur_frm.cscript.edit_prices_button = function() {
|
||||||
cur_frm.add_custom_button("Add / Edit Prices", function() {
|
cur_frm.add_custom_button("Add / Edit Prices", function() {
|
||||||
wn.route_options = {
|
wn.set_route("Report", "Item Price", {"item_code": cur_frm.doc.name});
|
||||||
"item_code": cur_frm.doc.name
|
|
||||||
};
|
|
||||||
wn.set_route("Report", "Item Price");
|
|
||||||
}, "icon-money");
|
}, "icon-money");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user