taxtank-core 0.31.55 → 0.31.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/models/bank/bank-account.mjs +8 -6
- package/esm2020/lib/models/financial-year/financial-year.mjs +6 -2
- package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +3 -2
- package/fesm2015/taxtank-core.mjs +14 -7
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +14 -7
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/models/bank/bank-account.d.ts +3 -2
- package/lib/models/financial-year/financial-year.d.ts +2 -0
- package/package.json +1 -1
|
@@ -21,14 +21,15 @@ export declare class BankAccount extends BankAccountBase {
|
|
|
21
21
|
* Get last digits of account number
|
|
22
22
|
*/
|
|
23
23
|
get partialAccountNumber(): string;
|
|
24
|
+
get balance(): number;
|
|
24
25
|
/**
|
|
25
26
|
* Get current opening balance amount
|
|
26
27
|
*/
|
|
27
|
-
getOpeningBalance(): number;
|
|
28
|
+
getOpeningBalance(year?: number): number;
|
|
28
29
|
/**
|
|
29
30
|
* Get bank account balance for current financial year
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
|
+
getBalanceByYear(year: number): BankAccountBalance;
|
|
32
33
|
/**
|
|
33
34
|
* check if bank account type is one of savings accounts
|
|
34
35
|
*/
|
|
@@ -2,12 +2,14 @@ export declare class FinancialYear {
|
|
|
2
2
|
static weeksInYear: number;
|
|
3
3
|
static monthsInYear: number;
|
|
4
4
|
static startMonthIndex: number;
|
|
5
|
+
static year: number;
|
|
5
6
|
year: number;
|
|
6
7
|
startDate: Date;
|
|
7
8
|
endDate: Date;
|
|
8
9
|
private yearStartDate;
|
|
9
10
|
private yearEndDate;
|
|
10
11
|
constructor(date?: Date | number);
|
|
12
|
+
static isCurrent(year?: number): boolean;
|
|
11
13
|
includes(date: Date): boolean;
|
|
12
14
|
static toFinYear(date: Date): number;
|
|
13
15
|
get prevFinYear(): FinancialYear;
|