From 168badd98f95089661af34d831d354e16a294c6f Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Wed, 6 May 2015 18:25:15 +0700 Subject: [PATCH] improve --- netforce_clinic/models/report_cycle_item.py | 2 + .../models/report_medical_summary.py | 3 + .../reports/report_cycle_item.xlsx | Bin 5576 -> 5504 bytes .../templates/report_cycle_item.hbs | 67 ++++-------------- netforce_clinic/templates/report_visit.hbs | 2 +- 5 files changed, 18 insertions(+), 56 deletions(-) diff --git a/netforce_clinic/models/report_cycle_item.py b/netforce_clinic/models/report_cycle_item.py index cba6277..c35e296 100644 --- a/netforce_clinic/models/report_cycle_item.py +++ b/netforce_clinic/models/report_cycle_item.py @@ -242,11 +242,13 @@ class ReportCycleItem(Model): 'v%s_1'%index: vscl_line['qty'], }) index+=1 + vscl_txt=' '.join(['%s = %s'%(x['description'],x['qty']) for x in vscl_lines]) data={ 'company_name': company_name or "", 'lines': nlines, 'vscl_lines': vscl_lines, 'vscl_lines2': vscl_lines2, + 'vscl_txt': vscl_txt, 'ptype_lines': ptype_lines, 'ptype_txt': ptype_txt, 'month': month_str, diff --git a/netforce_clinic/models/report_medical_summary.py b/netforce_clinic/models/report_medical_summary.py index 4ee091e..ba3c65d 100644 --- a/netforce_clinic/models/report_medical_summary.py +++ b/netforce_clinic/models/report_medical_summary.py @@ -202,6 +202,9 @@ class ReportMedicalSummary(Model): elif branch_id: branch=get_model("clinic.branch").browse(branch_id) sub_name="(%s)" % branch.name or "" + from pprint import pprint + for line in lines: + pprint(line) data={ 'company_name': '%s %s' % (company.name or "", sub_name), 'parent_company_name': company.parent_id.name or "", diff --git a/netforce_clinic/reports/report_cycle_item.xlsx b/netforce_clinic/reports/report_cycle_item.xlsx index 4cf0f5001b6936c9447229a903fa3644081a1dde..742a7e14b81bf8b4600ce6346db17d7ef5556b6b 100644 GIT binary patch delta 2299 zcmY*bXHXMb6HOp=LJb`$QbMm%^5|WpR{=qK5h0-T8UaB{;3>UmFc8WUOz5Z(6c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OI1VrWcCJ0|4Vk&93K8)hoLUx0{2lQDex+n6T}@LrtHme4jktkqy>pD? zKfrnKl380^|NOeFEEE{g9yL^j_04HU|^ z$pd+prSULXl7vaP@a;^@#DoRj>O=a*qe_l@o1q6ib+GTX*<`pyWk=q+k!TYOx6uSU zcUcKrw2cUzd@@3FDJgl{;=&1fWc;*AQxVQU7ococtNd~cK*UxRk0s#Eltc;jfP9|g zIEWXhqe - + @@ -68,63 +68,20 @@ {{/each}} - - + +
วันที่ รอบ No
รวมผู้ป่วยทั้งหมดรวมผู้ป่วยทั้งหมด {{total_pt}} - {{#each ptype_lines}} - {{name}} : {{qty}}     +

+ {{#each ptype_lines}} + {{name}} : {{qty}}     + {{/each}} +

+

+ {{#each vscl_lines}} + {{description}} = {{qty}}     {{/each}} +

- - - - {{#each vscl_lines}} - - - {{/each}} - - -
{{description}} = {{qty}}
- diff --git a/netforce_clinic/templates/report_visit.hbs b/netforce_clinic/templates/report_visit.hbs index e70c58e..83d20a2 100644 --- a/netforce_clinic/templates/report_visit.hbs +++ b/netforce_clinic/templates/report_visit.hbs @@ -14,7 +14,7 @@ --> - +
# วันที่ รอบ