-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: group by voucher consolidated showing incorrect data for deferred entries #18778
fix: group by voucher consolidated showing incorrect data for deferred entries #18778
Conversation
@@ -305,12 +298,22 @@ def update_value_in_dict(data, key, gle): | |||
update_value_in_dict(totals, 'total', gle) | |||
if filters.get("group_by") != _('Group by Voucher (Consolidated)'): | |||
gle_map[gle.get(group_by)].entries.append(gle) | |||
elif filters.get("group_by") == _('Group by Voucher (Consolidated)'): | |||
key = (gle.get("posting_date"), gle.get("voucher_type"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why posting_date should be part of the key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
432ebf1
to
c8d7d7a
Compare
if key not in consolidated_gle: | ||
consolidated_gle.setdefault(key, gle) | ||
else: | ||
update_value_in_dict(consolidated_gle, key, gle) | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no scope of else
statement
erpnext/public/node_modules
Outdated
@@ -0,0 +1 @@ | |||
/Users/rohitwaghchaure/Documents/erpnext_new/frappe-bench/apps/erpnext/node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
c8d7d7a
to
427653c
Compare
No description provided.