fix: Change button label in Item (#23410)

This commit is contained in:
Michelle Alva 2020-09-23 15:36:07 +05:30 committed by GitHub
parent 1831893b77
commit 879a8ef26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,19 +26,19 @@ frappe.ui.form.on("Item", {
refresh: function(frm) {
if (frm.doc.is_stock_item) {
frm.add_custom_button(__("Balance"), function() {
frm.add_custom_button(__("Stock Balance"), function() {
frappe.route_options = {
"item_code": frm.doc.name
}
frappe.set_route("query-report", "Stock Balance");
}, __("View"));
frm.add_custom_button(__("Ledger"), function() {
frm.add_custom_button(__("Stock Ledger"), function() {
frappe.route_options = {
"item_code": frm.doc.name
}
frappe.set_route("query-report", "Stock Ledger");
}, __("View"));
frm.add_custom_button(__("Projected"), function() {
frm.add_custom_button(__("Stock Projected Qty"), function() {
frappe.route_options = {
"item_code": frm.doc.name
}