How to create payroll slip in erp nect version 14, the payment must be limited but also depend on ti

I am new user in erp next version 14. I would like to know how to set an employee salary limited, but should also depend on timesheet. Even if they work for more hours, there salary must no go beyond that fixed amount.

To create a payroll slip in ERPNext v14 with a limited but percentage-based payment, similar to how a Prosenttilaskuri, you can use a salary component with a formula like min(500, base * 0.1). This means the system will calculate 10% of the base salary but cap it at 500. Just like using a prosenttilaskuri to find and limit percentages, ERPNext applies the logic automatically when you create a salary slip, ensuring percentage-based payouts don’t exceed your set limit.