Procedure
1. Use the seeded payslips data source
The recommended Data source is Applaud Payslips (PAY_EMP_PAYSLIP_ACTION_INFO_V). This provides a list of the employee's payslips as generated by Oracle Payroll. Unless you wish to customize the seeded behavior, you can, in most cases, use this.
2. Create your own template selection formula
To see a definition of this formula, see Template selection formula.
The seeded formula is called XXAS_PAYSLIP_DATA_LIST. You should create a copy of this formula that you can then configure according to your requirements.
Do not change the seeded formula because your changes will get overridden in later patches.
This formula controls two things:
- The template that is used to render each payslip
- The title for each payslip
An example formula fragment of the default formula is shown below:
Summary_Text = to_char(Effective_Date, 'FMDd Mon YYYY') + ' - '
(Summary_Text = Summary_Text + Assignment_Number + ' - ')
Else If Legislation_Code = 'US' Then
(
Template = 'XXAS_PAYSLIP_US_TEMPLATE'
Summary_Text = Summary_Text + 'Check ' + to_char(Check_Count)
)
In this example, the template of the payslip is derived using the legislation code of the Business Group the worker record resides in; if the worker is in a US Business Group, the US template is used. The Template value of XXAS_PAYSLIP_US_TEMPLATE refers to the menu name of the seeded template for the US legislation.
Secondly, the Summary_Text output defines the title of the payslip, in this case, a combination of the Assignment Number, Effective Date, and Check Number.
You can configure the formula logic to set the payslip title and template according to your requirements.
3. Create the payslips block
To create the payslips block, see Payslips block.
4. Define access control for the payslip block and data source
Grant access to the payslips block:
- View the block details.
- Navigate down to the Grants block.
- Hit Add to define a new grant. Specify your employee payslip role (e.g., Applaud Employee Payslip Role) and the Object Ids visible to this role. You can typically use Applaud HR Assignments Restricted to the Logged-on Employee.
Grant access to each payslip shown inside the block:
- View the block details.
- Navigate down to the Grants for data source block.
- Hit Add to define a new grant. Specify your employee payslip role (e.g., Applaud Employee Payslip Role) and the Object Ids visible to this role.