You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2022/11/29 08:41:36 UTC

[ofbiz-plugins] branch trunk updated: Fixed: PartyId field not populating in timeEntry (OFBIZ-12715)

This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new e56be8b27 Fixed: PartyId field not populating in timeEntry (OFBIZ-12715)
e56be8b27 is described below

commit e56be8b274dbf8551ca6ae7598a887b3d6cfda9f
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Tue Nov 29 09:39:56 2022 +0100

    Fixed: PartyId field not populating in timeEntry (OFBIZ-12715)
    
    Using the project component, I created a new timeEntry on a fresh Timesheet.
    I opened the webtools and saw that the timeEntry is referenced to the correct party.
    (jleroux: in my case and Balaji's video the party was not referenced)
    
    I created a second timeEntry on that Timesheet. I opened the webtools and saw that:
    
        The first timeEntry was deleted and newly created (new ID)
        The second timeEntry was created without a party
        The newly created first timeEntry was also deleted without a party
        Any timeEntry created afterwards on that Timesheet doesn't incorporate a party.
    
    Thanks: Balaji Yendamuri for a video and the fix
---
 projectmgr/minilang/ProjectServices.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/projectmgr/minilang/ProjectServices.xml b/projectmgr/minilang/ProjectServices.xml
index b16d4f150..f11a3014b 100644
--- a/projectmgr/minilang/ProjectServices.xml
+++ b/projectmgr/minilang/ProjectServices.xml
@@ -1333,6 +1333,7 @@
                     <set field="teUpdMap.hours" from-field="hours" type="Double"/>
                     <set field="teUpdMap.timeEntryId" from-field="timeEntry.timeEntryId"/>
                     <set field="teUpdMap.rateTypeId" from-field="parameters.rateTypeId"/>
+                    <set field="teUpdMap.partyId" from-field="userLogin.partyId"/>
                     <call-service service-name="updateTimeEntry" in-map-name="teUpdMap"/>
                 </else>
             </if-compare>
@@ -1341,6 +1342,7 @@
                     <set-service-fields service-name="createTimeEntry" map="parameters" to-map="teCreMap"/>
                     <set field="teCreMap.hours" from-field="hours" type="Double"/>
                     <set field="teCreMap.fromDate" from-field="fromDate"/>
+                    <set field="teCreMap.partyId" from-field="userLogin.partyId"/>
                     <call-service service-name="createTimeEntry" in-map-name="teCreMap"/>
                 </if-compare>
             </else>