Skip to content
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

Conversation

rohitwaghchaure
Copy link
Collaborator

No description provided.

@@ -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"),
Copy link
Member

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@rohitwaghchaure rohitwaghchaure force-pushed the voucher_by_consolidated_not_working_for_deferred_expense_v11 branch from 432ebf1 to c8d7d7a Compare August 19, 2019 11:15
if key not in consolidated_gle:
consolidated_gle.setdefault(key, gle)
else:
update_value_in_dict(consolidated_gle, key, gle)
else:
Copy link
Member

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

@@ -0,0 +1 @@
/Users/rohitwaghchaure/Documents/erpnext_new/frappe-bench/apps/erpnext/node_modules
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@rohitwaghchaure rohitwaghchaure force-pushed the voucher_by_consolidated_not_working_for_deferred_expense_v11 branch from c8d7d7a to 427653c Compare August 19, 2019 13:55
@nabinhait nabinhait merged commit 6155114 into frappe:version-11-hotfix Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants