Skip to content

Commit

Permalink
fix: for Tree Type item and item group show net amount (#31776)
Browse files Browse the repository at this point in the history
fix: for Tree Type item and item group show net amout

(cherry picked from commit 9176209)

Co-authored-by: hrzzz <paulo_fabris@hotmail.com>
  • Loading branch information
mergify[bot] and HarryPaulo authored Apr 14, 2023
1 parent 15f5e8d commit 7c8194a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/selling/report/sales_analytics/sales_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def get_sales_transactions_based_on_customers_or_suppliers(self):
def get_sales_transactions_based_on_items(self):

if self.filters["value_quantity"] == "Value":
value_field = "base_amount"
value_field = "base_net_amount"
else:
value_field = "stock_qty"

Expand Down Expand Up @@ -216,7 +216,7 @@ def get_sales_transactions_based_on_customer_or_territory_group(self):

def get_sales_transactions_based_on_item_group(self):
if self.filters["value_quantity"] == "Value":
value_field = "base_amount"
value_field = "base_net_amount"
else:
value_field = "qty"

Expand Down

0 comments on commit 7c8194a

Please sign in to comment.