mirror of https://gitlab.crans.org/bde/nk20
Free the transfer lock in case of transfer error
This commit is contained in:
parent
9f258e39b6
commit
5abb155287
|
@ -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;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue