Author: bibryam
Date: Mon Jan 14 07:26:35 2008
New Revision: 611830
URL:
http://svn.apache.org/viewvc?rev=611830&view=revLog:
Filter by date AgreementTerms, before adding to shopping cart.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java?rev=611830&r1=611829&r2=611830&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java Mon Jan 14 07:26:35 2008
@@ -955,7 +955,7 @@
// clear the existing order terms
cart.removeOrderTerms();
// set order terms based on agreement terms
- List agreementTerms = agreement.getRelated("AgreementTerm");
+ List agreementTerms = EntityUtil.filterByDate(agreement.getRelated("AgreementTerm"));
if (agreementTerms.size() > 0) {
for (int i = 0; agreementTerms.size() > i;i++) {
GenericValue agreementTerm = (GenericValue) agreementTerms.get(i);