-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set Start and End Dates in Salary Slip #9513
Comments
Hi @theopen-institute , |
Thanks for taking this on @tundebabzy Good catch, yes it does. Is that the root of the problem? Even if I were to shift my payment cycle onto 16th to 15th, I'm still not able to change the end date to anything other than the last day of the month. |
Yes. The behaviour is wrong though. The start date should be exactly the same as the start date on the salary structure. I can fix this today and hopefully into will make into into production in tomorrow's release. We don't want to delay people's pay :) |
Thanks @tundebabzy |
Hello @theopen-institute |
* remove trigger from end_date * adds new function `get_end_date`: - it tries to calculate the appropriate end date for a given frequency - returns an empty string if frequency is 'biweekly' - adds test cases * changes logic in `set_start_end_dates`: - if start_date is empty in form, call process_payroll.get_start_end_dates - else, call process_payroll.get_end_date * `get_end_date` should return a dict * changed "biweekly" to "bimonthly" * change the behaviour of process payroll start and end date: - when payroll frequency is changed, change start/end date as usual - if start date is manually changed, use the frequency to calculate the end date * clean up * further cleanup * in `get_end_date`, if `frequency` isn"t given, "monthly" * remove end_date from cscript and introduce `set_end_date` * fix tests * removed whitespaces
When creating new salary slips for any of my monthly employees, I am not able to set my desired Start and End Dates. No matter what I put, the Start and End dates automatically revert to the 16th and last days of whatever month I've selected (respectively).
My salary structure seems to be set correctly, and all of my employees have start dates before the current month. Something, however, is causing the dates to change as soon as I enter them.
The text was updated successfully, but these errors were encountered: