Hi Pierre,

As parentCustRrequestId is only used in Scrum component so it does not make 
sense to add this in main entity definitions
 https://issues.apache.org/jira/browse/OFBIZ-5481,

Thanks & Regards
—
Deepak Dixit



> On Mar 18, 2015, at 4:19 PM, Pierre Smits <[email protected]> wrote:
> 
> Though the 'parentCustRequestId' is used particularly in the SCRUM
> component, the CustRequest entity is defined in ORDERMGR and extended in
> SCRUM.
> 
> I would say that moving the definition of the field 'parentCustRequestId'
> from SCRUM to ORDERMGR would be the better solution, given that there are
> similarities with other entities.
> 
> Best regards,
> 
> Pierre Smits
> 
> *ORRTIZ.COM <http://www.orrtiz.com>*
> Services & Solutions for Cloud-
> Based Manufacturing, Professional
> Services and Retail & Trade
> http://www.orrtiz.com
> 
> On Wed, Mar 18, 2015 at 11:33 AM, <[email protected]> wrote:
> 
>> Author: deepak
>> Date: Wed Mar 18 10:33:39 2015
>> New Revision: 1667483
>> 
>> URL: http://svn.apache.org/r1667483
>> Log:
>> Moved parentCustRequestId relationship for CustRequest entity from
>> order/entitymodel.xml to scrum/entitymodel.xml, as parentCustRequestId
>> defined in scrum component.
>> 
>> Modified:
>>    ofbiz/trunk/applications/order/entitydef/entitymodel.xml
>>    ofbiz/trunk/specialpurpose/scrum/entitydef/entitymodel.xml
>> 
>> Modified: ofbiz/trunk/applications/order/entitydef/entitymodel.xml
>> URL:
>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/entitydef/entitymodel.xml?rev=1667483&r1=1667482&r2=1667483&view=diff
>> 
>> ==============================================================================
>> --- ofbiz/trunk/applications/order/entitydef/entitymodel.xml (original)
>> +++ ofbiz/trunk/applications/order/entitydef/entitymodel.xml Wed Mar 18
>> 10:33:39 2015
>> @@ -1780,9 +1780,6 @@ under the License.
>>       <relation type="one" fk-name="CUST_REQ_CUOM" title="Currency"
>> rel-entity-name="Uom">
>>         <key-map field-name="currencyUomId" rel-field-name="uomId"/>
>>       </relation>
>> -      <relation type="one" fk-name="CUST_REQ_PARENT" title="Parent"
>> rel-entity-name="CustRequest">
>> -        <key-map field-name="parentCustRequestId"
>> rel-field-name="custRequestId"/>
>> -      </relation>
>>     </entity>
>>     <entity entity-name="CustRequestAttribute"
>>             package-name="org.ofbiz.order.request"
>> 
>> Modified: ofbiz/trunk/specialpurpose/scrum/entitydef/entitymodel.xml
>> URL:
>> http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/entitydef/entitymodel.xml?rev=1667483&r1=1667482&r2=1667483&view=diff
>> 
>> ==============================================================================
>> --- ofbiz/trunk/specialpurpose/scrum/entitydef/entitymodel.xml (original)
>> +++ ofbiz/trunk/specialpurpose/scrum/entitydef/entitymodel.xml Wed Mar 18
>> 10:33:39 2015
>> @@ -85,6 +85,9 @@ under the License.
>>         <field name="custSequenceNum" type="numeric"/>
>>         <field name="parentCustRequestId" type="id-ne"/>
>>         <field name="billed" type="indicator"/>
>> +        <relation type="one" fk-name="CUST_REQ_PARENT" title="Parent"
>> rel-entity-name="CustRequest">
>> +            <key-map field-name="parentCustRequestId"
>> rel-field-name="custRequestId"/>
>> +        </relation>
>>     </extend-entity>
>> 
>>     <view-entity entity-name="ScrumProjectSprintBacklogAndTask"
>> 
>> 
>> 

Reply via email to