This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch release18.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/release18.12 by this push: new d6c148e23 Fixed: PartyId field not populating in timeEntry (OFBIZ-12715) d6c148e23 is described below commit d6c148e234d1db0f8294c9397c092da1d4f28870 Author: Jacques Le Roux <jacques.le.r...@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 960f1fd6d..7afcbfa54 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>