From 0dc5894499999167407eebcad17cc0d721ee57dc Mon Sep 17 00:00:00 2001 From: pandiyan Date: Thu, 23 Jul 2026 21:29:36 +0530 Subject: [PATCH 1/3] fix: map pick list customer to delivery note when no sales order backport of #57412 --- erpnext/stock/doctype/pick_list/pick_list.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/stock/doctype/pick_list/pick_list.py b/erpnext/stock/doctype/pick_list/pick_list.py index 06e190c30f7..7a2dd32291a 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.py +++ b/erpnext/stock/doctype/pick_list/pick_list.py @@ -1339,6 +1339,9 @@ def create_dn_wo_so(pick_list, delivery_note=None): delivery_note.company = pick_list.company + if not delivery_note.customer: + delivery_note.customer = pick_list.customer + item_table_mapper_without_so = { "doctype": "Delivery Note Item", "field_map": { From 348555b127cb1f4afb6095c0fbc216630fb56c6d Mon Sep 17 00:00:00 2001 From: pandiyan Date: Fri, 24 Jul 2026 12:22:08 +0530 Subject: [PATCH 2/3] fix: respect user permissions in party dashboard company list use frappe.get_list instead of frappe.get_all in get_dashboard_info so the company list honors user permissions. previously, a party with invoices across multiple companies would raise "User don't have permissions to select/read this account" for users restricted to a subset of companies, since get_party_account was called for companies the user could not access. fixes frappe/erpnext#57428 (cherry picked from commit 903c87bcaa705ca997e28ec53132e308502ac6eb) --- erpnext/accounts/party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index 2edba2e5c5d..ca66235cff3 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -853,7 +853,7 @@ def get_dashboard_info(party_type, party, loyalty_program=None): doctype = "Sales Invoice" if party_type == "Customer" else "Purchase Invoice" - companies = frappe.get_all( + companies = frappe.get_list( doctype, filters={"docstatus": 1, party_type.lower(): party}, distinct=1, fields=["company"] ) From 4e8f5de5cbaf7deab98b5a8b642c04fb6b7f412c Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Sat, 25 Jul 2026 00:21:06 +0530 Subject: [PATCH 3/3] fix: enable the 'Include Zero Stock Items' filter by default to show zero-stock items in the Stock Balance report (#57458) --- erpnext/stock/report/stock_balance/stock_balance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/report/stock_balance/stock_balance.js b/erpnext/stock/report/stock_balance/stock_balance.js index fa3b977a121..89f01b9862a 100644 --- a/erpnext/stock/report/stock_balance/stock_balance.js +++ b/erpnext/stock/report/stock_balance/stock_balance.js @@ -130,7 +130,7 @@ frappe.query_reports["Stock Balance"] = { fieldname: "include_zero_stock_items", label: __("Include Zero Stock Items"), fieldtype: "Check", - default: 0, + default: 1, }, { fieldname: "show_dimension_wise_stock",