{{#each lines }}
@@ -53,9 +49,6 @@
{{pname}} |
{{dname}} |
{{tname}} |
-
{{mdc_name}} |
{{dlz_name}} |
{{dlz_use}} |
diff --git a/netforce_clinic/templates/report_cycle_setting.hbs b/netforce_clinic/templates/report_cycle_setting.hbs
new file mode 100644
index 0000000..6f8b970
--- /dev/null
+++ b/netforce_clinic/templates/report_cycle_setting.hbs
@@ -0,0 +1,45 @@
+
+ Click ที่รายชื่อผู้ป่วยเพื่อทำการแก้ไขรอบการรักษา
+
+
+
+
+ {{#each lines }}
+
+ {{no}} |
+
+ {{view "link" string=patient_name action="clinic_patient" action_options="mode=form" active_id=patient_id}}
+ |
+ {{w_time}} |
+ {{w_uid}} |
+ {{#unless ../department_id}}
+ {{department_name}} |
+ {{/unless}}
+ {{mon_cycle_id}} |
+ {{tue_cycle_id}} |
+ {{wed_cycle_id}} |
+ {{thu_cycle_id}} |
+ {{fri_cycle_id}} |
+ {{sat_cycle_id}} |
+ {{sun_cycle_id}} |
+
+ {{/each}}
+
+
+
+
diff --git a/netforce_clinic/templates/report_labor_cost.hbs b/netforce_clinic/templates/report_labor_cost.hbs
index 00b5437..49d8c1a 100644
--- a/netforce_clinic/templates/report_labor_cost.hbs
+++ b/netforce_clinic/templates/report_labor_cost.hbs
@@ -157,7 +157,7 @@
{{name}} |
- {{currency amount}}
+ {{amount}}
|
{{/each}}
diff --git a/netforce_clinic/templates/report_labor_cost_detail.hbs b/netforce_clinic/templates/report_labor_cost_detail.hbs
index 3f6ac8e..559c288 100644
--- a/netforce_clinic/templates/report_labor_cost_detail.hbs
+++ b/netforce_clinic/templates/report_labor_cost_detail.hbs
@@ -10,7 +10,15 @@
{{/if}}
{{#if show_all}}
- {{comp_name}}
+ {{#if department_id}}
+ {{comp_name}}
+ {{else}}
+ {{#if branch_id}}
+ {{comp_name}}
+ {{else}}
+ {{comp_name}}
+ {{/if}}
+ {{/if}}
{{else}}
{{comp_name}}
{{/if}}
@@ -79,7 +87,15 @@
{{/each}}
|
- {{currency total_qty zero=""}}
+ {{#if ../../department_id}}
+ {{currency total_qty zero=""}}
+ {{else}}
+ {{#if ../../branch_id}}
+ {{currency total_qty zero=""}}
+ {{else}}
+ {{currency total_qty zero=""}}
+ {{/if}}
+ {{/if}}
|
{{currency total_amt zero=""}}
diff --git a/netforce_clinic/templates/report_labor_cost_overtime.hbs b/netforce_clinic/templates/report_labor_cost_overtime.hbs
index 638ee1f..4aa894b 100644
--- a/netforce_clinic/templates/report_labor_cost_overtime.hbs
+++ b/netforce_clinic/templates/report_labor_cost_overtime.hbs
@@ -29,14 +29,11 @@
|
{{currency amount zero=""}}
|
- {{max_cycle}} |
+ {{currency max_cycle zero=""}} |
{{view "link" string=cycle_qty action="clinic_labor_cost_item" action_options=action_options}}
|
-
- {{ot_qty}}
+ | {{currency ot_qty zero=""}}
| {{currency ot_per_cycle zero=""}}
| {{currency ot_amount zero=""}}
| {{currency staff_wage zero=""}}
@@ -51,9 +48,9 @@
| |
รวม |
{{currency total_amount zero=""}} |
- {{total_max_cycle}} |
- {{total_cycle_qty}} |
- {{total_ot_qty}} |
+ {{currency total_max_cycle zero=""}} |
+ {{currency total_cycle_qty zero=""}} |
+ {{currency total_ot_qty zero=""}} |
{{currency total_ot_per_cycle zero=""}} |
{{currency total_ot_amount zero=""}} |
{{currency total_wage zero=""}} |
diff --git a/netforce_clinic/templates/report_labor_cost_summary.hbs b/netforce_clinic/templates/report_labor_cost_summary.hbs
index 13b5365..bab4b64 100644
--- a/netforce_clinic/templates/report_labor_cost_summary.hbs
+++ b/netforce_clinic/templates/report_labor_cost_summary.hbs
@@ -19,12 +19,13 @@
# |
- รหัส |
{{#ifeq staff_type "nurse"}}
+ รหัส |
ชื่อ-สกุล |
ตำแหน่ง |
หมวดหมู่ |
{{else}}
+ |
ชื่อ-สกุล |
{{/ifeq}}
{{#each dpts}}
@@ -38,14 +39,15 @@
{{#each lines }}
{{no}}
- | {{number}}
{{#ifeq ../staff_type "nurse"}}
+ | {{number}}
|
{{view "link" string=staff_name action="clinic_staff" action_options="mode=form" active_id=staff_id}}
|
{{staff_level}}
| {{categ_name}}
{{else}}
+ |
|
{{view "link" string=staff_name action="clinic_staff" action_options="mode=form" active_id=staff_id}}
|
diff --git a/netforce_clinic/todo.txt b/netforce_clinic/todo.txt
index 3ab75b6..610a64a 100644
--- a/netforce_clinic/todo.txt
+++ b/netforce_clinic/todo.txt
@@ -1,13 +1,2 @@
-> script:
- - merge
- - staff -> ok
- - patient
-
-> explain nurse
- กรณีแก้ไขรายชื่อหมอให้ดูรายชื่อแพทย์ให้ดี
-
-> note:
- แก้ไขยาก หากมาเจอข้อผิดพลาดบางครั้ง
-
-> report K. boy
- total qty of report_labor_cost_staff is not the same report_labor_cost
+- show log for each model that use _log=True
+- create report patient cycle setting -> link to patient to change cycle setting