Merge pull request #3942 from nabinhait/fix3

[fix] In general ledger report, consider cost center in group by voucher
This commit is contained in:
Anand Doshi 2015-08-24 17:42:51 +05:30
commit b0d4162ca6

View File

@ -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,