From 2d00d6a445722cfc3f4600a976c4cfb1ce6c82ba Mon Sep 17 00:00:00 2001 From: Anil Patel Date: Mon, 27 Jul 2009 12:13:53 +0000 Subject: [PATCH] Misc cleanups in Financial Account and Payment Group screens. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798113 13f79535-47bb-0310-9956-ffa450edef68 --- .../accounting/config/AccountingUiLabels.xml | 3 +++ .../webapp/ar/WEB-INF/actions/BatchPayments.groovy | 13 +++++++------ applications/accounting/widget/CommonScreens.xml | 1 + applications/accounting/widget/Menus.xml | 1 + .../accounting/widget/PaymentGroupForms.xml | 4 ++-- .../accounting/widget/ar/forms/ArPaymentForms.xml | 5 +++-- 6 files changed, 17 insertions(+), 10 deletions(-) diff --git a/applications/accounting/config/AccountingUiLabels.xml b/applications/accounting/config/AccountingUiLabels.xml index 1816f80eef..9c0dfb694f 100644 --- a/applications/accounting/config/AccountingUiLabels.xml +++ b/applications/accounting/config/AccountingUiLabels.xml @@ -6490,6 +6490,9 @@ ส่งการชำระเงิน 已发送的支付 + + Payment Status + Payment status must be received or sent diff --git a/applications/accounting/webapp/ar/WEB-INF/actions/BatchPayments.groovy b/applications/accounting/webapp/ar/WEB-INF/actions/BatchPayments.groovy index bb1da16cbe..8137a0df94 100644 --- a/applications/accounting/webapp/ar/WEB-INF/actions/BatchPayments.groovy +++ b/applications/accounting/webapp/ar/WEB-INF/actions/BatchPayments.groovy @@ -23,7 +23,7 @@ import org.ofbiz.entity.condition.EntityCondition; import org.ofbiz.entity.condition.EntityOperator; List paymentCond = []; -if (paymentMethodTypeId && finAccountId) { +if (paymentMethodTypeId) { paymentCond.add(EntityCondition.makeCondition("paymentMethodTypeId", EntityOperator.EQUALS, paymentMethodTypeId)); if (fromDate) { paymentCond.add(EntityCondition.makeCondition("effectiveDate", EntityOperator.GREATER_THAN_EQUAL_TO, fromDate)); @@ -37,11 +37,12 @@ if (paymentMethodTypeId && finAccountId) { if (organizationPartyId) { paymentCond.add(EntityCondition.makeCondition("partyIdTo", EntityOperator.EQUALS, organizationPartyId)); } - - finAccountTransList = delegator.findList("FinAccountTrans", EntityCondition.makeCondition([finAccountId : finAccountId]), null, null, null, false); - if (finAccountTransList) { - finAccountTransIds = EntityUtil.getFieldListFromEntityList(finAccountTransList, "finAccountTransId", true); - paymentCond.add(EntityCondition.makeCondition("finAccountTransId", EntityOperator.IN, finAccountTransIds)); + if (finAccountId) { + finAccountTransList = delegator.findList("FinAccountTrans", EntityCondition.makeCondition([finAccountId : finAccountId]), null, null, null, false); + if (finAccountTransList) { + finAccountTransIds = EntityUtil.getFieldListFromEntityList(finAccountTransList, "finAccountTransId", true); + paymentCond.add(EntityCondition.makeCondition("finAccountTransId", EntityOperator.IN, finAccountTransIds)); + } } payments = delegator.findList("Payment", EntityCondition.makeCondition(paymentCond, EntityOperator.AND), null, null, null, false); paymentListWithCreditCard = []; diff --git a/applications/accounting/widget/CommonScreens.xml b/applications/accounting/widget/CommonScreens.xml index 98771f0821..2f56bdf40e 100644 --- a/applications/accounting/widget/CommonScreens.xml +++ b/applications/accounting/widget/CommonScreens.xml @@ -26,6 +26,7 @@ under the License. + diff --git a/applications/accounting/widget/Menus.xml b/applications/accounting/widget/Menus.xml index 912607cfe3..636947d207 100644 --- a/applications/accounting/widget/Menus.xml +++ b/applications/accounting/widget/Menus.xml @@ -498,6 +498,7 @@ under the License. + diff --git a/applications/accounting/widget/PaymentGroupForms.xml b/applications/accounting/widget/PaymentGroupForms.xml index dda43bd5fe..0cd9224c15 100644 --- a/applications/accounting/widget/PaymentGroupForms.xml +++ b/applications/accounting/widget/PaymentGroupForms.xml @@ -115,8 +115,8 @@ under the License. - - + + diff --git a/applications/accounting/widget/ar/forms/ArPaymentForms.xml b/applications/accounting/widget/ar/forms/ArPaymentForms.xml index d8b8473bd6..6b85c0dcf5 100644 --- a/applications/accounting/widget/ar/forms/ArPaymentForms.xml +++ b/applications/accounting/widget/ar/forms/ArPaymentForms.xml @@ -24,9 +24,10 @@ under the License.
+ - + @@ -34,7 +35,7 @@ under the License. - +