Improved: Corrected some line is longer than 150 characters checkstyle issues. Also fixed some extra spaces and naming conventions related checkstyle issues.

(OFBIZ-11921)
This commit is contained in:
Suraj Khurana
2020-08-03 10:07:16 +05:30
parent 743c627f40
commit 30f796146c
48 changed files with 1055 additions and 798 deletions
@@ -42,7 +42,8 @@ public class Various {
GenericValue nextTask = assoc.getRelatedOne("ToWorkEffort", false);
Timestamp newStartDate = task.getTimestamp("estimatedCompletionDate"); // start of next task the next day
if (nextTask.get("estimatedStartDate") == null || nextTask.getTimestamp("estimatedStartDate").before(newStartDate)) {
nextTask.put("estimatedStartDate", UtilDateTime.addDaysToTimestamp(task.getTimestamp("estimatedCompletionDate"), 1)); // start of next task the next day
nextTask.put("estimatedStartDate", UtilDateTime.addDaysToTimestamp(task.getTimestamp("estimatedCompletionDate"), 1));
// start of next task the next day
nextTask.put("estimatedCompletionDate", calculateCompletionDate(nextTask, task.getTimestamp("estimatedCompletionDate")));
nextTask.store();
}