diff --git a/netforce_clinic/models/cycle_item.py b/netforce_clinic/models/cycle_item.py index 022d23c..0242a26 100644 --- a/netforce_clinic/models/cycle_item.py +++ b/netforce_clinic/models/cycle_item.py @@ -130,7 +130,7 @@ class CycleItem(Model): 'cycle_id': obj.cycle_id.id, 'personal_id': nurse.id, 'level_id': nurse.level_id.id, - 'rate': levels[level.id] or 0.0, + 'rate': levels.get(level.id, 0.0), 'type': 'nurse', 'qty': 1, })) diff --git a/netforce_clinic/models/utils.py b/netforce_clinic/models/utils.py index c0a3067..36cc910 100644 --- a/netforce_clinic/models/utils.py +++ b/netforce_clinic/models/utils.py @@ -15,9 +15,9 @@ PATIENT_TYPE={ } PERSONAL_TYPE={ - 'doctor': 'Doctor', - 'nurse': 'Nurse', - 'personal': 'Personal', + 'doctor': 'แพทย์', + 'nurse': 'พยาบาล', + 'personal': 'ทั่วไป', } TOPICS={