Skip to content

Commit

Permalink
fix mention_devis
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Letellier (Beta.gouv) committed Dec 10, 2024
1 parent 7231883 commit c3e92cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/quote_validator/global.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def validate!
# doit valider les mentions administratives du devis
def validate_admin
# mention devis présente ou non, quote[:devis] est un boolean
@errors << "devis_manquant" unless quote[:devis]
@errors << "devis_manquant" unless quote[:mention_devis]
@errors << "numero_devis_manquant" if quote[:numero_devis].present?

validate_dates
Expand Down

0 comments on commit c3e92cf

Please sign in to comment.