Re: Dev - right way to set up party relationship

Posted by David E. Jones on
URL: http://ofbiz.116.s1.nabble.com/Dev-right-way-to-set-up-party-relationship-tp166405p166414.html


The problem is in that example that the relationship type description  
does not imply which is the customer and which is the vendor.

There is quite a bit that is setup properly as described by the  
comment, including the promo and price rules and some permissions  
stuff for billing accounts and various other things.

I don't know that the data model resource book defines which way the  
relationship goes, so this was introduced as implementation was done  
on this.

-David


On Dec 21, 2005, at 4:18 PM, Si Chen wrote:

> David,
>
> I just checked the Data Model and Resources Book, and they have it  
> the way our seed data is set up as well:
>
> Volume 1, page 45 -
> Relationship Type name = Customer relationship
> From Party = ACME Company
> From Role = Customer
> To Party = ABC Subsidiary
> To Role = Internal Organization
>
> So I still think that the comment is the one that must be wrong.  
> I'll take a look at the createPartyRelationship service and see if  
> I find anything there.
>
> Si
>
> David E. Jones wrote:
>
>>
>> Si,
>>
>> I think that comment is correct and consistent with what is coded  
>> in  the edit party relationships page in the party manager.
>>
>> The problem is most likely that the seed data for the agent is  
>> wrong... I think this has actually been brought up before, so  
>> I'll  fix it real quick...
>>
>> -David
>>
>>
>> On Dec 21, 2005, at 2:22 PM, Si Chen wrote:
>>
>>> Hi.  I'm just trying to confirm the right way to set up party  
>>> relationships in the system, because I think this comment in  
>>> PartyTypeData.xml might be wrong:
>>>
>>> <!-- NOTE: The partyRelationshipName describes the TO party, ie  
>>> A  is a customer of B, so A is the partyTo and B is the partyFrom  
>>> -->
>>>   The existing seed data for PartyRelationship, however, show
>>> partyIdFrom = DemoCustAgent
>>> partyIdTo = DemoCustCompany
>>> partyRelationshipTypeId = AGENT
>>>
>>> when DemoCustAgent (partyIdFrom) is an AGENT of DemoCustCompany  
>>> (partyIdTo)
>>>
>>> The seed data seems to be more intuitive anyway, but I just  
>>> wanted  to confirm.  I can change the incorrect comment in the  
>>> PartyTypeData.xml
>>>
>>> Thanks,
>>>
>>> Si
>>> _______________________________________________
>>> Dev mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

smime.p7s (3K) Download Attachment