Merge pull request #31776 from HarryPaulo/fix-net-amout-sales-analytics

fix: for Tree Type item and item group show net amout
This commit is contained in:
Deepesh Garg 2022-08-25 11:05:18 +05:30 committed by GitHub
commit 5187a9a5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ class Analytics(object):
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 @@ class Analytics(object):
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"