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: Data Should be Computed in Backend to Maintain Consistent Behaviour #44195

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

Ninad1306
Copy link
Contributor

@Ninad1306 Ninad1306 commented Nov 18, 2024

  • In Profit and Loss Statement and Balance Sheet Report the data for growth view and margin view is calculated in frontend.
  • Due to which there is inconsistent behaviour while exporting the data.

image

Screenshot 2024-11-18 at 6 40 16 PM

Fixes

  • Compute growth or margin in backend
  • Growth view should not be computed for totals column

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Nov 18, 2024
@Ninad1306 Ninad1306 marked this pull request as draft November 18, 2024 13:26
@Ninad1306 Ninad1306 marked this pull request as ready for review November 21, 2024 07:35
@vorasmit vorasmit added the squash Meant to tell reviewers that this PR should be squashed into a single commit while merging. label Nov 28, 2024
@vorasmit vorasmit merged commit 69bd90b into frappe:develop Nov 28, 2024
20 checks passed
mergify bot pushed a commit that referenced this pull request Nov 28, 2024
mergify bot pushed a commit that referenced this pull request Nov 28, 2024
vorasmit added a commit that referenced this pull request Nov 28, 2024
…-44195

fix: Data Should be Computed in Backend to Maintain Consistent Behaviour (backport #44195)
vorasmit added a commit that referenced this pull request Nov 28, 2024
…-44195

fix: Data Should be Computed in Backend to Maintain Consistent Behaviour (backport #44195)
@Ninad1306 Ninad1306 deleted the growth_view_fix branch November 29, 2024 05:12
frappe-pr-bot pushed a commit that referenced this pull request Dec 4, 2024
# [14.78.0](v14.77.3...v14.78.0) (2024-12-04)

### Bug Fixes

* Add filter for `outstanding_amount` to fetch open PRs ([7e847f2](7e847f2))
* Add translation for showing mandatory fields in error msg ([de5b253](de5b253))
* added fieldname to avoid fieldname to translate ([d7caa8d](d7caa8d))
* Added translation for `Account` column ([2061c7c](2061c7c))
* adjusted incoming rate for zero rated item in purchase receipt ([d7583e3](d7583e3))
* correct buying amount for product bundel ([91f6393](91f6393))
* Dashboard for `Payment Request` ([c911a70](c911a70))
* Data Should be Computed in Backend to Maintain Consistent Behaviour ([#44195](#44195)) ([8529eb4](8529eb4))
* handle multi currency in common party journal entry ([bed6dab](bed6dab))
* incorrect Gross Margin on project ([#44461](#44461)) ([5533592](5533592))
* remove queries ([7d724d7](7d724d7))
* show "Send SMS" only when enabled (backport [#43941](#43941)) ([#43969](#43969)) ([9ae04df](9ae04df))
* source warehouse not set in required items of WO (backport [#44426](#44426)) ([#44433](#44433)) ([cbce4e7](cbce4e7))
* Translate `Party Account` column label ([c4103d2](c4103d2))
* typeerror on transaction.js ([147eb04](147eb04))

### Features

* add Company Contact Person in selling transactions (backport [#44362](#44362)) ([#44397](#44397)) ([78ab44c](78ab44c))

### Performance Improvements

* cache product bundle items at document level ([#44440](#44440)) ([df0dac5](df0dac5))
* reduce queries during transaction save ([f884cf8](f884cf8))

### Reverts

* remove default `Payment Request` indicator color ([9baaaca](9baaaca))
frappe-pr-bot pushed a commit that referenced this pull request Dec 4, 2024
# [15.45.0](v15.44.0...v15.45.0) (2024-12-04)

### Bug Fixes

* Add filter for `outstanding_amount` to fetch open PRs ([5999a8e](5999a8e))
* Add translation for showing mandatory fields in error msg ([0e1f5ff](0e1f5ff))
* added fieldname to avoid fieldname to translate ([17c2734](17c2734))
* Added translation for `Account` column ([eb4a485](eb4a485))
* adjusted incoming rate for zero rated item in purchase receipt ([435280d](435280d))
* always set sales incoming rate for internal transfers ([05795af](05795af))
* calculate submitted payment entry as paid amount ([ebdacc0](ebdacc0))
* correct buying amount for product bundel ([f165e17](f165e17))
* Dashboard for `Payment Request` ([0d67c62](0d67c62))
* Data Should be Computed in Backend to Maintain Consistent Behaviour ([#44195](#44195)) ([8ab9fc7](8ab9fc7))
* do not validate stock during inward (backport [#44417](#44417)) ([#44427](#44427)) ([e607795](e607795))
* handle multi currency in common party journal entry ([c8e2c9a](c8e2c9a))
* incorrect Gross Margin on project (backport [#44461](#44461)) ([#44468](#44468)) ([0a9c92f](0a9c92f))
* IndexError in Asset Depreciation Ledger when query result is empty ([c3bc724](c3bc724))
* link cash flow rows and fix summary linking ([633be8d](633be8d))
* move validate_total_debit_and_credit from validate to on_submit in Journal Entry ([63de576](63de576))
* number format in the message (backport [#44435](#44435)) ([#44438](#44438)) ([579d8e2](579d8e2))
* precision calculation causing 0.1 discrepancy (backport [#44431](#44431)) ([#44436](#44436)) ([0d41c23](0d41c23))
* remove queries ([ea57f2b](ea57f2b))
* SABB print for packed items (backport [#44413](#44413)) ([#44428](#44428)) ([0e39aa3](0e39aa3))
* set correct unallocated amount in Payment Entry ([#43958](#43958)) ([ae93f7f](ae93f7f))
* show "Send SMS" only when enabled (backport [#43941](#43941)) ([#43970](#43970)) ([0fbc60a](0fbc60a))
* source warehouse not set in required items of WO (backport [#44426](#44426)) ([#44434](#44434)) ([c81b5e3](c81b5e3))
* Translate `Party Account` column label ([fdda864](fdda864))
* typeerror on transaction.js ([173d60f](173d60f))

### Features

* add Company Contact Person in selling transactions (backport [#44362](#44362)) ([#44398](#44398)) ([70b5b08](70b5b08))
* **Dunning:** separate tab "Address & Contact" ([#44363](#44363)) ([e0cb5f9](e0cb5f9))

### Performance Improvements

* cache product bundle items at document level ([#44440](#44440)) ([1f97979](1f97979))
* reduce queries during transaction save ([48059a7](48059a7))

### Reverts

* remove default `Payment Request` indicator color ([9c4b581](9c4b581))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix needs-tests This PR needs automated unit-tests. squash Meant to tell reviewers that this PR should be squashed into a single commit while merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants