fix: for Tree Type item and item group show net amout
diff --git a/erpnext/selling/report/sales_analytics/sales_analytics.py b/erpnext/selling/report/sales_analytics/sales_analytics.py
index 9d7d806..1863528 100644
--- a/erpnext/selling/report/sales_analytics/sales_analytics.py
+++ b/erpnext/selling/report/sales_analytics/sales_analytics.py
@@ -168,7 +168,7 @@
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"
@@ -216,7 +216,7 @@
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"