# |
+ {{#ifeq staff_type "doctor"}}
+ HDCase |
+ {{/ifeq}}
+ {{#ifeq staff_type "nurse"}}
+ Cycle Item |
+ {{/ifeq}}
HN |
Patient |
Type |
@@ -14,6 +20,16 @@
{{#each lines }}
{{no}} |
+ {{#ifeq ../staff_type "doctor"}}
+
+ {{view "link" string=hd_case_number action="clinic_hd_case" action_options="mode=form" active_id=hd_case_id}}
+ |
+ {{/ifeq}}
+ {{#ifeq ../staff_type "nurse"}}
+
+ {{view "link" string=cycle_item_name action="clinic_cycle_item" action_options="mode=form" active_id=cycle_item_id}}
+ |
+ {{/ifeq}}
{{hn}} |
{{patient_name}} |
{{patient_type_name}} |
diff --git a/netforce_clinic/templates/report_labor_cost_detail.hbs b/netforce_clinic/templates/report_labor_cost_detail.hbs
index 05875f4..5a5a0da 100644
--- a/netforce_clinic/templates/report_labor_cost_detail.hbs
+++ b/netforce_clinic/templates/report_labor_cost_detail.hbs
@@ -33,13 +33,19 @@
{{no}}
|
- {{date}}
+ {{date}}
|
{{#each sub_lines}}
- {{qty}} |
- {{currency amt zero=""}} |
+
+ {{currency qty zero=""}}
+ |
+
+ {{currency amt zero=""}}
+ |
{{/each}}
- {{currency total_qty zero=""}}
+ |
+ {{currency total_qty zero=""}}
+ |
{{currency total_amt zero=""}}
|
{{/each}}
diff --git a/netforce_clinic/templates/report_labor_cost_summary.hbs b/netforce_clinic/templates/report_labor_cost_summary.hbs
index 91425de..ef2c8ae 100644
--- a/netforce_clinic/templates/report_labor_cost_summary.hbs
+++ b/netforce_clinic/templates/report_labor_cost_summary.hbs
@@ -26,12 +26,12 @@
{{#each sub_lines}}
-
- {{currency amt zero=""}}
-
+ {{currency amt zero=""}}
|
{{/each}}
- {{currency total zero=""}}
+ |
+ {{currency total zero=""}}
+ |
{{/each}}
diff --git a/netforce_clinic/todo.txt b/netforce_clinic/todo.txt
index 3ea09c5..eb34af1 100644
--- a/netforce_clinic/todo.txt
+++ b/netforce_clinic/todo.txt
@@ -3,4 +3,8 @@ todo:
- matching payment ***
- script generate hd case
- report doctor & nurse ***
+ - summary -> ok
+ - detail -> ok
+ - daily -> ok
+ but not link yet