Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2024-04-12 Last release of tax season 2024 * Send reject resolution message on 4/13 and 4/22 for clients that have been notified of rejection and not yet been accepted (#4479) * Update GYR banner for closing season (#4473) * Always showing download button after April 25 #187355990 (#4481) * Post-Deadline notification (#4475) * Pre-Deadline notification (#4469) * truncate 3rd party designee name (#4462) * Change logic for Reminder notification (#4447) * Close fyst #187355990 (#4472) * Fix submission and skip flaky tests #187278919 (#4468) * Refine AZ excise credit #186927846 (#4418) * pre-populate w2 info (#4457) * Center content on desktop #186632607 (#4444)
- Loading branch information
Showing
84 changed files
with
1,567 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
app/controllers/state_file/questions/submission_pdfs_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
module StateFile | ||
class AzExciseCreditForm < QuestionsForm | ||
set_attributes_for :intake, :was_incarcerated, :ssn_no_employment, :household_excise_credit_claimed | ||
set_attributes_for :intake, | ||
:primary_was_incarcerated, | ||
:spouse_was_incarcerated, | ||
:ssn_no_employment, | ||
:household_excise_credit_claimed, | ||
:household_excise_credit_claimed_amt | ||
|
||
validates :was_incarcerated, inclusion: { in: %w[yes no], message: :blank } | ||
validates :primary_was_incarcerated, inclusion: { in: %w[yes no], message: :blank } | ||
validates :spouse_was_incarcerated, inclusion: { in: %w[yes no], message: :blank }, if: -> { intake.filing_status_mfj? } | ||
validates :ssn_no_employment, inclusion: { in: %w[yes no], message: :blank } | ||
validates :household_excise_credit_claimed, inclusion: { in: %w[yes no], message: :blank } | ||
validates_presence_of :household_excise_credit_claimed_amt, if: -> { household_excise_credit_claimed == "yes" } | ||
validates :household_excise_credit_claimed_amt, numericality: { only_integer: true, greater_than: 0, message: ->(_object, _data) { I18n.t('validators.must_enter_amount') } }, allow_blank: true | ||
|
||
def save | ||
@intake.update(attributes_for(:intake)) | ||
attributes = attributes_for(:intake) | ||
if household_excise_credit_claimed == "no" | ||
attributes = attributes.merge(household_excise_credit_claimed_amt: nil) | ||
end | ||
@intake.update(attributes) | ||
end | ||
end | ||
end |
34 changes: 34 additions & 0 deletions
34
app/jobs/send_reject_resolution_reminder_notification_job.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
class SendRejectResolutionReminderNotificationJob < ApplicationJob | ||
def perform(intake) | ||
return unless notified_of_rejected_and_not_accepted(intake) | ||
|
||
StateFile::MessagingService.new( | ||
intake: intake, | ||
message: StateFile::AutomatedMessage::RejectResolutionReminder, | ||
body_args: { return_status_link: return_status_link(intake) } | ||
).send_message | ||
end | ||
|
||
def priority | ||
PRIORITY_LOW | ||
end | ||
|
||
private | ||
|
||
def return_status_link(intake) | ||
locale = intake.locale || "en" | ||
Rails.application.routes.url_helpers.url_for(host: MultiTenantService.new(:statefile).host, controller: "state_file/questions/return_status", action: "edit", us_state: intake.state_code, locale: locale) | ||
end | ||
|
||
def notified_of_rejected_and_not_accepted(intake) | ||
transition_states = intake.efile_submissions.flat_map do |submission| | ||
submission.efile_submission_transitions.map(&:to_state) | ||
end.uniq | ||
|
||
last_state = intake.efile_submissions.last.current_state | ||
in_progress_states = ["preparing", "bundling", "queued", "transmitted", "ready_for_ack"] | ||
return false if transition_states.include?("accepted") || in_progress_states.include?(last_state) | ||
|
||
transition_states.include?("notified_of_rejection") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.