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
This commit is contained in:
Anil Patel
2009-07-27 12:13:53 +00:00
parent 0b983a20ee
commit 2d00d6a445
6 changed files with 17 additions and 10 deletions
@@ -6490,6 +6490,9 @@
<value xml:lang="th">ส่งการชำระเงิน</value>
<value xml:lang="zh">已发送的支付</value>
</property>
<property key="AccountingPaymentStatus">
<value xml:lang="en">Payment Status</value>
</property>
<property key="AccountingPaymentStatusIsNotReceivedOrSentError">
<value xml:lang="en">Payment status must be received or sent</value>
</property>
@@ -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 = [];
@@ -26,6 +26,7 @@ under the License.
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ManufacturingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
+1
View File
@@ -498,6 +498,7 @@ under the License.
<and>
<if-compare field="display" operator="equals" value="true"/>
<if-compare field="paymentGroup.paymentGroupTypeId" operator="equals" value="BATCH_PAYMENT"/>
<not><if-empty field="paymentGroupMembers"/></not>
</and>
</condition>
<link target="DepositSlip.pdf">
@@ -115,8 +115,8 @@ under the License.
<parameter param-name="paymentId"/>
</hyperlink>
</field>
<field name="paymentTypeId"><display-entity entity-name="PaymentType" description="${description}"/></field>
<field name="statusId"><display-entity entity-name="StatusItem"/></field>
<field name="paymentTypeId" title="${uiLabelMap.OrderPaymentType}"><display-entity entity-name="PaymentType" description="${description}"/></field>
<field name="statusId" title="${uiLabelMap.AccountingPaymentStatus}"><display-entity entity-name="StatusItem"/></field>
<field name="amount"><display also-hidden="false" type="currency" currency="${currencyUomId}"/></field>
<field name="fromDate"><display/></field>
<field name="thruDate"><display/></field>
@@ -24,9 +24,10 @@ under the License.
<form name="FindBatchPayments" type="single" target="batchPayments">
<actions>
<set field="organizationPartyId" from-field="organizationPartyId" default-value="${defaultOrganizationPartyId}"/>
<set field="defauldPaymentMethodTypeId" value="PERSONAL_CHECK"/>
</actions>
<field name="finAccountId">
<drop-down>
<drop-down allow-empty="true">
<entity-options entity-name="FinAccount" description="${finAccountName} [${finAccountId}]" filter-by-date="true">
<entity-constraint name="ownerPartyId" env-name="organizationPartyId"/>
<entity-constraint name="finAccountTypeId" value="BANK_ACCOUNT"/>
@@ -34,7 +35,7 @@ under the License.
</drop-down>
</field>
<field name="paymentMethodTypeId" title="${uiLabelMap.FormFieldTitle_paymentMethodTypeId}*" required-field="true">
<drop-down allow-empty="false">
<drop-down allow-empty="false" no-current-selected-key="${defauldPaymentMethodTypeId}">
<entity-options entity-name="PaymentMethodType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>