(OFBIZ-10540) Improve the previous fix at r183834 where an error has been introduce with the entity WorkEffortContactMech who is different than OrderContactMech (no purpose but fromDate, thruDate) where at the beginning I thinking, wrongly, that they was the same pattern. I completed the generic function *getEntityContactMechValueMaps* to analyze on the fly what element have the entityview. To complete, I added unit test for WorkEffortContactMech. Thanks to Deepak Nigam for the control. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840296 13f79535-47bb-0310-9956-ffa450edef68
43 lines
2.8 KiB
XML
43 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<entity-engine-xml>
|
|
<ContactMech contactMechId="9125" contactMechTypeId="TELECOM_NUMBER"/>
|
|
<TelecomNumber contactMechId="9125" countryCode="1" areaCode="801" contactNumber="555-5555"/>
|
|
<PartyContactMech partyId="DemoCustomer" contactMechId="9125" fromDate="2001-05-13 00:00:00.000" allowSolicitation="Y"/>
|
|
<PartyContactMechPurpose partyId="DemoCustomer" contactMechId="9125" contactMechPurposeTypeId="PHONE_HOME" fromDate="2001-05-13 00:00:00.000"/>
|
|
|
|
<ContactMech contactMechId="9126" contactMechTypeId="EMAIL_ADDRESS" infoString="ofbiztest@foo.com"/>
|
|
<PartyContactMech partyId="DemoCustomer" contactMechId="9126" fromDate="2001-05-13 00:00:00.000" allowSolicitation="Y"/>
|
|
<PartyContactMechPurpose partyId="DemoCustomer" contactMechId="9126" contactMechPurposeTypeId="PRIMARY_EMAIL" fromDate="2001-05-13 00:00:00.000"/>
|
|
<PartyContactMechPurpose partyId="DemoCustomer" contactMechId="9126" contactMechPurposeTypeId="BILLING_EMAIL" fromDate="2001-05-13 00:00:00.000" thruDate="2001-05-14 00:00:00.000"/>
|
|
|
|
<ContactMech contactMechId="9127" contactMechTypeId="FTP_ADDRESS"/>
|
|
<FtpAddress contactMechId="9127" hostname="ftp://apacheofbiz.foo.com" port="" username="ofbiz" password="apache" binaryTransfer="Y" passiveMode="Y" path="public"/>
|
|
<PartyContactMech partyId="DemoCustomer" contactMechId="9127" fromDate="2001-05-13 00:00:00.000" allowSolicitation="Y"/>
|
|
|
|
<!--Data use by ContactMechWorkerTests.testWorkEffortContactMechResolution-->
|
|
<WorkEffort workEffortId="TEST_CM_WORKER" />
|
|
<WorkEffortContactMech workEffortId="TEST_CM_WORKER" contactMechId="9015" fromDate="2001-05-13 00:00:00.000"/>
|
|
<WorkEffortContactMech workEffortId="TEST_CM_WORKER" contactMechId="9127" fromDate="2001-05-13 00:00:00.000" thruDate="2001-05-14 00:00:00.000"/>
|
|
<WorkEffortContactMech workEffortId="TEST_CM_WORKER" contactMechId="9126" fromDate="2001-05-13 00:00:00.000"/>
|
|
<WorkEffortContactMech workEffortId="TEST_CM_WORKER" contactMechId="9125" fromDate="2001-05-13 00:00:00.000"/>
|
|
</entity-engine-xml>
|