From 8437e7adfdd1b6d5317dd980c9cee4b75d1aadc3 Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Wed, 29 Jul 2015 08:44:03 +0700 Subject: [PATCH] print labor cost --- .../actions/clinic_print_labor_cost.xml | 9 ++ .../layouts/clinic_account_menu.xml | 30 ++--- .../layouts/clinic_compute_labor_cost.xml | 3 +- .../layouts/clinic_print_labor_cost.xml | 23 ++++ netforce_clinic/migrations/__init__.py | 3 +- netforce_clinic/migrations/clinic_setting.py | 19 --- .../migrations/print_labor_cost.py | 37 ++++++ netforce_clinic/models/__init__.py | 4 +- netforce_clinic/models/print_labor_cost.py | 109 ++++++++++++++++++ .../models/print_labor_cost_line.py | 18 +++ .../models/report_labor_cost_summary.py | 14 ++- 11 files changed, 226 insertions(+), 43 deletions(-) create mode 100644 netforce_clinic/actions/clinic_print_labor_cost.xml create mode 100644 netforce_clinic/layouts/clinic_print_labor_cost.xml create mode 100644 netforce_clinic/migrations/print_labor_cost.py create mode 100644 netforce_clinic/models/print_labor_cost.py create mode 100644 netforce_clinic/models/print_labor_cost_line.py diff --git a/netforce_clinic/actions/clinic_print_labor_cost.xml b/netforce_clinic/actions/clinic_print_labor_cost.xml new file mode 100644 index 0000000..fdd6673 --- /dev/null +++ b/netforce_clinic/actions/clinic_print_labor_cost.xml @@ -0,0 +1,9 @@ + + clinic_print_labor_cost + form_view + clinic.print.labor.cost + clinic_print_labor_cost + 1 + account_menu + + diff --git a/netforce_clinic/layouts/clinic_account_menu.xml b/netforce_clinic/layouts/clinic_account_menu.xml index f48c160..3ee50a7 100644 --- a/netforce_clinic/layouts/clinic_account_menu.xml +++ b/netforce_clinic/layouts/clinic_account_menu.xml @@ -1,28 +1,28 @@ - - - - - -
- - - - - - + + + -
- - + + + + + + + + + + + + diff --git a/netforce_clinic/layouts/clinic_compute_labor_cost.xml b/netforce_clinic/layouts/clinic_compute_labor_cost.xml index ea2d654..fe661f6 100644 --- a/netforce_clinic/layouts/clinic_compute_labor_cost.xml +++ b/netforce_clinic/layouts/clinic_compute_labor_cost.xml @@ -1,5 +1,4 @@ -
- + diff --git a/netforce_clinic/layouts/clinic_print_labor_cost.xml b/netforce_clinic/layouts/clinic_print_labor_cost.xml new file mode 100644 index 0000000..aadccd4 --- /dev/null +++ b/netforce_clinic/layouts/clinic_print_labor_cost.xml @@ -0,0 +1,23 @@ + + +