conv_bal
watcha.h@almacom.co.th 2015-01-15 23:33:36 +07:00
parent 6e547eae65
commit 43b385797f
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class ReportVisit(Model):
records=get_model('clinic.visit').search_browse(dom)
lines=[]
no=1
for record in sorted(records,key=lambda x: (x.patient_id.id,x.visit_date)):
for record in sorted(records,key=lambda x: (x.patient_id.name or "",x.visit_date)):
lines.append({
'no': no,
'vid': record.id,