mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 19:35:09 +00:00
Merge pull request #50967 from Jatin3128/gh_49740
This commit is contained in:
@@ -51,11 +51,11 @@ frappe.listview_settings["Purchase Order"] = {
|
||||
onload: function (listview) {
|
||||
var method = "erpnext.buying.doctype.purchase_order.purchase_order.close_or_unclose_purchase_orders";
|
||||
|
||||
listview.page.add_menu_item(__("Close"), function () {
|
||||
listview.page.add_action_item(__("Close"), function () {
|
||||
listview.call_for_selected_items(method, { status: "Closed" });
|
||||
});
|
||||
|
||||
listview.page.add_menu_item(__("Reopen"), function () {
|
||||
listview.page.add_action_item(__("Reopen"), function () {
|
||||
listview.call_for_selected_items(method, { status: "Submitted" });
|
||||
});
|
||||
|
||||
|
||||
@@ -63,11 +63,11 @@ frappe.listview_settings["Sales Order"] = {
|
||||
onload: function (listview) {
|
||||
var method = "erpnext.selling.doctype.sales_order.sales_order.close_or_unclose_sales_orders";
|
||||
|
||||
listview.page.add_menu_item(__("Close"), function () {
|
||||
listview.page.add_action_item(__("Close"), function () {
|
||||
listview.call_for_selected_items(method, { status: "Closed" });
|
||||
});
|
||||
|
||||
listview.page.add_menu_item(__("Re-open"), function () {
|
||||
listview.page.add_action_item(__("Re-open"), function () {
|
||||
listview.call_for_selected_items(method, { status: "Submitted" });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user