From dee7b80640da26a7d2b162bc60168df6738c09cf Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 24 Feb 2015 21:59:49 +0700 Subject: [PATCH] improve --- .../actions/clinic_invoice_payment.xml | 3 +- .../layouts/clinic_invoice_payment_form.xml | 1 + .../layouts/clinic_name_title_form.xml | 1 + .../layouts/clinic_name_title_list.xml | 1 + .../layouts/clinic_patient_form.xml | 7 +- .../clinic_report_discontinue_patient.xml | 8 +- .../layouts/clinic_report_hd_case_summary.xml | 4 +- .../layouts/clinic_report_medical_summary.xml | 2 +- .../layouts/clinic_report_recent_patient.xml | 8 +- netforce_clinic/layouts/clinic_staff_form.xml | 12 +- netforce_clinic/migrations/import_acc.py | 1 - netforce_clinic/models/invoice_payment.py | 20 +++- netforce_clinic/models/name_title.py | 14 +++ netforce_clinic/models/patient.py | 46 ++++---- .../models/report_discontinue_patient.py | 74 ++++++++---- .../models/report_hd_case_summary.py | 31 ++++- .../models/report_labor_cost_daily.py | 7 +- .../models/report_medical_summary.py | 107 +++++++++--------- .../models/report_recent_patient.py | 74 ++++++++---- netforce_clinic/models/setting.py | 15 --- netforce_clinic/models/staff.py | 5 + netforce_clinic/models/visit.py | 3 + .../reports/report_labor_cost_daily.xlsx | Bin 6960 -> 6941 bytes .../templates/report_hd_case_summary.hbs | 2 +- netforce_clinic/todo.txt | 11 +- 25 files changed, 295 insertions(+), 162 deletions(-) diff --git a/netforce_clinic/actions/clinic_invoice_payment.xml b/netforce_clinic/actions/clinic_invoice_payment.xml index 394af3b..29ec4ca 100644 --- a/netforce_clinic/actions/clinic_invoice_payment.xml +++ b/netforce_clinic/actions/clinic_invoice_payment.xml @@ -6,6 +6,7 @@ [ ["All",[]], ["Draft",[["state","=","draft"]]], - ["Approved",[["state","=","approved"]]] + ["Approved",[["state","=","approved"]]], + ["Completed",[["state","=","done"]]] ] diff --git a/netforce_clinic/layouts/clinic_invoice_payment_form.xml b/netforce_clinic/layouts/clinic_invoice_payment_form.xml index 7acf0fb..434787e 100644 --- a/netforce_clinic/layouts/clinic_invoice_payment_form.xml +++ b/netforce_clinic/layouts/clinic_invoice_payment_form.xml @@ -30,5 +30,6 @@