From ea4b6e8dd726e2c8a8a94f7e70bd5cab03ea6876 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 12:52:13 +0530 Subject: [PATCH] fix(report): Purchase Order Analysis pymysql.err (backport #44957) (#44994) fix(report): Purchase Order Analysis pymysql.err (#44957) (cherry picked from commit d6980a9493fb18855918de804f4922c2f70fb5d1) Co-authored-by: Vishnu VS --- .../report/purchase_order_analysis/purchase_order_analysis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py b/erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py index 75658e28780..f583ce3e6c8 100644 --- a/erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py +++ b/erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py @@ -18,11 +18,12 @@ def execute(filters=None): columns = get_columns(filters) data = get_data(filters) - update_received_amount(data) if not data: return [], [], None, [] + update_received_amount(data) + data, chart_data = prepare_data(data, filters) return columns, data, None, chart_data