Rules per Process
It aims to interfere in changes, inclusions and exclusions of some registrations, among them: job records, schedule,special leave, absences and salary, vacation programming, interpretation of audiometric examinations and even, change the register demonstrated when the "New Register" button is used in the employee register.
Issue an error message in a specific situation
Example: If it is necessary to impede the inclusion of an org. unit record, just send a message of type "Error" in the rule. With that, the system will not allow the user to continue. Example of this rule:
Se ((PertenceGrupo("Master") <> 1) ou (PertenceGrupo("Folha") <> 1))
Inicio
Message (error, "User does not have permission for inclusion.");
Cancel(1);
Fim;
Another examples
- Removal
- Number of the new Registration
- Enter Refectory Markings
- In the rule for removal can be used variables and functions intended for all rules and fields of the table R038AFA direct, for fields in other tables is necessary to make a cursor.
- It is possible to read the code of the rule per process, while it is running, through the R000RPP.CodPro. variable.
Process
Indicate the code of the process which will be handled via special rule. Click here to see a list of all available processes.
Below are related processes that have rule points specifically in the Benefits and Tasks module. Click on each topic to learn more:
- Health care
- Payroll loan
- Voucher Generation
- Social Service
- Skilled Workers
Rule
Inform the code of the rule for this process. These rules are defined in Resources > Rules Editor.
The variable "vExecucaoRegra" is used in the Benefits module only in rules related to:
- The screens of subsidiaries, subsidiaries and other companies;
- The records of absence, job, schedule, org. unit, salary, annotations, Union and binding.
English
Español


