From f5cbb9c7b95118b5904b967f23ed600146ceef8d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 11 Sep 2017 13:58:15 +0530 Subject: [PATCH] [fix] Actual amount for budget variance report --- .../report/budget_variance_report/budget_variance_report.py | 3 ++- 1 file changed, 2 insertions(+), 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 875ec99663..bc457aa6f2 100644 --- a/erpnext/accounts/report/budget_variance_report/budget_variance_report.py +++ b/erpnext/accounts/report/budget_variance_report/budget_variance_report.py @@ -99,7 +99,8 @@ def get_actual_details(name, filters): where b.name = ba.parent and b.docstatus = 1 - and ba.account=gl.account + and ba.account=gl.account + 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})