svn commit: r533805 - in /ofbiz/branches/release4.0/applications: order/servicedef/ order/src/org/ofbiz/order/order/ order/webapp/ordermgr/WEB-INF/actions/order/ order/webapp/ordermgr/order/ party/webapp/partymgr/party/ party/widget/partymgr/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r533805 - in /ofbiz/branches/release4.0/applications: order/servicedef/ order/src/org/ofbiz/order/order/ order/webapp/ordermgr/WEB-INF/actions/order/ order/webapp/ordermgr/order/ party/webapp/partymgr/party/ party/widget/partymgr/

rayb-2
Author: rayb
Date: Mon Apr 30 10:12:06 2007
New Revision: 533805

URL: http://svn.apache.org/viewvc?view=rev&rev=533805
Log:
Applied fix from trunk for revision: 533801
Bug fixes for the findorders screen and new underlying service, hopefully all sorted now including links in from other screens. OFBIZ-933

Modified:
    ofbiz/branches/release4.0/applications/order/servicedef/services.xml
    ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java
    ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/order/findOrders.bsh
    ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl
    ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/findparty.ftl
    ofbiz/branches/release4.0/applications/party/widget/partymgr/CommonScreens.xml

Modified: ofbiz/branches/release4.0/applications/order/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/servicedef/services.xml?view=diff&rev=533805&r1=533804&r2=533805
==============================================================================
--- ofbiz/branches/release4.0/applications/order/servicedef/services.xml (original)
+++ ofbiz/branches/release4.0/applications/order/servicedef/services.xml Mon Apr 30 10:12:06 2007
@@ -700,6 +700,7 @@
         <attribute name="useEntryDate" type="String" mode="IN" optional="true"/> <!-- Y/N use entryDate instead of orderDate -->
         <attribute name="minDate" type="String" mode="IN" optional="true"/> <!-- converted to Timestamp -->
         <attribute name="maxDate" type="String" mode="IN" optional="true"/> <!-- converted to Timestamp -->
+        <attribute name="hasBackOrders" type="String" mode="IN" optional="true"/> <!-- Y to only show orders with items on backorder -->
 
         <!-- order role fields -->
         <attribute name="userLoginId" type="String" mode="IN" optional="true"/>

Modified: ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java?view=diff&rev=533805&r1=533804&r2=533805
==============================================================================
--- ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java (original)
+++ ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java Mon Apr 30 10:12:06 2007
@@ -113,6 +113,7 @@
                     orExprs.add(new EntityExpr("orderTypeId", EntityOperator.EQUALS, orderTypeId));
                 }
             }
+            conditions.add(new EntityConditionList(orExprs, EntityOperator.OR));
         }
 
         String orderName = (String) context.get("orderName");
@@ -225,7 +226,7 @@
         }
 
         String maxDate = (String) context.get("maxDate");
-        if (UtilValidate.isNotEmpty(minDate) && maxDate.length() > 8) {
+        if (UtilValidate.isNotEmpty(maxDate) && maxDate.length() > 8) {
             maxDate = maxDate.trim();
             if (maxDate.length() < 14) maxDate = maxDate + " " + "23:59:59.999";
             paramList.add("maxDate=" + maxDate);

Modified: ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/order/findOrders.bsh
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/order/findOrders.bsh?view=diff&rev=533805&r1=533804&r2=533805
==============================================================================
--- ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/order/findOrders.bsh (original)
+++ ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/order/findOrders.bsh Mon Apr 30 10:12:06 2007
@@ -150,6 +150,11 @@
 orderListSize = request.getAttribute("orderListSize");
 context.put("orderListSize", orderListSize);
 
+context.put("filterInventoryProblems", request.getAttribute("filterInventoryProblemsList"));
+context.put("filterPOsWithRejectedItems", request.getAttribute("filterPOsWithRejectedItemsList"));
+context.put("filterPOsOpenPastTheirETA", request.getAttribute("filterPOsOpenPastTheirETAList"));
+context.put("filterPartiallyReceivedPOs", request.getAttribute("filterPartiallyReceivedPOsList"));  
+
 lowIndex = request.getAttribute("lowIndex");
 context.put("lowIndex", lowIndex);
 

Modified: ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl?view=diff&rev=533805&r1=533804&r2=533805
==============================================================================
--- ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl (original)
+++ ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl Mon Apr 30 10:12:06 2007
@@ -55,7 +55,7 @@
                 <span>&nbsp;(<a href="${customerDetailLink}${partyId}" target="partymgr" class="buttontext">${partyId}</a>)</span>
                 <span>
                    <a href="<@ofbizUrl>/orderentry?partyId=${partyId}&amp;orderTypeId=${orderHeader.orderTypeId}</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderNewOrder}</a>
-                   <a href="<@ofbizUrl>/findorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyId}</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderOtherOrders}</a>
+                   <a href="<@ofbizUrl>/searchorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyId}&amp;viewIndex=0&amp;viewSize=10</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderOtherOrders}</a>
                 </span>
               </#if>
             </div>

Modified: ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/findparty.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/findparty.ftl?view=diff&rev=533805&r1=533804&r2=533805
==============================================================================
--- ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/findparty.ftl (original)
+++ ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/findparty.ftl Mon Apr 30 10:12:06 2007
@@ -247,7 +247,7 @@
           <td class="button-col align-float">
               <a href="<@ofbizUrl>viewprofile?partyId=${partyRow.partyId}</@ofbizUrl>">${uiLabelMap.CommonDetails}</a>
               <#if security.hasRolePermission("ORDERMGR", "_VIEW", "", "", session)>
-                <a href="/ordermgr/control/findorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyRow.partyId + externalKeyParam}">${uiLabelMap.OrderOrders}</a>
+                <a href="/ordermgr/control/searchorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyRow.partyId + externalKeyParam}&amp;viewIndex=0&amp;viewSize=10">${uiLabelMap.OrderOrders}</a>
                 <a href="/ordermgr/control/FindQuote?partyId=${partyRow.partyId + externalKeyParam}">${uiLabelMap.OrderOrderQuotes}</a>
               </#if>
               <#if security.hasEntityPermission("ORDERMGR", "_CREATE", session)>

Modified: ofbiz/branches/release4.0/applications/party/widget/partymgr/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/party/widget/partymgr/CommonScreens.xml?view=diff&rev=533805&r1=533804&r2=533805
==============================================================================
--- ofbiz/branches/release4.0/applications/party/widget/partymgr/CommonScreens.xml (original)
+++ ofbiz/branches/release4.0/applications/party/widget/partymgr/CommonScreens.xml Mon Apr 30 10:12:06 2007
@@ -76,7 +76,7 @@
                                             <section>
                                                 <condition><if-has-permission permission="ORDERMGR" action="_VIEW"/></condition>
                                                 <widgets>
-                                                    <link target="/ordermgr/control/findorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyId}&amp;externalLoginKey=${externalLoginKey}" url-mode="inter-app"
+                                                    <link target="/ordermgr/control/searchorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyId}&amp;externalLoginKey=${externalLoginKey}&amp;viewIndex=0&amp;viewSize=10" url-mode="inter-app"
                                                         text="${uiLabelMap.OrderOrders}"/>
                                                     <link target="/ordermgr/control/FindQuote?partyId=${partyId}&amp;externalLoginKey=${externalLoginKey}" url-mode="inter-app"
                                                         text="${uiLabelMap.OrderOrderQuotes}" style="buttontext"/>
@@ -223,7 +223,7 @@
                                             <section>
                                                 <condition><if-has-permission permission="ORDERMGR" action="_VIEW"/></condition>
                                                 <widgets>
-                                                    <link target="/ordermgr/control/findorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyId}" url-mode="inter-app"
+                                                    <link target="/ordermgr/control/searchorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyId}&amp;viewIndex=0&amp;viewSize=10" url-mode="inter-app"
                                                         text="${uiLabelMap.OrderOrders}"/>
                                                 </widgets>
                                             </section>