Fix authorized overdraft input field.
This commit is contained in:
parent
e90f4d21e8
commit
a3e9ba02ac
@ -41,7 +41,8 @@
|
||||
<div class="input-group-addon">-</div>
|
||||
<input class="form-control" id="authorized-overdraft"
|
||||
name="authorized_overdraft"
|
||||
ng-model="$ctrl.account.authorized_overdraft"
|
||||
ng-model="$ctrl.authorized_overdraft"
|
||||
ng-change="$ctrl.authorizedOverdraftChange()"
|
||||
type="number" placeholder="Authorized overdraft"
|
||||
required min="0"/>
|
||||
<div class="input-group-addon">.00€</div>
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user