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"] ) 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": { 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",