app/services/waste_carriers_engine/expiry_check_service.rb
# It's important to note that a registration is expired on its expires_on date.
# For example if the expires_on date is Oct 1, then the registration was
# ACTIVE Sept 30, and EXPIRED Oct 1. If the grace window is 3 days, just
# adding 3 days to that date would give the impression the grace window lasts
# till Oct 4 (i.e. 1 + 3) when in fact we need to include the 1st as one of
# our grace window days.
It's important to note that a registration is expired on its expires_on date.
For example if the expires_on date is Oct 1, then the registration was
ACTIVE Sept 30, and EXPIRED Oct 1. If the grace window is 3 days, just
adding 3 days to that date would give the impression the grace window lasts
till Oct 4  when in fact we need to include the 1st as one of
our grace window days.
It ' s important to note that a registration is expired on its expires_on date . For example if the expires_on date is Oct 1 then the registration was ACTIVE Sept 30 and EXPIRED Oct 1 . If the grace window is 3 days just adding 3 days to that date would give the impression the grace window lasts till Oct 4 when in fact we need to include the 1st as one of our grace window days .
def in_expiry_grace_window?(ignore_extended_grace_window: false)
      last_day_of_grace_window = LastDayOfGraceWindowService.run(
        registration: registration,
        ignore_extended_grace_window: ignore_extended_grace_window
      )
      current_day_is_within_grace_window?(last_day_of_grace_window)
    end
def in_expiry_grace_window? ( ignore_extended_grace_window : false ) last_day_of_grace_window = LastDayOfGraceWindowService . run ( registration : registration , ignore_extended_grace_window : ignore_extended_grace_window ) current_day_is_within_grace_window? ( last_day_of_grace_window ) end
It's important to note that a registration is expired on its expires_on date.
It ' s important to note that a registration is expired on its expires_on date .
ignore_extended_grace_window