[
https://issues.apache.org/jira/browse/OFBIZ-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827868#comment-17827868
]
Jacques Le Roux commented on OFBIZ-5959:
----------------------------------------
Hi Pierre,
I had a fresh look (I re-read all comments). I don't feel like converting to a
bug when there are so much links to this issue (depend on and subtasks). That
would just add confusion. Could you create a new bug issue?
> Add lifespan fields to PartyRole
> --------------------------------
>
> Key: OFBIZ-5959
> URL: https://issues.apache.org/jira/browse/OFBIZ-5959
> Project: OFBiz
> Issue Type: Improvement
> Components: party
> Affects Versions: Trunk, Upcoming Branch
> 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.20.10#820010)