Skip to content

Latest commit

 

History

History
51 lines (49 loc) · 5.29 KB

R30433-2.md

File metadata and controls

51 lines (49 loc) · 5.29 KB
erp.type erp.entity
front-end-business-rule
General.Contacts.Activities

R30433-2 Activity - Set Responsible Person

+----------------------+-----------------------------------------------------------------------------------------------+ | Code | 30433-2 | +----------------------+-----------------------------------------------------------------------------------------------+ | Entity | @General.Contacts.Activities | +----------------------+-----------------------------------------------------------------------------------------------+ | Name | SetResponsiblePerson | +----------------------+-----------------------------------------------------------------------------------------------+ | Attribute | ResponsiblePerson | +----------------------+-----------------------------------------------------------------------------------------------+ | Layer | Front-End | +----------------------+-----------------------------------------------------------------------------------------------+ | Events | AttributeChanged(ResponsibleParty) | +----------------------+-----------------------------------------------------------------------------------------------+ | Priority | Normal | +----------------------+-----------------------------------------------------------------------------------------------+ | Modify | YES | +----------------------+-----------------------------------------------------------------------------------------------+ | **Applicable | ALL // no condition needed | | Legislations** | | +----------------------+-----------------------------------------------------------------------------------------------+ | Action | if (ResponsibleParty is not null) | | | { | | | IF(ResponsiblePerson is null OR ResponsiblePerson != Persons(ResponsibleParty) | | |

| | | ResponsiblePerson = Persons(ResponsibleParty); | | |

| | | else | | | { | | | if (ResponsiblePerson is not null) | | | ResponsiblePerson = null; | | | } | +----------------------+-----------------------------------------------------------------------------------------------+ | Description | When Responsible Party is changed and there is a Person connected with the same party, | | | Responsible Person should be set to the Person connected with the Responsible Party. If | | | Responsible Party is null, Responsible Person should be null, too. | +----------------------+-----------------------------------------------------------------------------------------------+ | Message | | +----------------------+-----------------------------------------------------------------------------------------------+ | Version | Introduced: 2020.1 | +----------------------+-----------------------------------------------------------------------------------------------+ | Revocable | YES | +----------------------+-----------------------------------------------------------------------------------------------+

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.