fixes for unicode

This commit is contained in:
Anand Doshi
2012-07-20 18:11:30 +05:30
parent 1703cc89b4
commit 76ec66dd65
5 changed files with 32 additions and 33 deletions

View File

@@ -49,7 +49,7 @@ class DocType:
res = sql("select name, employee_name from `tabEmployee` where status = 'Active' and docstatus !=2")
for d in dt:
for r in res:
for r in res:
lst.append([r[0],r[1],d,'',fy,comp,sr])
return lst
@@ -69,7 +69,7 @@ class DocType:
else:
r = 1
dateList = [getdate(self.doc.att_fr_date)+datetime.timedelta(days=i) for i in range(0,r)]
dt=([str(date) for date in dateList])
dt=([formatdate(cstr(date)) for date in dateList])
return dt