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: for Tree Type item and item group show net amout #31776

Merged

Conversation

HarryPaulo
Copy link
Contributor

When I place a Sales Order, let's assume my product costs $100, I sell 5 units, but I give $100 off, applying the discount in the "Additional Discount Amount" field.

Total products: $500
Additional Discount Amount: - $100
Net Amout: $400

Report: Sales Analytics
Tree Type = (Item, Item Group)

When I use the grouping by item or Item Group, the system is showing the sold value of the products, ex: $500, but the correct one must be $400, you must use the "base_net_amount" field to get the account in this report.
It doesn't make sense for me to open the Gross Profit report to view "$400" of sales and open the sales analytics respecting the groups informed above and the system display the value "$500".

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Aug 3, 2022
@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Merging #31776 (9176209) into develop (9c580dd) will increase coverage by 0.07%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop   #31776      +/-   ##
===========================================
+ Coverage    63.25%   63.33%   +0.07%     
===========================================
  Files          813      813              
  Lines        57520    57519       -1     
===========================================
+ Hits         36386    36430      +44     
+ Misses       21134    21089      -45     
Impacted Files Coverage Δ
.../selling/report/sales_analytics/sales_analytics.py 67.61% <0.00%> (ø)
erpnext/setup/doctype/item_group/item_group.py 66.94% <ø> (+0.56%) ⬆️
...rial_no_valuation/incorrect_serial_no_valuation.py 85.96% <0.00%> (-10.53%) ⬇️
erpnext/accounts/party.py 77.59% <0.00%> (-4.49%) ⬇️
...e/asset_value_adjustment/asset_value_adjustment.py 87.95% <0.00%> (-3.62%) ⬇️
...pnext/stock/doctype/delivery_note/delivery_note.py 65.67% <0.00%> (-2.71%) ⬇️
...value/warehouse_wise_item_balance_age_and_value.py 89.02% <0.00%> (-2.44%) ⬇️
...eorder_level/itemwise_recommended_reorder_level.py 90.74% <0.00%> (-1.86%) ⬇️
erpnext/crm/doctype/prospect/prospect.py 49.25% <0.00%> (-1.50%) ⬇️
erpnext/stock/report/stock_ageing/stock_ageing.py 93.33% <0.00%> (-1.43%) ⬇️
... and 19 more

@deepeshgarg007 deepeshgarg007 merged commit 5187a9a into frappe:develop Aug 25, 2022
@ruthra-kumar
Copy link
Member

@Mergifyio backport version-14-hotfix

@mergify
Copy link
Contributor

mergify bot commented Apr 14, 2023

backport version-14-hotfix

✅ Backports have been created

deepeshgarg007 pushed a commit that referenced this pull request Apr 14, 2023
fix: for Tree Type item and item group show net amout

(cherry picked from commit 9176209)

Co-authored-by: hrzzz <paulo_fabris@hotmail.com>
frappe-pr-bot pushed a commit that referenced this pull request Apr 19, 2023
# [14.22.0](v14.21.0...v14.22.0) (2023-04-19)

### Bug Fixes

* Add offers info to website item ([#34873](#34873)) ([f1a1fc6](f1a1fc6))
* Advance payment against payment terms ([#34872](#34872)) ([7461239](7461239))
* change discuss forum url ([#34891](#34891)) ([8f26d62](8f26d62))
* don't show disabled warehouses in the Warehouse Wise Stock Balance report ([461780d](461780d))
* Don't use stale item details ([#34847](#34847)) ([c11aeba](c11aeba))
* for Tree Type item and item group show net amount ([#31776](#31776)) ([7c8194a](7c8194a))
* linters issues ([c53dc06](c53dc06))
* Remove unnecessary checkbox from Accounts doctype ([#34821](#34821)) ([0cf6144](0cf6144))
* selling workspace is not migrating properly ([79fd38c](79fd38c))
* stock reco test case ([2f356dc](2f356dc))
* too many writes error while making backdated stock reconciliation ([a981b79](a981b79))
* unable to change `company` for manual `Serial No` entry ([2e7043c](2e7043c))
* **ux:** don't throw error when company defaults aren't set ([#34825](#34825)) ([15f5e8d](15f5e8d))
* whitelist doc method ([09b92fd](09b92fd))

### Features

* add german sales tax template ([#34823](#34823)) ([3738ea5](3738ea5))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants