Change property visibility.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user