Will break if select sum(base_grand_total) from `tabSales Order` where project=p.name and docstatus=1 returns Null. Gives - "OperationalError: (1048, "Column 'total_sales_cost' cannot be null")" Error
* Total sales cost in Project should be updated based on base_grand_total * Patch to update sales cost in Project in base currency