svn commit: r1744926 - /ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java

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

svn commit: r1744926 - /ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java

Mridul Pathak-5
Author: mridulpathak
Date: Sat May 21 12:26:10 2016
New Revision: 1744926

URL: http://svn.apache.org/viewvc?rev=1744926&view=rev
Log:
[OFBIZ-7097] RUN MRP is not working properly for multiple facilities. It deletes the 'Proposed' requirements for all facilities and creates only for selected facility. Thanks Ankit Joshi for reporting the issue and providing the patch. Applied fix from trunk r1744925.

Modified:
    ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java

Modified: ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java?rev=1744926&r1=1744925&r2=1744926&view=diff
==============================================================================
--- ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java (original)
+++ ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java Sat May 21 12:26:10 2016
@@ -94,7 +94,7 @@ public class MrpServices {
         List<GenericValue> listResultRoles = new LinkedList<GenericValue>();
         try {
             listResult = EntityQuery.use(delegator).from("Requirement")
-                    .where("requirementTypeId", "PRODUCT_REQUIREMENT",
+                    .where("requirementTypeId", "PRODUCT_REQUIREMENT","facilityId", facilityId,
                             "statusId", "REQ_PROPOSED")
                     .queryList();
         } catch (GenericEntityException e) {
@@ -115,7 +115,7 @@ public class MrpServices {
         listResult = null;
         try {
             listResult = EntityQuery.use(delegator).from("Requirement")
-                    .where("requirementTypeId", "INTERNAL_REQUIREMENT",
+                    .where("requirementTypeId", "INTERNAL_REQUIREMENT","facilityId", facilityId,
                             "statusId", "REQ_PROPOSED")
                     .queryList();
         } catch (GenericEntityException e) {