Skip to content

Commit

Permalink
Get Next Last bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UnacceptableBehaviour committed Feb 20, 2025
1 parent a30f41f commit d4a6b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/static/paycheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,14 @@ class PayCycle4wk {

getNextPayDay() {
var returnDate = this.payDay.copyAddDays(PayCycle4wk.DAYS_IN_CYCLE);
var weekNo = (this.weekNos[0] += 4);
var weekNo = this.weekNos[0] + 4;
if (weekNo > 52) weekNo = weekNo - 52;
return [returnDate, weekNo];
}

getLastPayDay() {
var returnDate = this.payDay.copyAddDays(PayCycle4wk.DAYS_IN_CYCLE * -1);
var weekNo = (this.weekNos[0] -= 4);
var weekNo = this.weekNos[0] - 4;
if (weekNo < 1) weekNo = weekNo + 52;
return [returnDate, weekNo];
}
Expand Down

0 comments on commit d4a6b76

Please sign in to comment.