Project 'cooperatic/kohinos-tav' was moved to 'agplv3/kohinos-tav'. Please update any links and bookmarks that may still have the old path.
Commit 1d8fafa5 by Yvon Kerdoncuff

Merge branch '4719-paiement-pave-num' into 'develop'

4719 paiement pave num

See merge request cooperatic/kohinos-tav!38
parents 401891f4 737ac81e
......@@ -522,6 +522,18 @@ $(function() {
$("#code-visual").text("*".repeat(code.length));
});
if ($("form[name='formEncaissement'] #code-digits-container").length > 0) {
document.addEventListener('keydown', function (e) {
if (!isNaN(parseInt(e.key))) {
$(`form[name='formEncaissement'] button.payment-code-button[data-value="${e.key}"]`)[0].click();
} else if (e.key === "Backspace") {
$("form[name='formEncaissement'] .payment-code-correction-button")[0].click();
} else if (e.key === "Enter") {
$("form[name='formEncaissement'] #formEncaissement_save")[0].click();
}
});
}
$("#formEncaisserCotisationAdherent_destinataire").on("change", function() {
const cotisationMontants = JSON.parse($("#formEncaisserCotisationAdherent_cotisationMontants").val());
let cotisationmontant = cotisationMontants[this.value];
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -3,7 +3,7 @@
"app": {
"js": [
"/build/runtime.6ad5c9da.js",
"/build/app.1a688d7d.js"
"/build/app.a8f5cd0d.js"
],
"css": [
"/build/app.9c351632.css"
......
{
"build/app.css": "/build/app.9c351632.css",
"build/app.js": "/build/app.1a688d7d.js",
"build/app.js": "/build/app.a8f5cd0d.js",
"build/admin.css": "/build/admin.5dc0eea7.css",
"build/admin.js": "/build/admin.cee4d78d.js",
"build/runtime.js": "/build/runtime.6ad5c9da.js",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment