taxtank-core 2.1.57 → 2.1.60
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/fesm2022/taxtank-core.mjs +46 -50
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +18 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1511,13 +1511,14 @@ declare class Loan$1 extends ObservableModel {
|
|
|
1511
1511
|
|
|
1512
1512
|
declare abstract class TransactionBase extends ObservableModel {
|
|
1513
1513
|
amount?: number;
|
|
1514
|
-
foreignAmount?: number;
|
|
1515
1514
|
file: AppFile;
|
|
1516
1515
|
property?: Property;
|
|
1517
1516
|
business?: SoleBusiness$1;
|
|
1518
1517
|
date?: Date;
|
|
1519
1518
|
chartAccounts?: ChartAccounts$1;
|
|
1520
1519
|
description?: string;
|
|
1520
|
+
currency?: string;
|
|
1521
|
+
exchangeRate?: number;
|
|
1521
1522
|
/**
|
|
1522
1523
|
* gst applies to sole trader expense/income, if he is registered and chartAccounts is eligible
|
|
1523
1524
|
*/
|
|
@@ -1545,6 +1546,8 @@ declare abstract class TransactionBase extends ObservableModel {
|
|
|
1545
1546
|
*/
|
|
1546
1547
|
get grossAmount(): number;
|
|
1547
1548
|
get grossClaimAmount(): number;
|
|
1549
|
+
get isForeign(): boolean;
|
|
1550
|
+
get foreignAmount(): number;
|
|
1548
1551
|
}
|
|
1549
1552
|
|
|
1550
1553
|
declare enum DepreciationTypeEnum {
|
|
@@ -1667,9 +1670,6 @@ declare class Transaction$1 extends TransactionBase {
|
|
|
1667
1670
|
business?: SoleBusiness$1;
|
|
1668
1671
|
isGST?: boolean;
|
|
1669
1672
|
invoiceItem?: SoleInvoiceItem$1;
|
|
1670
|
-
currency?: string;
|
|
1671
|
-
foreignAmount?: number;
|
|
1672
|
-
exchangeRate?: number;
|
|
1673
1673
|
}
|
|
1674
1674
|
|
|
1675
1675
|
declare class SoleInvoiceItem$1 extends AbstractModel {
|
|
@@ -4087,11 +4087,13 @@ declare class BankAccount$1 extends BankAccount {
|
|
|
4087
4087
|
bankAccountProperties: BankAccountProperty[];
|
|
4088
4088
|
businessAllocations: SoleBusinessAllocation[];
|
|
4089
4089
|
balances: BankAccountBalance[];
|
|
4090
|
+
currentBalance: number;
|
|
4090
4091
|
loan: Loan;
|
|
4091
4092
|
bankConnection: BankConnection$1;
|
|
4092
4093
|
migrateFrom: Date;
|
|
4093
4094
|
migrateTo: Date;
|
|
4094
4095
|
currency: string;
|
|
4096
|
+
exchangeRate: number;
|
|
4095
4097
|
get bank(): Bank;
|
|
4096
4098
|
get bsb(): string;
|
|
4097
4099
|
get number(): string;
|
|
@@ -4099,12 +4101,15 @@ declare class BankAccount$1 extends BankAccount {
|
|
|
4099
4101
|
* Get last digits of account number
|
|
4100
4102
|
*/
|
|
4101
4103
|
get partialAccountNumber(): string;
|
|
4104
|
+
/**
|
|
4105
|
+
* @TODO remove after tests
|
|
4106
|
+
*/
|
|
4102
4107
|
get balance(): number;
|
|
4103
4108
|
getBadge(): Badge | null;
|
|
4104
4109
|
/**
|
|
4105
4110
|
* Get the current opening balance amount
|
|
4106
4111
|
*/
|
|
4107
|
-
getOpeningBalance(year?: number): number;
|
|
4112
|
+
getOpeningBalance(year?: number, convertToAud?: boolean): number;
|
|
4108
4113
|
/**
|
|
4109
4114
|
* Get bank account balance for current financial year
|
|
4110
4115
|
*/
|
|
@@ -4177,6 +4182,7 @@ declare class BankAccount$1 extends BankAccount {
|
|
|
4177
4182
|
isLoanPaid(taxTankBalance: number): boolean;
|
|
4178
4183
|
isManual(): boolean;
|
|
4179
4184
|
get isForeign(): boolean;
|
|
4185
|
+
get convertedBalance(): number;
|
|
4180
4186
|
}
|
|
4181
4187
|
|
|
4182
4188
|
declare class SoleBusinessAllocation extends SoleBusinessAllocation$1 {
|
|
@@ -8967,17 +8973,15 @@ declare class AssetsService {
|
|
|
8967
8973
|
static ɵprov: i0.ɵɵInjectableDeclaration<AssetsService>;
|
|
8968
8974
|
}
|
|
8969
8975
|
|
|
8976
|
+
/**
|
|
8977
|
+
* @TODO move to BankAccountCollection
|
|
8978
|
+
*/
|
|
8970
8979
|
declare class BankAccountCalculationService {
|
|
8971
8980
|
/**
|
|
8972
8981
|
* Sum of bank accounts opening balances and their bank transactions allocated amounts
|
|
8973
8982
|
*/
|
|
8974
|
-
getTaxTankBalance(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection,
|
|
8975
|
-
|
|
8976
|
-
getCashOut(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection, exchangeRateByCurrency: Dictionary<ExchangeRate>): number;
|
|
8977
|
-
/**
|
|
8978
|
-
* get difference between total loans amount and total cash amount
|
|
8979
|
-
*/
|
|
8980
|
-
getNetPosition(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
|
|
8983
|
+
getTaxTankBalance(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection, convertToAud?: boolean): number;
|
|
8984
|
+
getAllocatedAmount(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection, convertToAud?: boolean): number;
|
|
8981
8985
|
static ɵfac: i0.ɵɵFactoryDeclaration<BankAccountCalculationService, never>;
|
|
8982
8986
|
static ɵprov: i0.ɵɵInjectableDeclaration<BankAccountCalculationService>;
|
|
8983
8987
|
}
|
|
@@ -11332,6 +11336,7 @@ declare class BankAccount extends ObservableModel {
|
|
|
11332
11336
|
bankTransactions?: BankTransaction$1[];
|
|
11333
11337
|
balances?: BankAccountBalance[];
|
|
11334
11338
|
loan?: Loan$1;
|
|
11339
|
+
exchangeRate: number;
|
|
11335
11340
|
}
|
|
11336
11341
|
|
|
11337
11342
|
declare class BankAccountBalance extends AbstractModel {
|
|
@@ -11450,6 +11455,7 @@ declare class Collection<Model extends object> implements Iterable<Model> {
|
|
|
11450
11455
|
getIds(): number[];
|
|
11451
11456
|
map(callback: (item: Model) => any): any[];
|
|
11452
11457
|
mapBy(path: string): any[];
|
|
11458
|
+
uniqMapBy(path: string): any;
|
|
11453
11459
|
sortBy(paths?: string | string[], order?: string | string[]): this;
|
|
11454
11460
|
sort(callback: (a: Model, b: Model) => number): this;
|
|
11455
11461
|
/**
|