[fixes] to task test case and fix tree ui for mobile

This commit is contained in:
Rushabh Mehta
2015-09-02 12:18:37 +05:30
parent 4223d7c044
commit be9edae961
6 changed files with 59 additions and 25 deletions

View File

@@ -97,8 +97,11 @@ class Project(Document):
sum(hours) as time
from `tabTime Log` where project = %s and docstatus = 1""", self.name, as_dict=1)[0]
from_expense_claim = frappe.db.sql("""select sum(ifnull(total_sanctioned_amount, 0))
from `tabExpense Claim` where project = %s""", self.name, as_dict=1)[0]
from_expense_claim = frappe.db.sql("""select
sum(ifnull(total_sanctioned_amount, 0)) as total_sanctioned_amount
from `tabExpense Claim` where project = %s and approval_status='Approved'
and docstatus = 1""",
self.name, as_dict=1)[0]
self.actual_start_date = from_time_log.start_date
self.actual_end_date = from_time_log.end_date