Edit report hdcase expense summary (Title : sorted)

dev
SPP 2018-01-22 13:19:10 +07:00
parent 1da7c956f0
commit 6babde4800
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ class ReportHDCaseExpenseSummary(Model):
'date': date,
'date_from': date_from,
'date_to': date_to,
'lines': sorted(slines, key=lambda a: (a.get('ptype',''), a.get('epo_name',''))),
'lines': sorted(slines, key=lambda a: (a.get('ptype',''), a.get('epo_name',''), a.get('pname',''))),
'total_fee': total_fee and '{:,}'.format(total_fee) or "",
'total_srv': total_srv and '{:,}'.format(total_srv) or "",
'total_epo': total_epo and '{:,}'.format(total_epo) or "",