[jira] Created: (OFBIZ-768) Assigned tasks not shown in WorkEffort/TaskList (not anymore)

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

[jira] Created: (OFBIZ-768) Assigned tasks not shown in WorkEffort/TaskList (not anymore)

Nicolas Malin (Jira)
Assigned tasks not shown in WorkEffort/TaskList (not anymore)
-------------------------------------------------------------

                 Key: OFBIZ-768
                 URL: https://issues.apache.org/jira/browse/OFBIZ-768
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: workeffort
            Reporter: Eriks Dobelis
            Priority: Minor


In WorkEffort/TaskList assigned tasks are not shown. This is due to code in WorkEffortServices.java, which assigns value to validWorkEfforts twise instead of merging the lists. This is in turn due to change submitted in r510412

Code from WorkEffortServices.java
                validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
                            UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
                                new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "TASK"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
                            UtilMisc.toList("priority"));
                validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
                        UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
                            new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "PROD_ORDER_TASK"),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
                        UtilMisc.toList("createdDate DESC"));


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-768) Assigned tasks not shown in WorkEffort/TaskList (not anymore)

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eriks Dobelis updated OFBIZ-768:
--------------------------------

    Description:
In WorkEffort/TaskList assigned tasks are not shown. This is due to code in WorkEffortServices.java, which assigns value to validWorkEfforts twice instead of merging the lists. This is in turn due to change submitted in r510412

Code from WorkEffortServices.java
                validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
                            UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
                                new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "TASK"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
                            UtilMisc.toList("priority"));
                validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
                        UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
                            new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "PROD_ORDER_TASK"),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
                        UtilMisc.toList("createdDate DESC"));


  was:
In WorkEffort/TaskList assigned tasks are not shown. This is due to code in WorkEffortServices.java, which assigns value to validWorkEfforts twise instead of merging the lists. This is in turn due to change submitted in r510412

Code from WorkEffortServices.java
                validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
                            UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
                                new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "TASK"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
                                new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
                            UtilMisc.toList("priority"));
                validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
                        UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
                            new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "PROD_ORDER_TASK"),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
                            new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
                        UtilMisc.toList("createdDate DESC"));



> Assigned tasks not shown in WorkEffort/TaskList (not anymore)
> -------------------------------------------------------------
>
>                 Key: OFBIZ-768
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-768
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: workeffort
>            Reporter: Eriks Dobelis
>            Priority: Minor
>
> In WorkEffort/TaskList assigned tasks are not shown. This is due to code in WorkEffortServices.java, which assigns value to validWorkEfforts twice instead of merging the lists. This is in turn due to change submitted in r510412
> Code from WorkEffortServices.java
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                             UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                                 new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "TASK"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
>                             UtilMisc.toList("priority"));
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                         UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                             new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "PROD_ORDER_TASK"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
>                         UtilMisc.toList("createdDate DESC"));

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-768) Assigned tasks not shown in WorkEffort/TaskList (not anymore)

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477657 ]

Jacques Le Roux commented on OFBIZ-768:
---------------------------------------

Eriks,

Not sure of what to do because of ordering. Please Hans, could you take a look at it ?

Thanks

> Assigned tasks not shown in WorkEffort/TaskList (not anymore)
> -------------------------------------------------------------
>
>                 Key: OFBIZ-768
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-768
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: workeffort
>            Reporter: Eriks Dobelis
>            Priority: Minor
>
> In WorkEffort/TaskList assigned tasks are not shown. This is due to code in WorkEffortServices.java, which assigns value to validWorkEfforts twice instead of merging the lists. This is in turn due to change submitted in r510412
> Code from WorkEffortServices.java
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                             UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                                 new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "TASK"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
>                             UtilMisc.toList("priority"));
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                         UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                             new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "PROD_ORDER_TASK"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
>                         UtilMisc.toList("createdDate DESC"));

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-768) Assigned tasks not shown in WorkEffort/TaskList (not anymore)

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eriks Dobelis updated OFBIZ-768:
--------------------------------

    Attachment: workefftasks.diff

This is how I understand it.

> Assigned tasks not shown in WorkEffort/TaskList (not anymore)
> -------------------------------------------------------------
>
>                 Key: OFBIZ-768
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-768
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: workeffort
>            Reporter: Eriks Dobelis
>            Priority: Minor
>         Attachments: workefftasks.diff
>
>
> In WorkEffort/TaskList assigned tasks are not shown. This is due to code in WorkEffortServices.java, which assigns value to validWorkEfforts twice instead of merging the lists. This is in turn due to change submitted in r510412
> Code from WorkEffortServices.java
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                             UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                                 new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "TASK"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
>                             UtilMisc.toList("priority"));
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                         UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                             new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "PROD_ORDER_TASK"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
>                         UtilMisc.toList("createdDate DESC"));

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-768) Assigned tasks not shown in WorkEffort/TaskList (not anymore)

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478037 ]

Eriks Dobelis commented on OFBIZ-768:
-------------------------------------

This diff file merges the lists of validWorkEfforts.

> Assigned tasks not shown in WorkEffort/TaskList (not anymore)
> -------------------------------------------------------------
>
>                 Key: OFBIZ-768
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-768
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: workeffort
>            Reporter: Eriks Dobelis
>            Priority: Minor
>         Attachments: workefftasks.diff
>
>
> In WorkEffort/TaskList assigned tasks are not shown. This is due to code in WorkEffortServices.java, which assigns value to validWorkEfforts twice instead of merging the lists. This is in turn due to change submitted in r510412
> Code from WorkEffortServices.java
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                             UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                                 new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "TASK"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
>                             UtilMisc.toList("priority"));
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                         UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                             new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "PROD_ORDER_TASK"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
>                         UtilMisc.toList("createdDate DESC"));

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-768) Assigned tasks not shown in WorkEffort/TaskList (not anymore)

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-768.
---------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk
         Assignee: Jacques Le Roux

Eriks,

Your patch is in OFBiz rev. 515777

Thanks

> Assigned tasks not shown in WorkEffort/TaskList (not anymore)
> -------------------------------------------------------------
>
>                 Key: OFBIZ-768
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-768
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: workeffort
>            Reporter: Eriks Dobelis
>         Assigned To: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: workefftasks.diff
>
>
> In WorkEffort/TaskList assigned tasks are not shown. This is due to code in WorkEffortServices.java, which assigns value to validWorkEfforts twice instead of merging the lists. This is in turn due to change submitted in r510412
> Code from WorkEffortServices.java
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                             UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                                 new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "TASK"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
>                                 new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
>                             UtilMisc.toList("priority"));
>                 validWorkEfforts = delegator.findByAnd("WorkEffortAndPartyAssign",
>                         UtilMisc.toList(new EntityExpr("partyId", EntityOperator.EQUALS, userLogin.get("partyId")),
>                             new EntityExpr("workEffortTypeId", EntityOperator.EQUALS, "PROD_ORDER_TASK"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
>                             new EntityExpr("currentStatusId", EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
>                         UtilMisc.toList("createdDate DESC"));

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.