Change property visibility.
This commit is contained in:
parent
406ae3aae0
commit
4aea098e3d
@ -3,13 +3,13 @@
|
|||||||
import { AccountBalances } from './accountBalances';
|
import { AccountBalances } from './accountBalances';
|
||||||
|
|
||||||
export class Account {
|
export class Account {
|
||||||
id: number;
|
public id: number;
|
||||||
name: string;
|
public name: string;
|
||||||
authorized_overdraft: number;
|
public authorized_overdraft: number;
|
||||||
|
|
||||||
balances: AccountBalances;
|
public balances: AccountBalances;
|
||||||
|
|
||||||
constructor() {
|
public constructor() {
|
||||||
this.authorized_overdraft = 0;
|
this.authorized_overdraft = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
||||||
export class AccountBalances {
|
export class AccountBalances {
|
||||||
current: number;
|
public current: number;
|
||||||
pointed: number;
|
public pointed: number;
|
||||||
future: number;
|
public future: number;
|
||||||
}
|
}
|
||||||
|
@ -26,18 +26,18 @@ import { AccountEditModalComponent } from './accountEditModal.component';
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span (ngClass)="valueClass(account, accountBalances?.current)">
|
<span (ngClass)="valueClass(accountBalances?.current)">
|
||||||
{{ accountBalances?.current | currency:"EUR":true }}
|
{{ accountBalances?.current | currency:'EUR':'symbol' }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span (ngClass)="valueClass(account, accountBalances?.pointed)">
|
<span (ngClass)="valueClass(accountBalances?.pointed)">
|
||||||
{{ accountBalances?.pointed | currency:"EUR":true }}
|
{{ accountBalances?.pointed | currency:'EUR':'symbol' }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>{{ account.authorized_overdraft | currency:"EUR":true }}</td>
|
<td>{{ account.authorized_overdraft | currency:'EUR':'symbol' }}</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group btn-group-sm">
|
<div class="btn-group btn-group-sm">
|
||||||
@ -67,7 +67,7 @@ export class AccountRowComponent implements OnInit {
|
|||||||
@Input('account-row') account: Account;
|
@Input('account-row') account: Account;
|
||||||
@Output() needsReload: EventEmitter<void> = new EventEmitter<void>();
|
@Output() needsReload: EventEmitter<void> = new EventEmitter<void>();
|
||||||
|
|
||||||
private accountBalances: AccountBalances;
|
public accountBalances: AccountBalances;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private accountService: AccountService,
|
private accountService: AccountService,
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
||||||
|
|
||||||
export class DailyBalance {
|
export class DailyBalance {
|
||||||
operation_date: string;
|
public operation_date: string;
|
||||||
balance: number;
|
public balance: number;
|
||||||
expenses: number;
|
public expenses: number;
|
||||||
revenues: number;
|
public revenues: number;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2:
|
// vim: set tw=80 ts=2 sw=2 sts=2:
|
||||||
|
|
||||||
export class Login {
|
export class Login {
|
||||||
email: string;
|
public email: string;
|
||||||
password: string;
|
public password: string;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
||||||
|
|
||||||
export class Token {
|
export class Token {
|
||||||
access_token: string;
|
public access_token: string;
|
||||||
refresh_token: string;
|
public refresh_token: string;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
||||||
|
|
||||||
export class Category {
|
export class Category {
|
||||||
category: string;
|
public category: string;
|
||||||
expenses: number;
|
public expenses: number;
|
||||||
revenues: number;
|
public revenues: number;
|
||||||
|
public income: number;
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2:
|
// vim: set tw=80 ts=2 sw=2 sts=2:
|
||||||
|
|
||||||
export class Operation {
|
export class Operation {
|
||||||
id: number;
|
public id: number;
|
||||||
operation_date: string;
|
public operation_date: string;
|
||||||
label: string;
|
public label: string;
|
||||||
value: number;
|
public value: number;
|
||||||
category: string;
|
public category: string;
|
||||||
scheduled_operation_id: number;
|
public scheduled_operation_id: number;
|
||||||
account_id: number;
|
public account_id: number;
|
||||||
balance: number;
|
public balance: number;
|
||||||
confirmed: boolean;
|
public confirmed: boolean;
|
||||||
pointed: boolean;
|
public pointed: boolean;
|
||||||
cancelled: boolean
|
public canceled: boolean
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ export class OperationListComponent implements OnInit {
|
|||||||
private account: Account;
|
private account: Account;
|
||||||
private minDate: Date;
|
private minDate: Date;
|
||||||
private maxDate: Date;
|
private maxDate: Date;
|
||||||
private operations: Operation[];
|
public operations: Operation[];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private toastrService: ToastrService,
|
private toastrService: ToastrService,
|
||||||
|
Loading…
Reference in New Issue
Block a user