Author: sichen
Date: 2008-05-09 17:12:47 -0700 (Fri, 09 May 2008)
New Revision: 970
Modified:
versions/0.9/trunk/webapp/financials/WEB-INF/actions/transactions/getPaymentMethodTypes.bsh
Log:
Fix bug with filtering of credit cards by organization
Modified: versions/0.9/trunk/webapp/financials/WEB-INF/actions/transactions/getPaymentMethodTypes.bsh
===================================================================
--- versions/0.9/trunk/webapp/financials/WEB-INF/actions/transactions/getPaymentMethodTypes.bsh 2008-04-18 17:44:59 UTC (rev 969)
+++ versions/0.9/trunk/webapp/financials/WEB-INF/actions/transactions/getPaymentMethodTypes.bsh 2008-05-10 00:12:47 UTC (rev 970)
@@ -17,7 +17,7 @@
import org.ofbiz.base.util.*;
// get the card types with defined GL accounts for the settlement box drop down
-creditCardTypes = delegator.findAllCache("CreditCardTypeGlAccount", UtilMisc.toList("cardType"));
+creditCardTypes = delegator.findByAndCache("CreditCardTypeGlAccount", UtilMisc.toMap("organizationPartyId", organizationPartyId), UtilMisc.toList("cardType"));
context.put("creditCardTypes", creditCardTypes);
// TODO: support more payment method types
|