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 (backport #44467) #44485

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 3, 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


This is an automatic backport of pull request #44467 done by [Mergify](https://mergify.com).

ljain112 and others added 3 commits December 3, 2024 12:01
(cherry picked from commit a86b223)
(cherry picked from commit fc0122c)
@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Dec 3, 2024
@ruthra-kumar ruthra-kumar merged commit d5a544c into version-15-hotfix Dec 3, 2024
11 of 12 checks passed
@ruthra-kumar ruthra-kumar deleted the mergify/bp/version-15-hotfix/pr-44467 branch December 3, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants