Change property visibility.

This commit is contained in:
2018-06-09 23:19:39 +02:00
parent 406ae3aae0
commit 4aea098e3d
9 changed files with 38 additions and 37 deletions
+5 -5
View File
@@ -3,13 +3,13 @@
import { AccountBalances } from './accountBalances';
export class Account {
id: number;
name: string;
authorized_overdraft: number;
public id: number;
public name: string;
public authorized_overdraft: number;
balances: AccountBalances;
public balances: AccountBalances;
constructor() {
public constructor() {
this.authorized_overdraft = 0;
}
}
+3 -3
View File
@@ -1,6 +1,6 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class AccountBalances {
current: number;
pointed: number;
future: number;
public current: number;
public pointed: number;
public future: number;
}
+6 -6
View File
@@ -26,18 +26,18 @@ import { AccountEditModalComponent } from './accountEditModal.component';
</td>
<td>
<span (ngClass)="valueClass(account, accountBalances?.current)">
{{ accountBalances?.current | currency:"EUR":true }}
<span (ngClass)="valueClass(accountBalances?.current)">
{{ accountBalances?.current | currency:'EUR':'symbol' }}
</span>
</td>
<td>
<span (ngClass)="valueClass(account, accountBalances?.pointed)">
{{ accountBalances?.pointed | currency:"EUR":true }}
<span (ngClass)="valueClass(accountBalances?.pointed)">
{{ accountBalances?.pointed | currency:'EUR':'symbol' }}
</span>
</td>
<td>{{ account.authorized_overdraft | currency:"EUR":true }}</td>
<td>{{ account.authorized_overdraft | currency:'EUR':'symbol' }}</td>
<td>
<div class="btn-group btn-group-sm">
@@ -67,7 +67,7 @@ export class AccountRowComponent implements OnInit {
@Input('account-row') account: Account;
@Output() needsReload: EventEmitter<void> = new EventEmitter<void>();
private accountBalances: AccountBalances;
public accountBalances: AccountBalances;
constructor(
private accountService: AccountService,
+4 -4
View File
@@ -1,8 +1,8 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class DailyBalance {
operation_date: string;
balance: number;
expenses: number;
revenues: number;
public operation_date: string;
public balance: number;
public expenses: number;
public revenues: number;
}