From 27c524e337eecf29dc10cd25a0a8f49edfba52fe Mon Sep 17 00:00:00 2001 From: gavin Date: Thu, 9 Mar 2023 16:05:37 +0530 Subject: [PATCH] fix: Don't use get_list & get_all interchangeably fix: Fetch all fields via get_returned_qty_map_for_row --- erpnext/controllers/sales_and_purchase_return.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/sales_and_purchase_return.py b/erpnext/controllers/sales_and_purchase_return.py index 341d51b8a5f..15c270e58ad 100644 --- a/erpnext/controllers/sales_and_purchase_return.py +++ b/erpnext/controllers/sales_and_purchase_return.py @@ -305,7 +305,7 @@ def get_returned_qty_map_for_row(return_against, party, row_name, doctype): fields += ["sum(abs(`tab{0}`.received_stock_qty)) as received_stock_qty".format(child_doctype)] # Used retrun against and supplier and is_retrun because there is an index added for it - data = frappe.db.get_list( + data = frappe.get_all( doctype, fields=fields, filters=[