some more fixes in support

This commit is contained in:
Nabin Hait
2012-04-16 18:47:20 +05:30
parent 6910ec1946
commit 8c0dcd383b
6 changed files with 8 additions and 7 deletions

View File

@@ -52,4 +52,4 @@ cur_frm.cscript.project_value = function(doc, cdt, cdn){
//--------- calculate gross profit --------------------------------
cur_frm.cscript.est_material_cost = function(doc, cdt, cdn){
get_server_fields('get_gross_profit','','',doc, cdt, cdn, 1);
}
}

View File

@@ -119,4 +119,4 @@ cur_frm.cscript.declare_completed = function(){
cur_frm.cscript.refresh(cur_frm.doc, cur_frm.doc.doctype, cur_frm.doc.name);
}
});
}
}

View File

@@ -51,7 +51,7 @@ class DocType:
def get_allocated_to_name(self):
as_em = sql("select first_name, last_name from `tabProfile` where name=%s",str(self.doc.allocated_to))
ret = { 'allocated_to_name' : as_em and (as_em[0][0] + ' ' + as_em[0][1]) or ''}
ret = { 'allocated_to_name' : as_em and (cstr(as_em[0][0]) + ' ' + cstr(as_em[0][1])) or ''}
return ret
# validate
@@ -95,7 +95,7 @@ class DocType:
sql("delete from tabEvent where ref_type='Task' and ref_name=%s", self.doc.name)
self.add_calendar_event()
else:
msgprint("An Expeted start date has not been set for this task.Please set a, 'Expected Start date'\
msgprint("An Expeted start date has not been set for this task.Please set 'Expected Start date'\
to add an event to allocated persons calender.You can save a task without this also.")