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: Multiple Fixes in Gross Profit Report #44467

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

ljain112
Copy link
Contributor

@ljain112 ljain112 commented Dec 2, 2024

Correct buying amount for a product bundle.

The buying amount was incorrect for the product bundle because it was always set on the basis of the average due to missing keys required for calculating the buying amount from Stock Ledger Entry.

SLE:
image

Before:
image

After:
image

Fixed Data Inconsistency

  • Instead of using Product Bundle Details, Packed Item details are used for grouped invoices.

  • This helps in consistency and performance

  • Performance Fixes

    • Remove frappe.db.get_value for fetching base_net_amount instead of using item query.

Frappe Support Issue:
https://support.frappe.io/app/hd-ticket/24113
https://support.frappe.io/app/hd-ticket/20809
https://support.frappe.io/app/hd-ticket/23693

Closes:#42329, #35792, #41302

backport version-15
backport version-14

@ljain112 ljain112 marked this pull request as draft December 2, 2024 09:55
@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Dec 2, 2024
@ljain112 ljain112 marked this pull request as ready for review December 2, 2024 10:16
@ruthra-kumar ruthra-kumar self-assigned this Dec 3, 2024
@ruthra-kumar ruthra-kumar merged commit 88b0af1 into frappe:develop Dec 3, 2024
12 of 13 checks passed
ruthra-kumar added a commit that referenced this pull request Dec 3, 2024
…-44467

fix: Multiple Fixes in Gross Profit Report (backport #44467)
ruthra-kumar added a commit that referenced this pull request Dec 3, 2024
…-44467

fix: Multiple Fixes in Gross Profit Report (backport #44467)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants