[OFBiz] SVN: r6070 - trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order

sichen at svn.ofbiz.org sichen at svn.ofbiz.org
Fri Nov 4 12:24:30 EST 2005


Author: sichen
Date: 2005-11-04 11:24:27 -0600 (Fri, 04 Nov 2005)
New Revision: 6070

Modified:
   trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh
Log:
Added check to show only facilities which are owned by the buyer on the purchase order when giving the user facilities to receive a purchase order into

Modified: trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh
===================================================================
--- trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh	2005-11-04 17:00:04 UTC (rev 6069)
+++ trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh	2005-11-04 17:24:27 UTC (rev 6070)
@@ -227,9 +227,10 @@
     context.put("availableToPromiseMap", inventorySummary.get("availableToPromiseMap"));
     context.put("quantityOnHandMap", inventorySummary.get("availableToPromiseMap"));
 
-    // get a list of facilities for purchase orders to receive against
+    // get a list of facilities for purchase orders to receive against.  These facilities must be owned by the bill-to party of the purchase order.
     if ("PURCHASE_ORDER".equals(orderType)) {
-        context.put("facilities", delegator.findAllCache("Facility"));
+        facilities = delegator.findByAndCache("Facility", UtilMisc.toMap("ownerPartyId", orderReadHelper.getBillToParty().getString("partyId")));
+        context.put("facilities", facilities);
     }
 }
 



More information about the Svn mailing list