Author: ashish
Date: Mon Sep 22 06:59:00 2008
New Revision: 697833
URL:
http://svn.apache.org/viewvc?rev=697833&view=revLog:
Applied patch from JIRA issue OFBIZ-1966.
Thanks Awdesh Parihar for your contribution and thanks Ratnesh for your support.
Modified:
ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml
Modified: ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml?rev=697833&r1=697832&r2=697833&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml Mon Sep 22 06:59:00 2008
@@ -76,6 +76,9 @@
<then>
<!-- roleType and/or partyId changed: end old and create new assign-->
<entity-one entity-name="WorkEffortPartyAssignment" value-name="workEffortPartyAssignment"/>
+ <set field="workEffortPartyAssignment.delegateReasonEnumId" from-field="parameters.delegateReasonEnumId"/>
+ <set field="workEffortPartyAssignment.comments" from-field="parameters.comments"/>
+ <set field="workEffortPartyAssignment.assignedByUserLoginId" from-field="userLogin.userLoginId"/>
<now-date-to-env env-name="workEffortPartyAssignment.thruDate"/>
<store-value value-name="workEffortPartyAssignment"/>
<!-- create a new one -->
@@ -83,6 +86,7 @@
<set field="newAssign.workEffortId" from-field="parameters.workEffortId"/>
<set field="newAssign.partyId" from-field="parameters.newPartyId"/>
<set field="newAssign.roleTypeId" from-field="parameters.newRoleTypeId"/>
+ <set field="newAssign.assignedByUserLoginId" from-field="userLogin.userLoginId"/>
<now-date-to-env env-name="newAssign.fromDate"/>
<set field="newAssign.statusId" value="PAS_ASSIGNED"/>
<create-value value-name="newAssign"/>
Modified: ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml?rev=697833&r1=697832&r2=697833&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml Mon Sep 22 06:59:00 2008
@@ -222,6 +222,8 @@
<attribute name="roleTypeId" type="String" mode="IN"/>
<attribute name="statusId" type="String" mode="IN"/>
<attribute name="fromDate" type="Timestamp" mode="INOUT" optional="true"/>
+ <attribute name="delegateReasonEnumId" type="String" mode="IN" optional="true"/>
+ <attribute name="comments" type="String" mode="IN" optional="true"/>
</service>
<service name="addProjectTimeToNewInvoice" engine="simple" auth="true"
location="org/ofbiz/project/ProjectServices.xml" invoke="addProjectTimeToNewInvoice">