ilscipio/scipio-erp

View on GitHub
applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java

Summary

Maintainability
F
1 wk
Test Coverage

ProductionRunServices has 35 methods (exceeds 20 allowed). Consider refactoring.
Open

public class ProductionRunServices {

    private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
    public static final String resource = "ManufacturingUiLabels";
    public static final String resourceOrder = "OrderErrorUiLabels";

    Avoid deeply nested control flow statements.
    Open

                            if (Debug.infoOn()) Debug.logInfo("ProductLink created for productId: " + productBom.getString("productIdTo"), module);

      Avoid deeply nested control flow statements.
      Open

                                  if (componentsLocationMap != null) {
                                      componentsLocation = UtilGenerics.checkMap(componentsLocationMap.get(key));
                                  }

        Avoid deeply nested control flow statements.
        Open

                                if (! priority.equals(routingTask.get("priority"))) {
                                    routingTask.set("priority", priority);
                                    // update the routingTask List and re-read it to be able to have it sorted with the new value
                                    if (! productionRun.store()) {
                                        Debug.logError("productionRun.store(), in routingTask.priority update, fail for productionRunId ="+productionRunId,module);

          Avoid deeply nested control flow statements.
          Open

                                  if (first) {    // for the first routingTask the estimatedStartDate update imply estimatedStartDate productonRun update
                                      if (! estimatedStartDate.equals(pRestimatedStartDate)) {
                                          productionRun.setEstimatedStartDate(estimatedStartDate);
                                      }
                                  }

            Avoid deeply nested control flow statements.
            Open

                                        if (ServiceUtil.isError(serviceResult)) {
                                            return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));
                                        }

              Avoid deeply nested control flow statements.
              Open

                                          if (componentsLocation != null) {
                                              serviceContext.put("locationSeqId", componentsLocation.get("locationSeqId"));
                                              serviceContext.put("secondaryLocationSeqId", componentsLocation.get("secondaryLocationSeqId"));
                                              serviceContext.put("failIfItemsAreNotAvailable", componentsLocation.get("failIfItemsAreNotAvailable"));
                                          }

                Avoid deeply nested control flow statements.
                Open

                                            if (ServiceUtil.isError(serviceResult)) {
                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));
                                            }

                  Avoid deeply nested control flow statements.
                  Open

                                              if (issued != null) {
                                                  totalIssued = totalIssued.add(issued);
                                              }

                    Avoid deeply nested control flow statements.
                    Open

                                                if (ServiceUtil.isError(result)) {
                                                    return ServiceUtil.returnError(ServiceUtil.getErrorMessage(result));
                                                }

                      Method createProductionRunComments has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          private static Map<String, Object> createProductionRunComments(LocalDispatcher dispatcher, String productionRunId, String comments, String description, GenericValue userLogin,
                                  String internalNote) {

                        Method createProductionRunComments has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            private static Map<String, Object> createProductionRunComments(LocalDispatcher dispatcher, String productionRunId, String comments, String description, GenericValue userLogin) {

                          Avoid too many return statements within this method.
                          Open

                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                            Avoid too many return statements within this method.
                            Open

                                        return result;

                              Avoid too many return statements within this method.
                              Open

                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                Avoid too many return statements within this method.
                                Open

                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                  Avoid too many return statements within this method.
                                  Open

                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                    Avoid too many return statements within this method.
                                    Open

                                                            return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToFindCosts", locale));

                                      Avoid too many return statements within this method.
                                      Open

                                                                      return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                        Avoid too many return statements within this method.
                                        Open

                                                            return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotUpdated", locale));

                                          Avoid too many return statements within this method.
                                          Open

                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunComponentNotAdded", locale));

                                            Avoid too many return statements within this method.
                                            Open

                                                            return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                              Avoid too many return statements within this method.
                                              Open

                                                          return result;

                                                Avoid too many return statements within this method.
                                                Open

                                                                        return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                  Avoid too many return statements within this method.
                                                  Open

                                                              return result;

                                                    Avoid too many return statements within this method.
                                                    Open

                                                                            return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                      Avoid too many return statements within this method.
                                                      Open

                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                        Avoid too many return statements within this method.
                                                        Open

                                                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(result));

                                                          Avoid too many return statements within this method.
                                                          Open

                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                            Avoid too many return statements within this method.
                                                            Open

                                                                        return ServiceUtil.returnError(e.getMessage());

                                                              Avoid too many return statements within this method.
                                                              Open

                                                                              return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                Avoid too many return statements within this method.
                                                                Open

                                                                        return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotUpdated", locale));

                                                                  Avoid too many return statements within this method.
                                                                  Open

                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToCreateMaterialsCosts", UtilMisc.toMap("productionRunTaskId", productionRunTaskId, "errorString", e.getMessage()), locale));

                                                                    Avoid too many return statements within this method.
                                                                    Open

                                                                            return result;

                                                                      Avoid too many return statements within this method.
                                                                      Open

                                                                                      return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                        Avoid too many return statements within this method.
                                                                        Open

                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingAddProductionRunRoutingTaskNotCreated", locale));

                                                                          Avoid too many return statements within this method.
                                                                          Open

                                                                                          return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                            Avoid too many return statements within this method.
                                                                            Open

                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                              Avoid too many return statements within this method.
                                                                              Open

                                                                                          return result;

                                                                                Avoid too many return statements within this method.
                                                                                Open

                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                  Avoid too many return statements within this method.
                                                                                  Open

                                                                                                          return ServiceUtil.returnError(ServiceUtil.getErrorMessage(outputMap));

                                                                                    Avoid too many return statements within this method.
                                                                                    Open

                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToCreateRoutingCosts", UtilMisc.toMap("productionRunTaskId", productionRunTaskId, "errorString", ge.getMessage()), locale));

                                                                                      Avoid too many return statements within this method.
                                                                                      Open

                                                                                                          return ServiceUtil.returnSuccess();

                                                                                        Avoid too many return statements within this method.
                                                                                        Open

                                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                          Avoid too many return statements within this method.
                                                                                          Open

                                                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                            Avoid too many return statements within this method.
                                                                                            Open

                                                                                                                    return ServiceUtil.returnError(ServiceUtil.getErrorMessage(outputMap));

                                                                                              Avoid too many return statements within this method.
                                                                                              Open

                                                                                                          return result;

                                                                                                Avoid too many return statements within this method.
                                                                                                Open

                                                                                                            return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingRoutingTaskNotExists", locale));

                                                                                                  Avoid too many return statements within this method.
                                                                                                  Open

                                                                                                              return ServiceUtil.returnError(e.getMessage());

                                                                                                    Avoid too many return statements within this method.
                                                                                                    Open

                                                                                                                        return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                      Avoid too many return statements within this method.
                                                                                                      Open

                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                        Avoid too many return statements within this method.
                                                                                                        Open

                                                                                                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                          Avoid too many return statements within this method.
                                                                                                          Open

                                                                                                                              return ServiceUtil.returnError(e.getMessage());

                                                                                                            Avoid too many return statements within this method.
                                                                                                            Open

                                                                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                              Avoid too many return statements within this method.
                                                                                                              Open

                                                                                                                          return result;

                                                                                                                Avoid too many return statements within this method.
                                                                                                                Open

                                                                                                                            return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToCreateMaterialsCosts", UtilMisc.toMap("productionRunTaskId", productionRunTaskId, "errorString", ge.getMessage()), locale));

                                                                                                                  Avoid too many return statements within this method.
                                                                                                                  Open

                                                                                                                                      return ServiceUtil.returnSuccess();

                                                                                                                    Avoid too many return statements within this method.
                                                                                                                    Open

                                                                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                      Avoid too many return statements within this method.
                                                                                                                      Open

                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                        Avoid too many return statements within this method.
                                                                                                                        Open

                                                                                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                          Avoid too many return statements within this method.
                                                                                                                          Open

                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotUpdated", locale));

                                                                                                                            Avoid too many return statements within this method.
                                                                                                                            Open

                                                                                                                                            return ServiceUtil.returnError(e.getMessage());

                                                                                                                              Avoid too many return statements within this method.
                                                                                                                              Open

                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunCannotBeCancelled", locale));

                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                Open

                                                                                                                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                  Open

                                                                                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotUpdated", locale));

                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                    Open

                                                                                                                                                return result;

                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                      Open

                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                        Open

                                                                                                                                                                        return ServiceUtil.returnError(ServiceUtil.getErrorMessage(costMethodResult));

                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                          Open

                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                            Open

                                                                                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                              Open

                                                                                                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunTaskCannotStartDocsNotPrinted", locale));

                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                Open

                                                                                                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToFindOverheadCosts", UtilMisc.toMap("errorString", gse.getMessage()), locale));

                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                  Open

                                                                                                                                                                      return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                    Open

                                                                                                                                                            return result;

                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                      Open

                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                        Open

                                                                                                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChangedMandatoryProductionRunNotCompleted", locale));

                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                          Open

                                                                                                                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                            Open

                                                                                                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                              Open

                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToCreateRoutingCosts", UtilMisc.toMap("productionRunTaskId", productionRunTaskId, "errorString", e.getMessage()), locale));

                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                Open

                                                                                                                                                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                  Open

                                                                                                                                                                          return result;

                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                    Open

                                                                                                                                                                                    return ServiceUtil.returnError(ServiceUtil.getErrorMessage(outputMap));

                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                      Open

                                                                                                                                                                                      return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                        Open

                                                                                                                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                          Open

                                                                                                                                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                            Open

                                                                                                                                                                                    return result;

                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                              Open

                                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingAddProductionRunRoutingTaskNotCreated", locale));

                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                Open

                                                                                                                                                                                            return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                  Open

                                                                                                                                                                                                                  return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                    Open

                                                                                                                                                                                            return result;

                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                      Open

                                                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                        Open

                                                                                                                                                                                                            return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                          Open

                                                                                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToFindCosts", locale) + " " + workEffortId + " " + exc.getMessage());

                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                            Open

                                                                                                                                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotUpdated", locale));

                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                              Open

                                                                                                                                                                                                                      return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                Open

                                                                                                                                                                                                            return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingRoutingHasNoRoutingTask", locale));

                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                              return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotUpdated", locale));

                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                    return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToFindOverheadCosts", UtilMisc.toMap("errorString", e.getMessage()), locale));

                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunComponentNotAdded", locale));

                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                        return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingLotNotExists", locale));

                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                  return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                            return result;

                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              return ServiceUtil.returnSuccess();

                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                    return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunUnableToFindCosts", locale));

                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                            return ServiceUtil.returnError(ServiceUtil.getErrorMessage(outputMap));

                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                          return ServiceUtil.returnError(gse.getMessage());

                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                            return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                              return result;

                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                    return result;

                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                    return ServiceUtil.returnSuccess();

                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                          return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturinWorkOrderItemFulfillmentError", UtilMisc.toMap("errorString", gee.getMessage()), locale));

                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                    return result;

                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunTryToGetBomListError", locale));

                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunTryToCreateWorkEffortAssoc", locale));

                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotCreated", locale));

                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                          return ServiceUtil.returnSuccess();

                                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                return result;

                                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotCreated", locale));

                                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotCreated", locale));

                                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                          return result;

                                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                              return result;

                                                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                  return result;

                                                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                    return ServiceUtil.returnSuccess();

                                                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingRequirementNotDeleted", locale));

                                                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunForMarketingPackagesCreationError", UtilMisc.toMap("orderId", orderId, "orderItemSeqId", orderItemSeqId, "errorString", e.getMessage()), locale));

                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                          return result;

                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                    return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                      return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                    return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(ServiceUtil.getErrorMessage(tmpResults));

                                                                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                    return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingBomErrorCreatingBillOfMaterialsTree", UtilMisc.toMap("errorString", gee.getMessage()), locale));

                                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                                      return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                                              return result;

                                                                                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                                      return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                                        return result;

                                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                                    return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotCreated", locale));

                                                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                                              return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                                              return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotCreated", locale) + ": " + e.getMessage());

                                                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotCreated", locale));

                                                                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                                                                return ServiceUtil.returnSuccess();

                                                                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                                                                              return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(errMsg);

                                                                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                                                                        return result;

                                                                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                                                          return result;

                                                                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                                                                        return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                                                                                                return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                                                                                                    return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                                                                      return result;

                                                                                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotCreated", locale));

                                                                                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                                                                                return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale));

                                                                                                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                                                                                                      return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunCannotDecomposingInventoryItemNoComponentsFound", UtilMisc.toMap("productId", inventoryItem.getString("productId")), locale));

                                                                                                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnSuccess();

                                                                                                                                                                                                                                                                                                                                                                                              Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                                                                                                            return ServiceUtil.returnError(e.getMessage());

                                                                                                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                                                                                                  return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));

                                                                                                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                                                                                                return ServiceUtil.returnError(exc.getMessage());

                                                                                                                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                                                                                                                          return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotCreated", locale));

                                                                                                                                                                                                                                                                                                                                                                                                        There are no issues that match your filters.

                                                                                                                                                                                                                                                                                                                                                                                                        Category
                                                                                                                                                                                                                                                                                                                                                                                                        Status