mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
* Update general_ledger.py
Fix order_by_statement if filter group by: Group by Account
* chore: whitespace
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
(cherry picked from commit f24ed6723e)
Co-authored-by: hendrik <hendrik.zeta@gmail.com>
This commit is contained in:
@@ -155,6 +155,8 @@ def get_gl_entries(filters, accounting_dimensions):
|
||||
|
||||
if filters.get("group_by") == "Group by Voucher":
|
||||
order_by_statement = "order by posting_date, voucher_type, voucher_no"
|
||||
if filters.get("group_by") == "Group by Account":
|
||||
order_by_statement = "order by account, posting_date, creation"
|
||||
|
||||
if filters.get("include_default_book_entries"):
|
||||
filters['company_fb'] = frappe.db.get_value("Company",
|
||||
|
||||
Reference in New Issue
Block a user