Rename solds to balances.
This commit is contained in:
parent
396210d924
commit
13320602bf
@ -39,20 +39,21 @@
|
|||||||
|
|
||||||
<tr id="{{ account.id }}"
|
<tr id="{{ account.id }}"
|
||||||
class="form-inline" ng-class="rowClass(account)"
|
class="form-inline" ng-class="rowClass(account)"
|
||||||
ng-repeat="account in accountsCtrl.accounts | orderBy:'name'" ng-init="account.getSolds()">
|
ng-repeat="account in accountsCtrl.accounts | orderBy:'name'"
|
||||||
|
ng-init="account.getBalances()">
|
||||||
<td>
|
<td>
|
||||||
<a href="#!/account/{{ account.id }}/operations">{{ account.name }}</a>
|
<a href="#!/account/{{ account.id }}/operations">{{ account.name }}</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span ng-class="accountsCtrl.valueClass(account, account.solds.current)">
|
<span ng-class="accountsCtrl.valueClass(account, account.balances.current)">
|
||||||
{{ account.solds.current | currency : "€" }}
|
{{ account.balances.current | currency : "€" }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span ng-class="accountsCtrl.valueClass(account, account.solds.pointed)">
|
<span ng-class="accountsCtrl.valueClass(account, account.balancess.pointed)">
|
||||||
{{ account.solds.pointed | currency : "€" }}
|
{{ account.balances.pointed | currency : "€" }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
@ -47,10 +47,10 @@ var accountModule = angular.module('accountant.accounts', [
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
Account.prototype.getSolds = function() {
|
Account.prototype.getBalances = function() {
|
||||||
var Solds = $resource('/api/account/:id/balances', {id: this.id});
|
var Balances = $resource('/api/account/:id/balances', {id: this.id});
|
||||||
|
|
||||||
this.solds = Solds.get();
|
this.balances = Balances.get();
|
||||||
};
|
};
|
||||||
|
|
||||||
Account.prototype.getBalance = function(begin, end) {
|
Account.prototype.getBalance = function(begin, end) {
|
||||||
|
Loading…
Reference in New Issue
Block a user