You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2012/05/29 06:16:02 UTC

svn commit: r1343501 - in /ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions: EditDailyHourReport.groovy EditWeekTimesheet.groovy ProductBilling.groovy SprintBacklogListItems.groovy SprintBacklogOptions.groovy

Author: doogie
Date: Tue May 29 04:16:02 2012
New Revision: 1343501

URL: http://svn.apache.org/viewvc?rev=1343501&view=rev
Log:
DEPRECATION: specialpurpose/scrum: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.

Modified:
    ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditDailyHourReport.groovy
    ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditWeekTimesheet.groovy
    ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/ProductBilling.groovy
    ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogListItems.groovy
    ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogOptions.groovy

Modified: ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditDailyHourReport.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditDailyHourReport.groovy?rev=1343501&r1=1343500&r2=1343501&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditDailyHourReport.groovy (original)
+++ ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditDailyHourReport.groovy Tue May 29 04:16:02 2012
@@ -90,7 +90,7 @@ lastEmplLeaveEntry = null;
 // retrieve work effort data when the workeffortId has changed.
 void retrieveWorkEffortData() {
         // get the planned number of hours
-        entryWorkEffort = lastTimeEntry.getRelatedOne("WorkEffort");
+        entryWorkEffort = lastTimeEntry.getRelatedOne("WorkEffort", false);
         if (entryWorkEffort) {
             plannedHours = entryWorkEffort.getRelated("WorkEffortSkillStandard");
             pHours = 0.00;

Modified: ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditWeekTimesheet.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditWeekTimesheet.groovy?rev=1343501&r1=1343500&r2=1343501&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditWeekTimesheet.groovy (original)
+++ ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/EditWeekTimesheet.groovy Tue May 29 04:16:02 2012
@@ -82,7 +82,7 @@ lastTimeEntry = null;
 // retrieve work effort data when the workeffortId has changed.
 void retrieveWorkEffortData() {
         // get the planned number of hours
-        entryWorkEffort = lastTimeEntry.getRelatedOne("WorkEffort");
+        entryWorkEffort = lastTimeEntry.getRelatedOne("WorkEffort", false);
         if (entryWorkEffort) {
             plannedHours = entryWorkEffort.getRelated("WorkEffortSkillStandard");
             pHours = 0.00;

Modified: ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/ProductBilling.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/ProductBilling.groovy?rev=1343501&r1=1343500&r2=1343501&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/ProductBilling.groovy (original)
+++ ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/ProductBilling.groovy Tue May 29 04:16:02 2012
@@ -35,7 +35,7 @@ orderBy = ["-fromDate"];
 // check if latest invoice generated is still in process so allow re-generation to correct errors
 entryIterator = delegator.find("ProjectSprintBacklogTaskAndTimeEntryTimeSheet", entryExprs, null, null, orderBy, null);
 while (entryItem = entryIterator.next()) {
-    invoice = entryItem.getRelatedOne("Invoice");
+    invoice = entryItem.getRelatedOne("Invoice", false);
     if (invoice.getString("statusId").equals("INVOICE_IN_PROCESS")) {
         context.partyIdFrom = invoice.partyIdFrom;
         context.partyId = invoice.partyId;

Modified: ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogListItems.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogListItems.groovy?rev=1343501&r1=1343500&r2=1343501&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogListItems.groovy (original)
+++ ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogListItems.groovy Tue May 29 04:16:02 2012
@@ -81,7 +81,7 @@ if (parameters.sprintId) {
     allTask = [];
     sprintList = delegator.findByAnd("CustRequestWorkEffort", ["workEffortId" : parameters.sprintId], null, false);
     sprintList.each { sprintMap ->
-        custMap = sprintMap.getRelatedOne("CustRequest");
+        custMap = sprintMap.getRelatedOne("CustRequest", false);
         //if ("RF_PROD_BACKLOG".equals(custMap.custRequestTypeId)) {
             totalbacklog += 1;
             if ("CRQ_REVIEWED".equals(custMap.statusId)){
@@ -102,7 +102,7 @@ if (parameters.sprintId) {
     totalTask = 0;
     if (allTask) {
         allTask.each { taskMap ->
-            workEffMap = taskMap.getRelatedOne("WorkEffort");
+            workEffMap = taskMap.getRelatedOne("WorkEffort", false);
             if (!"SCRUM_SPRINT".equals(workEffMap.workEffortTypeId)) {
                 totalTask += 1;
                 if ("STS_CREATED".equals(workEffMap.currentStatusId)){

Modified: ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogOptions.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogOptions.groovy?rev=1343501&r1=1343500&r2=1343501&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogOptions.groovy (original)
+++ ofbiz/trunk/specialpurpose/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogOptions.groovy Tue May 29 04:16:02 2012
@@ -25,7 +25,7 @@ sprintId = null;
 custRequestWorkEffortList = custRequestMap.getRelated("CustRequestWorkEffort");
 if (custRequestWorkEffortList) {
     custRequestWorkEffortList.each { custWorkEffortMap ->
-        workEffortMap = custWorkEffortMap.getRelatedOne("WorkEffort");
+        workEffortMap = custWorkEffortMap.getRelatedOne("WorkEffort", false);
         if ("SCRUM_SPRINT".equals(workEffortMap.workEffortTypeId) && "SPRINT_ACTIVE".equals(workEffortMap.currentStatusId)) {
             sprintId = workEffortMap.workEffortId;
             sprintStatusId = "SPRINT_ACTIVE";