mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
Total sales cost in Project should be updated based on base_grand_total (#9302)
* Total sales cost in Project should be updated based on base_grand_total * Patch to update sales cost in Project in base currency
This commit is contained in:
committed by
Rushabh Mehta
parent
ac13627222
commit
84bc5601eb
@@ -178,7 +178,7 @@ class Project(Document):
|
||||
self.total_purchase_cost = total_purchase_cost and total_purchase_cost[0][0] or 0
|
||||
|
||||
def update_sales_costing(self):
|
||||
total_sales_cost = frappe.db.sql("""select sum(grand_total)
|
||||
total_sales_cost = frappe.db.sql("""select sum(base_grand_total)
|
||||
from `tabSales Order` where project = %s and docstatus=1""", self.name)
|
||||
|
||||
self.total_sales_cost = total_sales_cost and total_sales_cost[0][0] or 0
|
||||
|
||||
Reference in New Issue
Block a user