svn commit: r788929 - in /ofbiz/trunk/applications/order/webapp/ordermgr: WEB-INF/actions/entry/CheckInits.groovy entry/checkinits.ftl

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

svn commit: r788929 - in /ofbiz/trunk/applications/order/webapp/ordermgr: WEB-INF/actions/entry/CheckInits.groovy entry/checkinits.ftl

mor-2
Author: mor
Date: Sat Jun 27 06:44:55 2009
New Revision: 788929

URL: http://svn.apache.org/viewvc?rev=788929&view=rev
Log:
Supplier drop-down on Order Entry page now also display supplier partyId along with the supplier name. The new list is alphabetically sorted on supplier name.
Applied patch from Akash Jain, part of OFBIZ-2663 (https://issues.apache.org/jira/browse/OFBIZ-2663).

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy
    ofbiz/trunk/applications/order/webapp/ordermgr/entry/checkinits.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy?rev=788929&r1=788928&r2=788929&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy Sat Jun 27 06:44:55 2009
@@ -45,7 +45,7 @@
 productStores = delegator.findList("ProductStore", null, null, ["storeName"], null, true);
 context.productStores = productStores;
 
-suppliers = delegator.findByAnd("PartyRole", [roleTypeId : "SUPPLIER"], ["partyId"]);
+suppliers = delegator.findByAnd("PartyRoleAndPartyDetail", [roleTypeId : "SUPPLIER"], ["groupName", "partyId"]);
 context.suppliers = suppliers;
 
 organizations = delegator.findByAnd("PartyRole", [roleTypeId : "INTERNAL_ORGANIZATIO"]);

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/checkinits.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/checkinits.ftl?rev=788929&r1=788928&r2=788929&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/checkinits.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/checkinits.ftl Sat Jun 27 06:44:55 2009
@@ -190,7 +190,7 @@
               <select name="supplierPartyId"<#if sessionAttributes.orderMode?default("") == "SALES_ORDER"> disabled</#if>>
                 <option value="">${uiLabelMap.OrderSelectSupplier}</option>
                 <#list suppliers as supplier>
-                  <option value="${supplier.partyId}"<#if supplier.partyId == thisPartyId> selected</#if>>${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(supplier, true)}</option>
+                  <option value="${supplier.partyId}"<#if supplier.partyId == thisPartyId> selected</#if>>[${supplier.partyId}] - ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(supplier, true)}</option>
                 </#list>
               </select>
             </div>