30 days in payroll month, irrespective of actual no. of days as per gregorian calendar

hi
we in dthe middel east consider the month is 30 days in payroll month
any one in middel east Has implemented this requiremnt and how to implement it on the system?

Description

30 days in payroll month, irrespective of actual no. of days as per gregorian calendar.

Example

Though the base amount of Employee Salary will remain same, this will have impact on the Leave Without Pay calculation of an Employee. It will not be prorated based on actual months, but always consider 30 days in a month.

any help please

  1. I added one field to Salary Slip DocType (Customize Form)
    Consider Month 30 Days | Check | consider_month_30_days
  2. In Salary Component:
    a Un-check “Depends on Payment Days”
    b Add the following formula:
    base * (30 - leave_without_pay - absent_days) / 30 if consider_month_30_days == 1 else
    base * payment_days / total_working_days
  3. Added Salary Structure, and assign structure to employee
  4. Salary Slip
    a. Check box: Consider Month 30 Days
    b. Enter the unpaid leave days
    The salary will be computed based on 30-day month
    Otherwise,
    c. Uncheck box: Consider Month 30 Days
    d. Enter the unpaid leave days
    The salary will be computed based on the calendar month (as the default system)
1 Like