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-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new 077625c Fixed: Unable to create event in SFA component (OFBIZ-9901) 077625c is described below commit 077625c5a6e86e38152bd3021b144cef510e25dd Author: Jacques Le Roux <jacques.le.r...@les7arts.com> AuthorDate: Sat Jul 25 19:18:45 2020 +0200 Fixed: Unable to create event in SFA component (OFBIZ-9901) The tests failed because CAL_OWNER instead of CONTACT was necessary --- applications/workeffort/minilang/test/WorkEffortTests.xml | 6 +++--- applications/workeffort/testdef/data/WorkEffortTestData.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/applications/workeffort/minilang/test/WorkEffortTests.xml b/applications/workeffort/minilang/test/WorkEffortTests.xml index fe05f6c..8ebed2f 100644 --- a/applications/workeffort/minilang/test/WorkEffortTests.xml +++ b/applications/workeffort/minilang/test/WorkEffortTests.xml @@ -22,7 +22,7 @@ under the License. xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd"> <simple-method method-name="testCreateWorkEffortAndPartyAssign" short-description="Test the service createWorkEffortAndPartyAssign" login-required="false"> <set field="serviceCtx.partyId" value="TestParty-1"/> - <set field="serviceCtx.roleTypeId" value="CONTACT"/> + <set field="serviceCtx.roleTypeId" value="CAL_OWNER"/> <set field="serviceCtx.statusId" value="PRTYASGN_ASSIGNED"/> <set field="serviceCtx.workEffortId" value="TestWorkEffort-1"/> <set field="serviceCtx.partyTypeId" value="PARTY_GROUP"/> @@ -39,7 +39,7 @@ under the License. <entity-one entity-name="WorkEffort" value-field="workEffort"/> <set field="lookupKeyValue.workEffortId" from-field="workEffortId"/> <set field="lookupKeyValue.partyId" value="TestParty-1"/> - <set field="lookupKeyValue.roleTypeId" value="CONTACT"/> + <set field="lookupKeyValue.roleTypeId" value="CAL_OWNER"/> <find-by-and entity-name="WorkEffortPartyAssignment" map="lookupKeyValue" list="workEffortPartyAssignmentList"/> <first-from-list entry="workEffortPartyAssignment" list="workEffortPartyAssignmentList"/> <assert> @@ -544,4 +544,4 @@ under the License. </assert> <check-errors/> </simple-method> -</simple-methods> \ No newline at end of file +</simple-methods> diff --git a/applications/workeffort/testdef/data/WorkEffortTestData.xml b/applications/workeffort/testdef/data/WorkEffortTestData.xml index 2a90b07..bb77b9a 100644 --- a/applications/workeffort/testdef/data/WorkEffortTestData.xml +++ b/applications/workeffort/testdef/data/WorkEffortTestData.xml @@ -38,7 +38,7 @@ under the License. <Party partyId="TestParty-1" partyTypeId="PERSON" statusId="PARTY_ENABLED"/> <Person partyId="TestParty-1" firstName="Test" lastName="Party"/> - <PartyRole partyId="TestParty-1" roleTypeId="CONTACT"/> + <PartyRole partyId="TestParty-1" roleTypeId="CAL_OWNER"/> <PartyRole partyId="TestParty-1" roleTypeId="CUSTOMER"/> <PartyRole partyId="TestParty-1" roleTypeId="ACCOUNTANT"/> <PartyStatus partyId="TestParty-1" statusId="PARTY_ENABLED" statusDate="2001-01-01 12:00:00.0"/> @@ -80,4 +80,4 @@ under the License. <TimeEntry timeEntryId="TestTimeEntry-3" hours="8.0" workEffortId="TestWorkeffort-4" invoiceId="TestInvoice" partyId="TestParty" rateTypeId="STANDARD"/> <RateAmount rateTypeId="STANDARD" workEffortId="_NA_" partyId="TestParty" periodTypeId="RATE_HOUR" emplPositionTypeId="_NA_" fromDate="2000-01-01 00:00:00.0" rateAmount="95.00" rateCurrencyUomId="USD"/> -</entity-engine-xml> \ No newline at end of file +</entity-engine-xml>