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:
commit
5187a9a5ad
@ -168,7 +168,7 @@ class Analytics(object):
|
|||||||
def get_sales_transactions_based_on_items(self):
|
def get_sales_transactions_based_on_items(self):
|
||||||
|
|
||||||
if self.filters["value_quantity"] == "Value":
|
if self.filters["value_quantity"] == "Value":
|
||||||
value_field = "base_amount"
|
value_field = "base_net_amount"
|
||||||
else:
|
else:
|
||||||
value_field = "stock_qty"
|
value_field = "stock_qty"
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ class Analytics(object):
|
|||||||
|
|
||||||
def get_sales_transactions_based_on_item_group(self):
|
def get_sales_transactions_based_on_item_group(self):
|
||||||
if self.filters["value_quantity"] == "Value":
|
if self.filters["value_quantity"] == "Value":
|
||||||
value_field = "base_amount"
|
value_field = "base_net_amount"
|
||||||
else:
|
else:
|
||||||
value_field = "qty"
|
value_field = "qty"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user