From 62df3b9d598761a6486e48480952ca4b7ff2b37a Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Wed, 11 Mar 2015 18:36:32 +0700 Subject: [PATCH] xxx --- .../models/report_account_hd_case_summary.py | 9 +++++++++ .../templates/report_account_hd_case_summary.hbs | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/netforce_clinic/models/report_account_hd_case_summary.py b/netforce_clinic/models/report_account_hd_case_summary.py index 1ad0b08..2ab0ab2 100644 --- a/netforce_clinic/models/report_account_hd_case_summary.py +++ b/netforce_clinic/models/report_account_hd_case_summary.py @@ -92,6 +92,13 @@ class ReportAccountHDCaseSummary(Model): items[code].append({ 'amount': amt, }) + pm_number='' + for pm in hdcase.payments: + pm_number+=pm.number or "" + inv_number="" + for inv in hdcase.invoices: + inv_number+=inv.number or "" + patient=hdcase.patient_id ptype=hdcase.patient_type_id cycle=hdcase.cycle_id @@ -108,6 +115,8 @@ class ReportAccountHDCaseSummary(Model): 'pname': patient.name, 'cseq': cycle.sequence or 0, 'cycle_item_id': cycle_item.id, + 'pm_number': pm_number, + 'inv_number': inv_number, } for code, item in items.items(): vals.update({ diff --git a/netforce_clinic/templates/report_account_hd_case_summary.hbs b/netforce_clinic/templates/report_account_hd_case_summary.hbs index b148e24..3626717 100644 --- a/netforce_clinic/templates/report_account_hd_case_summary.hbs +++ b/netforce_clinic/templates/report_account_hd_case_summary.hbs @@ -12,7 +12,7 @@ - + + {{#ifeq reimbursable "no"}} + + + {{/ifeq}} @@ -47,6 +52,11 @@ + + {{#ifeq ../reimbursable "no"}} + + + {{/ifeq}}
+ {{#each types}} {{name}}: {{qty}} {{/each}} @@ -29,6 +29,11 @@ ค่าฟอก ค่ายา ค่าฉีดยาHCTRc.Inv.แพทย์ พยาบาล
{{currency fee zero=""}} {{currency epo zero=""}} {{currency srv zero=""}}{{hct}}{{pm_number}}{{inv_number}}{{dname}} {{view "link" string="View" action="clinic_cycle_item" action_options="mode=form" active_id=cycle_item_id}}