Author: doogie
Date: Tue May 29 04:18:05 2012
New Revision: 1343513
URL: http://svn.apache.org/viewvc?rev=1343513&view=rev
Log:
DEPRECATION: applications/manufacturing:
GenericValue.getRelated/getRelatedCache variants replaced with a getRelated
that takes a boolean useCache parameter.
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunHelper.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/techdata/TechDataServices.java
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/EditProductBom.groovy
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunFixedAssets.groovy
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.groovy
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/productionRunAllFixedAssets.groovy
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/reports/ShipmentLabel.groovy
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionWeek.groovy
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java
Tue May 29 04:18:05 2012
@@ -613,16 +613,16 @@ public class BOMNode {
}
List<GenericValue> pfs = null;
if (UtilValidate.isEmpty(facilityId)) {
- pfs = getProduct().getRelatedCache("ProductFacility");
+ pfs = getProduct().getRelated("ProductFacility", null, null,
true);
} else {
- pfs = getProduct().getRelatedCache("ProductFacility",
UtilMisc.toMap("facilityId", facilityId), null);
+ pfs = getProduct().getRelated("ProductFacility",
UtilMisc.toMap("facilityId", facilityId), null, true);
}
if (UtilValidate.isEmpty(pfs)) {
if (getSubstitutedNode() != null &&
getSubstitutedNode().getProduct() != null) {
if (UtilValidate.isEmpty(facilityId)) {
- pfs =
getSubstitutedNode().getProduct().getRelatedCache("ProductFacility");
+ pfs =
getSubstitutedNode().getProduct().getRelated("ProductFacility", null, null,
true);
} else {
- pfs =
getSubstitutedNode().getProduct().getRelatedCache("ProductFacility",
UtilMisc.toMap("facilityId", facilityId), null);
+ pfs =
getSubstitutedNode().getProduct().getRelated("ProductFacility",
UtilMisc.toMap("facilityId", facilityId), null, true);
}
}
}
@@ -649,7 +649,7 @@ public class BOMNode {
public boolean isManufactured(boolean ignoreSupplierProducts) {
List<GenericValue> supplierProducts = null;
try {
- supplierProducts = product.getRelated("SupplierProduct",
UtilMisc.toMap("supplierPrefOrderId", "10_MAIN_SUPPL"),
UtilMisc.toList("minimumOrderQuantity"));
+ supplierProducts = product.getRelated("SupplierProduct",
UtilMisc.toMap("supplierPrefOrderId", "10_MAIN_SUPPL"),
UtilMisc.toList("minimumOrderQuantity"), false);
} catch (GenericEntityException gee) {
Debug.logError("Problem in BOMNode.isManufactured()", module);
}
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
Tue May 29 04:18:05 2012
@@ -165,7 +165,7 @@ public class ProductionRun {
if (exist()) {
if (productProduced == null) {
try {
- List<GenericValue> productionRunProducts =
productionRun.getRelated("WorkEffortGoodStandard",
UtilMisc.toMap("workEffortGoodStdTypeId", "PRUN_PROD_DELIV"), null);
+ List<GenericValue> productionRunProducts =
productionRun.getRelated("WorkEffortGoodStandard",
UtilMisc.toMap("workEffortGoodStdTypeId", "PRUN_PROD_DELIV"), null, false);
this.productionRunProduct =
EntityUtil.getFirst(productionRunProducts);
quantity =
productionRunProduct.getBigDecimal("estimatedQuantity");
productProduced =
productionRunProduct.getRelatedOne("Product", true);
@@ -332,7 +332,7 @@ public class ProductionRun {
GenericValue routingTask;
for (Iterator<GenericValue> iter =
productionRunRoutingTasks.iterator(); iter.hasNext();) {
routingTask = iter.next();
-
productionRunComponents.addAll(routingTask.getRelated("WorkEffortGoodStandard",
UtilMisc.toMap("workEffortGoodStdTypeId", "PRUNT_PROD_NEEDED"),null));
+
productionRunComponents.addAll(routingTask.getRelated("WorkEffortGoodStandard",
UtilMisc.toMap("workEffortGoodStdTypeId", "PRUNT_PROD_NEEDED"),null, false));
}
} catch (GenericEntityException e) {
Debug.logWarning(e.getMessage(), module);
@@ -351,7 +351,7 @@ public class ProductionRun {
if (exist()) {
if (productionRunRoutingTasks == null) {
try {
- productionRunRoutingTasks =
productionRun.getRelated("ChildWorkEffort",UtilMisc.toMap("workEffortTypeId","PROD_ORDER_TASK"),UtilMisc.toList("priority"));
+ productionRunRoutingTasks =
productionRun.getRelated("ChildWorkEffort",UtilMisc.toMap("workEffortTypeId","PROD_ORDER_TASK"),UtilMisc.toList("priority"),
false);
} catch (GenericEntityException e) {
Debug.logWarning(e.getMessage(), module);
}
@@ -369,7 +369,7 @@ public class ProductionRun {
if (exist()) {
if (productionRunRoutingTasks == null) {
try {
- productionRunRoutingTasks =
productionRun.getRelated("ChildWorkEffort",UtilMisc.toMap("workEffortTypeId","PROD_ORDER_TASK"),UtilMisc.toList("priority"));
+ productionRunRoutingTasks =
productionRun.getRelated("ChildWorkEffort",UtilMisc.toMap("workEffortTypeId","PROD_ORDER_TASK"),UtilMisc.toList("priority"),
false);
} catch (GenericEntityException e) {
Debug.logWarning(e.getMessage(), module);
}
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunHelper.java?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunHelper.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunHelper.java
Tue May 29 04:18:05 2012
@@ -59,11 +59,11 @@ public class ProductionRunHelper {
if (productionRunId != null) {
GenericValue productionRun = delegator.findOne("WorkEffort",
UtilMisc.toMap("workEffortId", productionRunId), false);
if (productionRun != null) {
- List<GenericValue> productionRunProducts =
productionRun.getRelated("WorkEffortGoodStandard",
UtilMisc.toMap("workEffortGoodStdTypeId", "PRUN_PROD_DELIV"),null);
+ List<GenericValue> productionRunProducts =
productionRun.getRelated("WorkEffortGoodStandard",
UtilMisc.toMap("workEffortGoodStdTypeId", "PRUN_PROD_DELIV"),null, false);
GenericValue productionRunProduct =
EntityUtil.getFirst(productionRunProducts);
GenericValue productProduced =
productionRunProduct.getRelatedOne("Product", true);
- List<GenericValue> productionRunComponents =
productionRun.getRelated("WorkEffortGoodStandard",
UtilMisc.toMap("workEffortGoodStdTypeId", "PRUNT_PROD_NEEDED"),null);
- List<GenericValue> productionRunRoutingTasks =
productionRun.getRelated("FromWorkEffortAssoc",UtilMisc.toMap("workEffortTypeId","PROD_ORDER_TASK"),null);
+ List<GenericValue> productionRunComponents =
productionRun.getRelated("WorkEffortGoodStandard",
UtilMisc.toMap("workEffortGoodStdTypeId", "PRUNT_PROD_NEEDED"),null, false);
+ List<GenericValue> productionRunRoutingTasks =
productionRun.getRelated("FromWorkEffortAssoc",UtilMisc.toMap("workEffortTypeId","PROD_ORDER_TASK"),null,
false);
result.put("productionRunProduct", productionRunProduct);
result.put("productProduced", productProduced);
result.put("productionRunComponents",
productionRunComponents);
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
Tue May 29 04:18:05 2012
@@ -1624,7 +1624,7 @@ public class ProductionRunServices {
GenericValue orderItem = null;
try {
// Find the related order item (if exists)
- List<GenericValue> orderItems =
productionRun.getGenericValue().getRelated("WorkOrderItemFulfillment");
+ List<GenericValue> orderItems =
productionRun.getGenericValue().getRelated("WorkOrderItemFulfillment", null,
null, false);
orderItem = EntityUtil.getFirst(orderItems);
} catch (GenericEntityException e) {
Debug.logWarning(e.getMessage(), module);
@@ -2077,7 +2077,7 @@ public class ProductionRunServices {
}
if (quantityToProduce.compareTo(ZERO) > 0) {
try {
- List<GenericValue> components =
theTask.getRelated("WorkEffortGoodStandard");
+ List<GenericValue> components =
theTask.getRelated("WorkEffortGoodStandard", null, null, false);
for (GenericValue component : components) {
BigDecimal totalRequiredMaterialQuantity =
component.getBigDecimal("estimatedQuantity").multiply(totalQuantityProduced).divide(quantityToProduce,
rounding);
// now get the units that have been already issued and
subtract them
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
Tue May 29 04:18:05 2012
@@ -104,7 +104,7 @@ public class MrpServices {
if (listResult != null) {
try {
for(GenericValue tmpRequirement : listResult) {
-
listResultRoles.addAll(tmpRequirement.getRelated("RequirementRole"));
+
listResultRoles.addAll(tmpRequirement.getRelated("RequirementRole", null, null,
false));
//int numOfRecordsRemoved =
delegator.removeRelated("RequirementRole", tmpRequirement);
}
delegator.removeAll(listResultRoles);
@@ -595,7 +595,7 @@ public class MrpServices {
if (UtilValidate.isEmpty(facilityGroup)) {
return
ServiceUtil.returnError(UtilProperties.getMessage(resource,
"ManufacturingMrpFacilityGroupIsNotValid", UtilMisc.toMap("facilityGroupId",
facilityGroupId), locale));
}
- List<GenericValue> facilities =
facilityGroup.getRelated("FacilityGroupMember", UtilMisc.toList("sequenceNum"));
+ List<GenericValue> facilities =
facilityGroup.getRelated("FacilityGroupMember", null,
UtilMisc.toList("sequenceNum"), false);
if (UtilValidate.isEmpty(facilities)) {
return
ServiceUtil.returnError(UtilProperties.getMessage(resource,
"ManufacturingMrpFacilityGroupIsNotAssociatedToFacility",
UtilMisc.toMap("facilityGroupId", facilityGroupId), locale));
}
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/techdata/TechDataServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/techdata/TechDataServices.java?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/techdata/TechDataServices.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/techdata/TechDataServices.java
Tue May 29 04:18:05 2012
@@ -185,7 +185,7 @@ public class TechDataServices {
}
} else {
try {
- List<GenericValue> machines =
machineGroup.getRelatedCache("ChildFixedAsset");
+ List<GenericValue> machines =
machineGroup.getRelated("ChildFixedAsset", null, null, true);
if (machines != null && machines.size()>0) {
GenericValue machine = EntityUtil.getFirst(machines);
techDataCalendar =
machine.getRelatedOne("TechDataCalendar", true);
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/EditProductBom.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/EditProductBom.groovy?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/EditProductBom.groovy
(original)
+++
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/EditProductBom.groovy
Tue May 29 04:18:05 2012
@@ -65,10 +65,10 @@ Collection formulae = delegator.findByAn
context.formulae = formulae;
if (product) {
- assocFromProducts = product.getRelated("MainProductAssoc",
(productAssocTypeId ? [productAssocTypeId : productAssocTypeId]: [:]),
["sequenceNum","productId"]);
+ assocFromProducts = product.getRelated("MainProductAssoc",
(productAssocTypeId ? [productAssocTypeId : productAssocTypeId]: [:]),
["sequenceNum","productId"], false);
if (assocFromProducts) context.assocFromProducts = assocFromProducts;
- assocToProducts = product.getRelated("AssocProductAssoc",
(productAssocTypeId ? [productAssocTypeId : productAssocTypeId]: [:]),
["sequenceNum","productId"]);
+ assocToProducts = product.getRelated("AssocProductAssoc",
(productAssocTypeId ? [productAssocTypeId : productAssocTypeId]: [:]),
["sequenceNum","productId"], false);
if (assocToProducts) context.assocToProducts = assocToProducts;
}
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunFixedAssets.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunFixedAssets.groovy?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunFixedAssets.groovy
(original)
+++
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunFixedAssets.groovy
Tue May 29 04:18:05 2012
@@ -24,7 +24,7 @@ productionRunId = parameters.productionR
taskInfos = [];
tasks = delegator.findByAnd("WorkEffort", [workEffortParentId :
productionRunId, workEffortTypeId : "PROD_ORDER_TASK"], ["workEffortId"],
false);
tasks.each { task ->
- records = task.getRelated("WorkEffortFixedAssetAssign");
+ records = task.getRelated("WorkEffortFixedAssetAssign", null, null, false);
HtmlFormWrapper taskForm = new
HtmlFormWrapper("component://manufacturing/widget/manufacturing/ProductionRunForms.xml",
"ProductionRunTaskFixedAssets", request, response);
taskForm.putInContext("records", records);
taskInfos.add([task : task, taskForm : taskForm]);
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.groovy?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.groovy
(original)
+++
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.groovy
Tue May 29 04:18:05 2012
@@ -43,7 +43,7 @@ if (shipmentPlans) {
// Total quantity issued
issuedQuantity = 0.0;
qtyIssuedInShipment = [:];
- issuances = orderItem.getRelated("ItemIssuance");
+ issuances = orderItem.getRelated("ItemIssuance", null, null, false);
issuances.each { issuance ->
if (issuance.quantity) {
issuedQuantity += issuance.quantity;
@@ -98,7 +98,7 @@ if (shipmentPlans) {
// Reserved and Not Available quantity
reservedQuantity = 0.0;
reservedNotAvailable = 0.0;
- reservations = orderItem.getRelated("OrderItemShipGrpInvRes");
+ reservations = orderItem.getRelated("OrderItemShipGrpInvRes", null,
null, false);
reservations.each { reservation ->
if (reservation.quantity) {
reservedQuantity += reservation.quantity;
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/productionRunAllFixedAssets.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/productionRunAllFixedAssets.groovy?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/productionRunAllFixedAssets.groovy
(original)
+++
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/productionRunAllFixedAssets.groovy
Tue May 29 04:18:05 2012
@@ -28,7 +28,7 @@ if (productionRunId) {
productionRunFixedAssetsData = FastList.newInstance();
productionRunRoutingTasks =
productionRun.getProductionRunRoutingTasks();
productionRunRoutingTasks.each { prodRunTask ->
- taskFixedAssets =
prodRunTask.getRelated("WorkEffortFixedAssetAssign");
+ taskFixedAssets =
prodRunTask.getRelated("WorkEffortFixedAssetAssign", null, null, false);
productionRunFixedAssetsData.addAll(taskFixedAssets);
}
context.productionRunFixedAssetsData = productionRunFixedAssetsData;
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/reports/ShipmentLabel.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/reports/ShipmentLabel.groovy?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/reports/ShipmentLabel.groovy
(original)
+++
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/reports/ShipmentLabel.groovy
Tue May 29 04:18:05 2012
@@ -33,7 +33,7 @@ if (shipment) {
shipmentPackageComponents =
delegator.findByAnd("ShipmentPackageContent", [shipmentId : shipmentId,
shipmentPackageSeqId : shipmentPackage.shipmentPackageSeqId], null, false);
shipmentPackageComponents.each { shipmentPackageComponent ->
shipmentItem =
shipmentPackageComponent.getRelatedOne("ShipmentItem", false);
- orderShipments = shipmentItem.getRelated("OrderShipment");
+ orderShipments = shipmentItem.getRelated("OrderShipment", null,
null, false);
orderShipment = EntityUtil.getFirst(orderShipments);
String orderId = null;
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy
(original)
+++
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy
Tue May 29 04:18:05 2012
@@ -36,7 +36,7 @@ if (calendarId) {
techDataCalendar = delegator.findOne("TechDataCalendar", [calendarId :
calendarId], false);
}
if (techDataCalendar) {
- calendarExceptionDays =
techDataCalendar.getRelated("TechDataCalendarExcDay");
+ calendarExceptionDays =
techDataCalendar.getRelated("TechDataCalendarExcDay", null, null, false);
}
HtmlFormWrapper listCalendarExceptionDayWrapper = new
HtmlFormWrapper("component://manufacturing/widget/manufacturing/CalendarForms.xml",
"ListCalendarExceptionDay", request, response);
listCalendarExceptionDayWrapper.putInContext("calendarExceptionDays",
calendarExceptionDays);
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionWeek.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionWeek.groovy?rev=1343513&r1=1343512&r2=1343513&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionWeek.groovy
(original)
+++
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionWeek.groovy
Tue May 29 04:18:05 2012
@@ -34,7 +34,7 @@ if (calendarId) {
techDataCalendar = delegator.findOne("TechDataCalendar", [calendarId :
calendarId], false);
}
if (techDataCalendar) {
- calendarExceptionWeeks =
techDataCalendar.getRelated("TechDataCalendarExcWeek");
+ calendarExceptionWeeks =
techDataCalendar.getRelated("TechDataCalendarExcWeek", null, null, false);
}
calendarExceptionWeeksDatas = [];
calendarExceptionWeeks.each { calendarExceptionWeek ->