From 7c63f06d968549a1caf65e86ee6478a48610c1ba Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Wed, 25 Feb 2015 21:14:57 +0700 Subject: [PATCH] invoice payment --- .../actions/clinic_invoice_payment.xml | 1 + .../layouts/clinic_invoice_payment_form.xml | 6 ++- .../layouts/clinic_invoice_payment_list.xml | 6 ++- .../layouts/clinic_matching_payment_form.xml | 2 +- .../layouts/clinic_matching_payment_list.xml | 8 +++- netforce_clinic/models/invoice_payment.py | 37 +++++++++++++++---- netforce_clinic/models/matching_payment.py | 5 ++- netforce_clinic/todo.txt | 5 ++- 8 files changed, 56 insertions(+), 14 deletions(-) diff --git a/netforce_clinic/actions/clinic_invoice_payment.xml b/netforce_clinic/actions/clinic_invoice_payment.xml index 29ec4ca..b1da7a7 100644 --- a/netforce_clinic/actions/clinic_invoice_payment.xml +++ b/netforce_clinic/actions/clinic_invoice_payment.xml @@ -7,6 +7,7 @@ ["All",[]], ["Draft",[["state","=","draft"]]], ["Approved",[["state","=","approved"]]], + ["Waiting Approval",[["state","=","waiting_approve"]]], ["Completed",[["state","=","done"]]] ] diff --git a/netforce_clinic/layouts/clinic_invoice_payment_form.xml b/netforce_clinic/layouts/clinic_invoice_payment_form.xml index 434787e..c8f4f17 100644 --- a/netforce_clinic/layouts/clinic_invoice_payment_form.xml +++ b/netforce_clinic/layouts/clinic_invoice_payment_form.xml @@ -9,7 +9,7 @@ - + @@ -22,9 +22,13 @@ + + + + diff --git a/netforce_clinic/layouts/clinic_invoice_payment_list.xml b/netforce_clinic/layouts/clinic_invoice_payment_list.xml index 7d2da9b..655363e 100644 --- a/netforce_clinic/layouts/clinic_invoice_payment_list.xml +++ b/netforce_clinic/layouts/clinic_invoice_payment_list.xml @@ -1,4 +1,8 @@ - + + + + + diff --git a/netforce_clinic/layouts/clinic_matching_payment_form.xml b/netforce_clinic/layouts/clinic_matching_payment_form.xml index 5cd9788..90791f6 100644 --- a/netforce_clinic/layouts/clinic_matching_payment_form.xml +++ b/netforce_clinic/layouts/clinic_matching_payment_form.xml @@ -47,6 +47,6 @@ -