tundebabzy 11d23f84d7 Can't set Start and End Dates in Salary Slip (#9513) (#9944)
* 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
2017-07-20 10:33:03 +05:30
..
2017-06-15 13:42:47 +05:30
2016-07-11 13:01:58 +05:30
2017-06-15 13:42:47 +05:30
2017-02-20 13:38:31 +05:30
2017-02-20 13:38:31 +05:30
2017-05-30 12:54:42 +05:30
2017-07-17 16:47:01 +05:30
2016-07-11 13:01:58 +05:30
2016-08-01 15:18:36 +05:30
2017-06-15 13:42:47 +05:30
2017-05-30 12:54:42 +05:30
2017-05-30 12:54:42 +05:30
2016-07-25 15:03:39 +05:30
2017-05-30 12:54:42 +05:30
2017-05-30 12:54:42 +05:30
2017-01-16 14:38:24 +05:30
2017-06-15 13:42:47 +05:30