From c95e5645bb1eb900595e49c3437527637c2c5c41 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Thu, 4 Dec 2014 23:48:38 +0700 Subject: [PATCH] hd case state 1. draft -create from hd_case 2. waiting treament 3. finish treament 4. waiting payment - wait for import payment 5. paid - paid by them self (other expense) - government paid (matching) --- netforce_clinic/actions/clinic_hd_case.xml | 11 ++++- .../layouts/clinic_hd_case_expense_form.xml | 6 ++- .../layouts/clinic_hd_case_expense_list.xml | 2 +- .../layouts/clinic_hd_case_form.xml | 8 ++-- .../layouts/clinic_hd_case_list.xml | 2 +- netforce_clinic/models/hd_case.py | 46 +++++++++++-------- netforce_clinic/models/hd_case_expense.py | 21 +++++++-- netforce_clinic/models/hd_case_payment.py | 24 ++++------ netforce_clinic/models/import_payment.py | 25 +++++++++- 9 files changed, 99 insertions(+), 46 deletions(-) diff --git a/netforce_clinic/actions/clinic_hd_case.xml b/netforce_clinic/actions/clinic_hd_case.xml index e871389..2dbf99f 100644 --- a/netforce_clinic/actions/clinic_hd_case.xml +++ b/netforce_clinic/actions/clinic_hd_case.xml @@ -2,7 +2,16 @@ HD Cases multi_view clinic.hd.case - [["All",[]],["Draft",[["state","=","draft"]]],["Waiting Treatment",[["state","=","waiting_treatment"]]],["In Progress",[["state","=","in_progress"]]],["Waiting Payment",[["state","=","waiting_payment"]]],["Waiting Approval",[["state","=","waiting_approval"]]],["Completed",[["state","=","completed"]]],["Cancelled",[["state","=","cancelled"]]]] + + [ + ["All",[]],["Draft",[["state","=","draft"]]], + ["Waiting Treatment",[["state","=","waiting_treatment"]]], + ["In Progress",[["state","=","in_progress"]]], + ["Finish Treatment",[["state","=","completed"]]], + ["Waiting Payment",[["state","=","waiting_payment"]]], + ["Paid",[["state","=","paid"]]], + ["Cancelled",[["state","=","cancelled"]]] + ] list,form clinic_menu 25 diff --git a/netforce_clinic/layouts/clinic_hd_case_expense_form.xml b/netforce_clinic/layouts/clinic_hd_case_expense_form.xml index 3b624a6..caec5e2 100644 --- a/netforce_clinic/layouts/clinic_hd_case_expense_form.xml +++ b/netforce_clinic/layouts/clinic_hd_case_expense_form.xml @@ -7,13 +7,15 @@ - + - + + +