report template

conv_bal
watcha.h 2014-11-13 12:03:49 +07:00
parent 8d9a6a44f3
commit 6c0cb9b60a
6 changed files with 2 additions and 0 deletions

View File

@ -56,9 +56,11 @@ class ReportMedicalSummary(Model):
limit=25
for prod, records in products.items():
prod_name=records['sc']['name'] or ""
prod_name_org=records['sc']['name'] or ""
prod_name=len(prod_name) > limit and '%s...' %prod_name[0:limit] or prod_name
line={
'prod_name': prod_name,
'prod_name_org': prod_name_org,
'prod_id': records[patient_type]['prod_id'],
'total': 0,
}