From 58236ffc1ee8c7b236fa3aeef7889dda09537e20 Mon Sep 17 00:00:00 2001 From: bobzz-zone Date: Fri, 6 Jul 2018 12:09:00 +0700 Subject: [PATCH] Update budget_variance_report.py (#14798) Make sure GL Entry only called once in each row --- .../report/budget_variance_report/budget_variance_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/budget_variance_report/budget_variance_report.py b/erpnext/accounts/report/budget_variance_report/budget_variance_report.py index 26c8f99516..c7ec9963f9 100644 --- a/erpnext/accounts/report/budget_variance_report/budget_variance_report.py +++ b/erpnext/accounts/report/budget_variance_report/budget_variance_report.py @@ -105,7 +105,7 @@ def get_actual_details(name, filters): and b.{budget_against} = gl.{budget_against} and gl.fiscal_year=%s and b.{budget_against}=%s - and exists(select name from `tab{tab}` where name=gl.{budget_against} and {cond}) + and exists(select name from `tab{tab}` where name=gl.{budget_against} and {cond}) group by gl.name """.format(tab = filters.budget_against, budget_against = budget_against, cond = cond), (filters.fiscal_year, name), as_dict=1)