Commit 589a62ee authored by Alexis POYEN's avatar Alexis POYEN
Browse files

Fix: allow to add account to new client

parent df96ea54
......@@ -74,13 +74,14 @@ class ClientDetails {
document.getElementById(`accounts-account-delete-${bankAccount.ID}`).addEventListener("click", function () {
accountHandler.deleteAccount(bankAccount);
});
}
});
let clientDetails = this;
document.getElementById(`bankAccount-new`).addEventListener("click", function () {
console.log("test");
accountHandler.newBankAccount(clientDetails.client);
});
}
});
}
bankAccountTemplate(bankAccount) {
return /* HTML */ `
......
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