From 3a990d946d503f17243658f42df0f2cf463cda79 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 24 Aug 2015 17:21:01 +0530 Subject: [PATCH] [fix] In general ledger report, consider cost center in group by voucher --- erpnext/accounts/report/general_ledger/general_ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/general_ledger/general_ledger.py b/erpnext/accounts/report/general_ledger/general_ledger.py index 35c839f786..1cc9f4fc35 100644 --- a/erpnext/accounts/report/general_ledger/general_ledger.py +++ b/erpnext/accounts/report/general_ledger/general_ledger.py @@ -61,7 +61,7 @@ def get_result(filters, account_details): return result def get_gl_entries(filters): - group_by_condition = "group by voucher_type, voucher_no, account" \ + group_by_condition = "group by voucher_type, voucher_no, account, cost_center" \ if filters.get("group_by_voucher") else "group by name" gl_entries = frappe.db.sql("""select posting_date, account, party_type, party,