diff --git a/src/accounts/account.ts b/src/accounts/account.ts
index 8e80565..dac5c23 100644
--- a/src/accounts/account.ts
+++ b/src/accounts/account.ts
@@ -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;
}
}
diff --git a/src/accounts/accountBalances.ts b/src/accounts/accountBalances.ts
index d649ef6..533b27d 100644
--- a/src/accounts/accountBalances.ts
+++ b/src/accounts/accountBalances.ts
@@ -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;
}
diff --git a/src/accounts/accountRow.component.ts b/src/accounts/accountRow.component.ts
index ebc2cc0..5303841 100644
--- a/src/accounts/accountRow.component.ts
+++ b/src/accounts/accountRow.component.ts
@@ -26,18 +26,18 @@ import { AccountEditModalComponent } from './accountEditModal.component';
-
- {{ accountBalances?.current | currency:"EUR":true }}
+
+ {{ accountBalances?.current | currency:'EUR':'symbol' }}
|
-
- {{ accountBalances?.pointed | currency:"EUR":true }}
+
+ {{ accountBalances?.pointed | currency:'EUR':'symbol' }}
|
-{{ account.authorized_overdraft | currency:"EUR":true }} |
+{{ account.authorized_overdraft | currency:'EUR':'symbol' }} |
@@ -67,7 +67,7 @@ export class AccountRowComponent implements OnInit {
@Input('account-row') account: Account;
@Output() needsReload: EventEmitter = new EventEmitter();
- private accountBalances: AccountBalances;
+ public accountBalances: AccountBalances;
constructor(
private accountService: AccountService,
diff --git a/src/accounts/dailyBalance.ts b/src/accounts/dailyBalance.ts
index 68c3669..627414e 100644
--- a/src/accounts/dailyBalance.ts
+++ b/src/accounts/dailyBalance.ts
@@ -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;
}
diff --git a/src/login/login.ts b/src/login/login.ts
index 3424c59..ed89af5 100644
--- a/src/login/login.ts
+++ b/src/login/login.ts
@@ -1,6 +1,6 @@
// vim: set tw=80 ts=2 sw=2 sts=2:
export class Login {
- email: string;
- password: string;
+ public email: string;
+ public password: string;
}
diff --git a/src/login/token.ts b/src/login/token.ts
index bd6902d..02396c4 100644
--- a/src/login/token.ts
+++ b/src/login/token.ts
@@ -1,6 +1,6 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class Token {
- access_token: string;
- refresh_token: string;
+ public access_token: string;
+ public refresh_token: string;
}
diff --git a/src/operations/category.ts b/src/operations/category.ts
index 3e523f9..3845882 100644
--- a/src/operations/category.ts
+++ b/src/operations/category.ts
@@ -1,7 +1,8 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class Category {
- category: string;
- expenses: number;
- revenues: number;
+ public category: string;
+ public expenses: number;
+ public revenues: number;
+ public income: number;
}
diff --git a/src/operations/operation.ts b/src/operations/operation.ts
index 5d176c0..89b7163 100644
--- a/src/operations/operation.ts
+++ b/src/operations/operation.ts
@@ -1,15 +1,15 @@
// vim: set tw=80 ts=2 sw=2 sts=2:
export class Operation {
- id: number;
- operation_date: string;
- label: string;
- value: number;
- category: string;
- scheduled_operation_id: number;
- account_id: number;
- balance: number;
- confirmed: boolean;
- pointed: boolean;
- cancelled: boolean
+ public id: number;
+ public operation_date: string;
+ public label: string;
+ public value: number;
+ public category: string;
+ public scheduled_operation_id: number;
+ public account_id: number;
+ public balance: number;
+ public confirmed: boolean;
+ public pointed: boolean;
+ public canceled: boolean
}
diff --git a/src/operations/operationList.component.ts b/src/operations/operationList.component.ts
index ba8f151..77cd496 100644
--- a/src/operations/operationList.component.ts
+++ b/src/operations/operationList.component.ts
@@ -70,7 +70,7 @@ export class OperationListComponent implements OnInit {
private account: Account;
private minDate: Date;
private maxDate: Date;
- private operations: Operation[];
+ public operations: Operation[];
constructor(
private toastrService: ToastrService,
|