Development #10079
informer l'usager quand le montant minimun de paiement n'est pas atteint
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
Révisions associées
lingo: use unicode for minimal payment amount warning (#10079)
Update tests
lingo: internationalisation fix (#10079)
Historique
Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans
- Fichier 0001-warn-user-when-minimal-payment-amount-is-not-reached.patch 0001-warn-user-when-minimal-payment-amount-is-not-reached.patch ajouté
- Statut changé de Nouveau à En cours
- Assigné à mis à Serghei Mihai (congés, retour 15/05)
- Patch proposed changé de Non à Oui
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)
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.
Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 8 ans
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)
Mis à jour par Serghei Mihai (congés, retour 15/05) il y a presque 8 ans
- Statut changé de Résolu (à déployer) à Fermé
warn user when minimal payment amount is not reached (#10079)