taxtank-core 0.32.129 → 0.32.130
Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ export class BankTransactionCollection extends Collection {
|
|
60
60
|
*/
|
61
61
|
getByBankAccounts(bankAccounts) {
|
62
62
|
const bankAccountIds = bankAccounts.map((bankAccount) => bankAccount.id);
|
63
|
-
return this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id));
|
63
|
+
return new BankTransactionCollection(this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id)));
|
64
64
|
}
|
65
65
|
/**
|
66
66
|
* get list of transactions by provided ids of bank accounts
|
@@ -128,4 +128,4 @@ export class BankTransactionCollection extends Collection {
|
|
128
128
|
return this.debitTransactions.getAllocatedAmount(allocations);
|
129
129
|
}
|
130
130
|
}
|
131
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay10cmFuc2FjdGlvbi5jb2xsZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2NvbGxlY3Rpb25zL2JhbmstdHJhbnNhY3Rpb24uY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUVsRixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBSTFDOztHQUVHO0FBQ0gsTUFBTSwwQkFBMEIsR0FBVyxFQUFFLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQztBQUU1RDs7Ozs7R0FLRztBQUNILE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxVQUEyQjtJQUN4RSxTQUFTO1FBQ1AsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQzlCLEN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xlY3Rpb24pOiB0aGlzIHtcbiAgICByZXR1cm4gdGhpcy5maWx0ZXIoKGJhbmtUcmFuc2FjdGlvbjogQmFua1RyYW5zYWN0aW9uKTogYm9vbGVhbiA9PiAhYmFua1RyYW5zYWN0aW9uLmlzQWxsb2NhdGVkKGFsbG9jYXRpb25zKSk7XG4gIH1cblxuICAvKipcbiAgICogQWxsb2NhdGVkIHN1bSBvZiBjcmVkaXQgdHJhbnNhY3Rpb25zXG4gICAqL1xuICBnZXRDcmVkaXRBbW91bnQoYWxsb2NhdGlvbnM6IFRyYW5zYWN0aW9uQWxsb2NhdGlvbkNvbGxlY3Rpb24pOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmNyZWRpdFRyYW5zYWN0aW9ucy5nZXRBbGxvY2F0ZWRBbW91bnQoYWxsb2NhdGlvbnMpO1xuICB9XG5cbiAgLyoqXG4gICAqIEFsbG9jYXRlZCBzdW0gb2YgZGViaXQgdHJhbnNhY3Rpb25zXG4gICAqL1xuICBnZXREZWJpdEFtb3VudChhbGxvY2F0aW9uczogVHJhbnNhY3Rpb25BbGxvY2F0aW9uQ29sbGVjdGlvbik6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuZGViaXRUcmFuc2FjdGlvbnMuZ2V0QWxsb2NhdGVkQW1vdW50KGFsbG9jYXRpb25zKTtcbiAgfVxufVxuIl19
|
@@ -9109,7 +9109,7 @@ class BankTransactionCollection extends Collection {
|
|
9109
9109
|
*/
|
9110
9110
|
getByBankAccounts(bankAccounts) {
|
9111
9111
|
const bankAccountIds = bankAccounts.map((bankAccount) => bankAccount.id);
|
9112
|
-
return this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id));
|
9112
|
+
return new BankTransactionCollection(this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id)));
|
9113
9113
|
}
|
9114
9114
|
/**
|
9115
9115
|
* get list of transactions by provided ids of bank accounts
|