🐛 Reset transfer form even if the note has not enough money

This commit is contained in:
Yohann D'ANELLO 2020-08-03 10:54:52 +02:00
parent 0e8174aacd
commit 6c8843e5fc
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ $("#btn_transfer").click(function() {
addMsg("Le transfert de " addMsg("Le transfert de "
+ pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name + pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name
+ " vers la note " + dest.name + " a échoué : Solde insuffisant", "danger", 10000); + " vers la note " + dest.name + " a échoué : Solde insuffisant", "danger", 10000);
reset();
}).fail(function (err) { }).fail(function (err) {
addMsg("Le transfert de " addMsg("Le transfert de "
+ pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name + pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name