Skip to content

Commit

Permalink
CIV-11621 - charge hearing fee 28 days before hearing (#3587)
Browse files Browse the repository at this point in the history
* CIV-11621 - charge hearing fee 28 days before hearing rather than 28 from now

* updated hearing docs classification

---------

Co-authored-by: Mark Drummond <[email protected]>
Co-authored-by: Madhan Mahadevan <[email protected]>
Co-authored-by: vasudevganesanhmcts <[email protected]>
  • Loading branch information
4 people authored Nov 17, 2023
1 parent 7d4c833 commit d7a4668
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Binary file modified docker/docmosis/templates/CV-UNS-HNO-ENG-01196.docx
Binary file not shown.
Binary file modified docker/docmosis/templates/CV-UNS-HNO-ENG-01197.docx
Binary file not shown.
Binary file modified docker/docmosis/templates/CV-UNS-HNO-ENG-01198.docx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private HearingFeeUtils() {
public static LocalDate calculateHearingDueDate(LocalDate now, LocalDate hearingDate) {
LocalDate calculatedHearingDueDate;
if (now.isBefore(hearingDate.minusDays(36))) {
calculatedHearingDueDate = now.plusDays(28);
calculatedHearingDueDate = hearingDate.minusDays(28);
} else {
calculatedHearingDueDate = now.plusDays(7);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class HearingFeeUtilsTest {
@CsvSource({
// current date,hearing date,expected
"2022-10-27,2022-11-04,2022-11-03", // based on bug report: on the boundary of exactly 7 days
"2022-10-01,2022-11-14,2022-10-29", // hearing date more than 36 days away -> expect in 28 straight days time
"2022-10-01,2022-11-14,2022-10-17", // hearing date more than 36 days away -> expect in 28 straight days time
"2022-10-01,2022-10-14,2022-10-08", // hearing date less than 36 days away -> expect in 7 straight days
"2022-10-01,2022-10-10,2022-10-08" // should never happen. If it does the deadline is the hearing day
})
Expand Down

0 comments on commit d7a4668

Please sign in to comment.