This attempts to generate an intake so you can test specific pages. It might not work perfectly.
Showing all pages.
def self.show?(intake, current_controller) current_controller.open_for_eitc_intake? && !intake.home_location_puerto_rico? end
def self.show?(intake) intake.filed_prior_tax_year_filed_full? end
def self.show?(intake) return false if intake.sms_phone_number_verified_at? # only require one verified contact type intake.email_address.present? && intake.email_notification_opt_in_yes? && !intake.email_address_verified_at.present? end
def self.show?(intake) # if the client already has a valid intake with same info, don't show return false if intake.email_address_verified_at? # only require one verified contact type # if the client has already verified the phone number, don't show intake.sms_phone_number.present? && intake.sms_notification_opt_in_yes? && !intake.sms_phone_number_verified_at.present? end
def self.show?(intake) intake.filing_jointly? end
def self.show?(intake) intake.filing_jointly? end
def self.show?(intake) intake.spouse_filed_prior_tax_year_filed_full_separate? end
def self.show?(intake) intake.filing_jointly? end
def self.show?(intake, current_controller) current_controller.open_for_eitc_intake? && intake.claim_eitc_yes? end
def self.show?(intake) intake.had_dependents_yes? || intake.dependents.count > 0 end
def self.show?(_intake) false end
def self.show?(intake) intake.dependents.none?(&:qualifying_ctc?) end
def self.show?(intake) intake.dependents.none?(&:qualifying_ctc?) end
def self.show?(intake, current_controller) benefits_eligibility = Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents) current_controller.open_for_eitc_intake? && intake.exceeded_investment_income_limit_no? && benefits_eligibility.filers_younger_than_twenty_four? && intake.dependents.none?(&:qualifying_eitc?) end
def self.show?(intake, current_controller) benefits_eligibility = Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents) current_controller.open_for_eitc_intake? && intake.claim_eitc_yes? && !benefits_eligibility.qualified_for_eitc_pre_w2s? end
def self.show?(intake, current_controller) return unless current_controller.open_for_eitc_intake? benefits_eligibility = Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents) benefits_eligibility.claiming_and_qualified_for_eitc_pre_w2s? end
def self.show?(intake, current_controller) benefits_eligibility = Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents) current_controller.open_for_eitc_intake? && intake.claim_eitc_yes? && benefits_eligibility.qualified_for_eitc_pre_w2s? && (intake.had_w2s_no? || intake.completed_w2s.none?) end
def self.show?(intake, current_controller) return false unless current_controller.open_for_eitc_intake? intake.benefits_eligibility.disqualified_for_simplified_filing_due_to_income? end
def self.show?(intake, current_controller) return false unless current_controller.open_for_eitc_intake? return false if intake.dependents.any?(&:qualifying_eitc?) if intake.filing_jointly? (15_000...Efile::BenefitsEligibility::EITC_UPPER_LIMIT_JOINT).cover?(intake.total_wages_amount) else (10_000...Efile::BenefitsEligibility::EITC_UPPER_LIMIT_SINGLE).cover?(intake.total_wages_amount) end end
def self.show?(intake, current_controller) benefits_eligibility = Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents) current_controller.open_for_eitc_intake? && benefits_eligibility.disqualified_for_eitc_due_to_income? end
def self.show?(intake) intake.dependents.count(&:qualifying_ctc?).positive? end
def self.show?(intake) intake.advance_ctc_amount_received.nil? && intake.dependents.count(&:qualifying_ctc?).positive? end
def self.show?(intake) return false if intake.advance_ctc_amount_received.nil? || intake.dependents.count(&:qualifying_ctc?).zero? benefits = Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents) benefits.advance_ctc_amount_received >= benefits.ctc_amount end
def self.show?(intake) return false if intake.advance_ctc_amount_received.nil? || intake.dependents.count(&:qualifying_ctc?).zero? benefits = Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents) benefits.advance_ctc_amount_received < benefits.ctc_amount end
def self.show?(intake) !intake.puerto_rico_filing? end
def self.show?(intake) return false if intake.puerto_rico_filing? intake.eip3_amount_received.nil? end
def self.show?(intake) return false if intake.puerto_rico_filing? return false if intake.eip3_amount_received.nil? Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents).outstanding_recovery_rebate_credit&.zero? end
def self.show?(intake) return false if intake.puerto_rico_filing? return false if intake.eip3_amount_received.nil? (Efile::BenefitsEligibility.new(tax_return: intake.default_tax_return, dependents: intake.dependents).outstanding_recovery_rebate_credit || 0).positive? end
def self.show?(intake) intake.refund_payment_method_direct_deposit? end
def self.show?(intake) intake.refund_payment_method_direct_deposit? end
def self.show?(intake) intake.usps_address_verified_at end
def self.show?(intake) intake.has_primary_ip_pin_yes? || intake.has_spouse_ip_pin_yes? || intake.dependents.any? { |dep| dep.has_ip_pin_yes? } end
def self.show?(intake) intake.filing_jointly? end