[ 
https://issues.apache.org/jira/browse/OFBIZ-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Smits updated OFBIZ-5959:
--------------------------------
    Description: 
Currently the assignments of roles to parties are boolean (there or not there).

As stated in a comment below:

??Reopening, as removing a PartyRole from a party can lead to errors.??
?? Steps to reproduce:??
 * ??Go to 
[https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoCustomer];??
 * ??Remove the 'Contact' role from the party.??

??See the error shown (attached screenshot).??

??Such errors pop up due to referential integrity (used in other entities).??

However, these role assignments also have a lifespan, and PartyRole records are 
used in specific object role entities (such as: AgreementRole, QuoteRole, 
RequestRole, etc.)

This can be achieved by adding fromDate and thruDate fields.

  was:
Currently the assignments of roles to parties are boolean (there or not there).

As stated in a comment below:

Reopening, as removing a PartyRole from a party can lead to errors.
Steps to reproduce:
* Go to 
https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoCustomer;
* Remove the 'Contact' role from the party.

See the error shown (attached screenshot).

Such errors pop up due to referential integrity (used in other entities).

However, these role assignments also have a lifespan, and PartyRole records are 
used in specific object role entities (such as: AgreementRole, QuoteRole, 
RequestRole, etc.) 


This can be achieved by adding fromDate and thruDate fields.


> Add lifespan fields to PartyRole
> --------------------------------
>
>                 Key: OFBIZ-5959
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5959
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>            Assignee: Pierre Smits
>            Priority: Major
>              Labels: role, roles, usability
>         Attachments: Screen Shot 2020-05-20 at 09.10.15.png
>
>
> Currently the assignments of roles to parties are boolean (there or not 
> there).
> As stated in a comment below:
> ??Reopening, as removing a PartyRole from a party can lead to errors.??
> ?? Steps to reproduce:??
>  * ??Go to 
> [https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoCustomer];??
>  * ??Remove the 'Contact' role from the party.??
> ??See the error shown (attached screenshot).??
> ??Such errors pop up due to referential integrity (used in other entities).??
> However, these role assignments also have a lifespan, and PartyRole records 
> are used in specific object role entities (such as: AgreementRole, QuoteRole, 
> RequestRole, etc.)
> This can be achieved by adding fromDate and thruDate fields.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to