Free the transfer lock in case of transfer error

This commit is contained in:
Yohann D'ANELLO 2020-08-16 00:02:09 +02:00
parent 9f258e39b6
commit 5abb155287
1 changed files with 3 additions and 0 deletions

View File

@ -327,6 +327,7 @@ $("#btn_transfer").click(function() {
addMsg("Le transfert de "
+ pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name
+ " vers la note " + dest.name + " a échoué : " + errObj["non_field_errors"], "danger");
LOCK = false;
return;
}
@ -357,6 +358,7 @@ $("#btn_transfer").click(function() {
addMsg("Le transfert de "
+ pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name
+ " vers la note " + dest.name + " a échoué : " + error, "danger");
LOCK = false;
});
});
});
@ -412,6 +414,7 @@ $("#btn_transfer").click(function() {
if (!error)
error = err.responseText;
addMsg("Le crédit/retrait a échoué : " + error, "danger", 10000);
LOCK = false;
});
}
});