Skip to content
Extraits de code Groupes Projets
Valider 4dac9201 rédigé par Hugo Trentesaux's avatar Hugo Trentesaux
Parcourir les fichiers

fix validation error message

parent c4d2acf7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -57,7 +57,7 @@ class MutualGuaranteeFundLine(models.Model):
if fmg.type == "subscribe" and fmg.amount <= 0:
raise ValidationError("Le montant d'une souscription doit être positif")
elif fmg.type in ["refund", "guarantee_call", "storing"] and fmg.amount >= 0:
raise ValidationError("Le montant d'une souscription doit être négatif")
raise ValidationError("Le montant d'un remboursement/appel/réserve doit être strictement négatif")
# ------------------------------------------------------
# Computed fields / Search Fields
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter