taxtank-core 0.28.8 → 0.28.9
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/bundles/taxtank-core.umd.js +8 -4
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/bank-transaction.collection.js +2 -2
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +9 -3
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +2 -2
- package/fesm2015/taxtank-core.js +8 -4
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/bank-transaction.collection.d.ts +1 -1
- package/lib/services/bank/bank-account-calculation.service.d.ts +2 -1
- package/lib/services/bank/bank-transaction-calculation.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -68,5 +68,5 @@ export declare class BankTransactionCollection extends Collection<BankTransactio
|
|
|
68
68
|
/**
|
|
69
69
|
* Get collection of unallocated bankTransactions
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
getUnallocated(allocations: TransactionAllocationCollection): BankTransactionCollection;
|
|
72
72
|
}
|
|
@@ -2,6 +2,7 @@ import { BankAccountCollection } from '../../collections/bank-account.collection
|
|
|
2
2
|
import { BankTransactionCollection } from '../../collections/bank-transaction.collection';
|
|
3
3
|
import { TransactionAllocationCollection } from '../../collections/transaction/transaction-allocation.collection';
|
|
4
4
|
import { BankTransactionCalculationService } from './bank-transaction-calculation.service';
|
|
5
|
+
import { BankAccount } from '../../models/bank/bank-account';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class BankAccountCalculationService {
|
|
7
8
|
private bankTransactionCalculationService;
|
|
@@ -9,7 +10,7 @@ export declare class BankAccountCalculationService {
|
|
|
9
10
|
/**
|
|
10
11
|
* Sum of bank accounts opening balances and their bank transactions allocated amounts
|
|
11
12
|
*/
|
|
12
|
-
getTaxTankBalance(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
|
|
13
|
+
getTaxTankBalance(bankAccounts: BankAccountCollection | BankAccount, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
|
|
13
14
|
/**
|
|
14
15
|
* get difference between total loans amount and total cash amount
|
|
15
16
|
*/
|
|
@@ -27,7 +27,7 @@ export declare class BankTransactionCalculationService {
|
|
|
27
27
|
* Get collection of unallocated bank transactions
|
|
28
28
|
* @TODO Alex: consider to move to collection
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
getUnallocated(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): BankTransactionCollection;
|
|
31
31
|
/**
|
|
32
32
|
* Allocated sum of credit transactions
|
|
33
33
|
*/
|