Fix authorized overdraft input field.
This commit is contained in:
parent
e90f4d21e8
commit
a3e9ba02ac
@ -41,7 +41,8 @@
|
|||||||
<div class="input-group-addon">-</div>
|
<div class="input-group-addon">-</div>
|
||||||
<input class="form-control" id="authorized-overdraft"
|
<input class="form-control" id="authorized-overdraft"
|
||||||
name="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"
|
type="number" placeholder="Authorized overdraft"
|
||||||
required min="0"/>
|
required min="0"/>
|
||||||
<div class="input-group-addon">.00€</div>
|
<div class="input-group-addon">.00€</div>
|
||||||
|
@ -206,6 +206,11 @@ var accountModule = angular.module('accountant.accounts', [
|
|||||||
|
|
||||||
vm.$onInit = function() {
|
vm.$onInit = function() {
|
||||||
vm.account = vm.resolve.account;
|
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() {
|
vm.ok = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user