Projet

Général

Profil

Development #10079

informer l'usager quand le montant minimun de paiement n'est pas atteint

Ajouté par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Normal
Version cible:
-
Début:
25 février 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Au lieu de renvoyer une erreur brutale HTTP:

        if total_amount < regie.payment_min_amount:
            return HttpResponseForbidden()

on pourrait informer l'usager que le montant minimum n'a pas été atteint.


Fichiers

0001-warn-user-when-minimal-payment-amount-is-not-reached.patch (940 octets) 0001-warn-user-when-minimal-payment-amount-is-not-reached.patch Serghei Mihai (congés, retour 15/05), 25 février 2016 10:28
0001-lingo-internationalisation-fix-10079.patch (917 octets) 0001-lingo-internationalisation-fix-10079.patch Serghei Mihai (congés, retour 15/05), 25 février 2016 14:07

Révisions associées

Révision 822eb20c (diff)
Ajouté par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans

warn user when minimal payment amount is not reached (#10079)

Révision 43cd7bee (diff)
Ajouté par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans

lingo: use unicode for minimal payment amount warning (#10079)

Update tests

Révision 8e538c46 (diff)
Ajouté par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans

lingo: internationalisation fix (#10079)

Historique

#1

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans

#2

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

Ack.

#3

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 822eb20cee4bbc392ebb288559f38504f124d676
Author: Serghei Mihai <smihai@entrouvert.com>
Date:   Thu Feb 25 10:16:06 2016 +0100

    warn user when minimal payment amount is not reached (#10079)
#4

Mis à jour par Frédéric Péters il y a environ 8 ans

  • Statut changé de Résolu (à déployer) à En cours
+            messages.warning(request, _(u'Minimal payment amount is %s €.' % regie.payment_min_amount))

Ce n'est pas correct, c'est la chaine avec le %s qui doit être passée par gettext, pas la chaine après la substitution.

#6

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

Ack.

#7

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 8e538c4636c137889aa94e374f80cc21370fed03
Author: Serghei Mihai <smihai@entrouvert.com>
Date:   Thu Feb 25 13:54:38 2016 +0100

    lingo: internationalisation fix (#10079)
#8

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a presque 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF