[
https://issues.apache.org/jira/browse/OFBIZ-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Smits updated OFBIZ-5959:
--------------------------------
Issue Type: Improvement (was: Bug)
> 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
> 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)