Skip to content

Commit

Permalink
Fix validator
Browse files Browse the repository at this point in the history
  • Loading branch information
pskl committed Jan 24, 2025
1 parent 875e7ee commit b370182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/asp/payment_request_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def check_da_abrogation # rubocop:disable Metrics/AbcSize
end

other_schoolings = student.schoolings.excluding(payment_request.schooling).to_a.select do |sc|
sc.classe.school_year == SchoolYear.current
sc.classe.school_year == payment_request.schooling.classe.school_year
end

return if other_schoolings.all?(&:abrogated?)
Expand Down

0 comments on commit b370182

Please sign in to comment.