From a3e9ba02accb3caab9cf85ee21e8fc4c7c8086f8 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 4 Jul 2017 21:50:34 +0200 Subject: [PATCH] Fix authorized overdraft input field. --- src/accounts/account.form.tmpl.html | 3 ++- src/accounts/index.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/accounts/account.form.tmpl.html b/src/accounts/account.form.tmpl.html index 4f41685..2a11bb6 100644 --- a/src/accounts/account.form.tmpl.html +++ b/src/accounts/account.form.tmpl.html @@ -41,7 +41,8 @@
-
.00€
diff --git a/src/accounts/index.js b/src/accounts/index.js index cea1456..1d82593 100644 --- a/src/accounts/index.js +++ b/src/accounts/index.js @@ -206,6 +206,11 @@ var accountModule = angular.module('accountant.accounts', [ vm.$onInit = function() { vm.account = vm.resolve.account; + vm.authorized_overdraft = - vm.account.authorized_overdraft; + }; + + vm.authorizedOverdraftChange = function() { + vm.account.authorized_overdraft = - vm.authorized_overdraft; }; vm.ok = function() {