From e203358be3d68aafc1feee606dbb70240beadf2d Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Wed, 4 Mar 2015 14:19:53 +0700 Subject: [PATCH] filter matching payment --- .../actions/clinic_matching_payment_popup.xml | 6 ++ .../layouts/clinic_cust_invoice_form.xml | 3 +- .../layouts/clinic_matching_payment_form.xml | 70 +++++++++++++----- .../layouts/clinic_matching_payment_popup.xml | 9 +++ netforce_clinic/models/__init__.py | 1 + netforce_clinic/models/account_invoice.py | 2 + netforce_clinic/models/hd_case.py | 5 ++ netforce_clinic/models/matching_payment.py | 59 +++++++++++---- .../models/matching_payment_popup.py | 39 ++++++++++ .../matching_payment_invoice_unmatch.xlsx | Bin 4766 -> 4921 bytes netforce_clinic/todo.txt | 21 +++--- 11 files changed, 169 insertions(+), 46 deletions(-) create mode 100644 netforce_clinic/actions/clinic_matching_payment_popup.xml create mode 100644 netforce_clinic/layouts/clinic_matching_payment_popup.xml create mode 100644 netforce_clinic/models/matching_payment_popup.py diff --git a/netforce_clinic/actions/clinic_matching_payment_popup.xml b/netforce_clinic/actions/clinic_matching_payment_popup.xml new file mode 100644 index 0000000..82416b9 --- /dev/null +++ b/netforce_clinic/actions/clinic_matching_payment_popup.xml @@ -0,0 +1,6 @@ + + Select + form_popup + clinic.matching.payment.popup + _popup + diff --git a/netforce_clinic/layouts/clinic_cust_invoice_form.xml b/netforce_clinic/layouts/clinic_cust_invoice_form.xml index 8667d88..f185557 100644 --- a/netforce_clinic/layouts/clinic_cust_invoice_form.xml +++ b/netforce_clinic/layouts/clinic_cust_invoice_form.xml @@ -1,5 +1,6 @@ - + + diff --git a/netforce_clinic/layouts/clinic_matching_payment_form.xml b/netforce_clinic/layouts/clinic_matching_payment_form.xml index cb6f5b6..e01e9b6 100644 --- a/netforce_clinic/layouts/clinic_matching_payment_form.xml +++ b/netforce_clinic/layouts/clinic_matching_payment_form.xml @@ -2,14 +2,13 @@ @@ -21,22 +20,57 @@ + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/netforce_clinic/layouts/clinic_matching_payment_popup.xml b/netforce_clinic/layouts/clinic_matching_payment_popup.xml new file mode 100644 index 0000000..1a2e4d3 --- /dev/null +++ b/netforce_clinic/layouts/clinic_matching_payment_popup.xml @@ -0,0 +1,9 @@ +
+ + + + + +