taxtank-core 1.0.23 → 1.0.26
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 +47 -13
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/functions/transformer/transformDate.d.ts +3 -0
- package/src/lib/models/bank/bank-account.d.ts +2 -0
- package/src/lib/models/financial-year/financial-year.d.ts +0 -2
- package/src/lib/services/http/transaction/index.d.ts +1 -0
- package/src/lib/services/http/transaction/invoice-transactions.service.d.ts +20 -0
- package/src/lib/services/http/transaction/transaction.service.d.ts +0 -1
package/package.json
CHANGED
@@ -2,3 +2,4 @@ export * from './transaction-allocation/allocation-rule/allocation-rule.service'
|
|
2
2
|
export * from './transaction-allocation/transaction-allocation.service';
|
3
3
|
export * from './transaction.service';
|
4
4
|
export * from './prior-transaction.service';
|
5
|
+
export * from './invoice-transactions.service';
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Transaction as TransactionBase } from '../../../db/Models/transaction/transaction';
|
2
|
+
import { Transaction } from '../../../models';
|
3
|
+
import { RestMethod, RestService } from '../rest';
|
4
|
+
import { TransactionCollection } from '../../../collections';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* invoice-related transactions from all years except the current user's financialYear
|
8
|
+
* invoices can be paid through different years and require transactions from all years
|
9
|
+
* we exclude the current year to optimize performance
|
10
|
+
* (no need to update cache in this service, cause only current year transactions can be changed)
|
11
|
+
* (we take the current year from TransactionService)
|
12
|
+
*/
|
13
|
+
export declare class InvoiceTransactionsService extends RestService<TransactionBase, Transaction, TransactionCollection> {
|
14
|
+
modelClass: typeof Transaction;
|
15
|
+
collectionClass: typeof TransactionCollection;
|
16
|
+
endpointUri: string;
|
17
|
+
disabledMethods: RestMethod[];
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceTransactionsService, never>;
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceTransactionsService>;
|
20
|
+
}
|
@@ -24,7 +24,6 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
|
|
24
24
|
*/
|
25
25
|
listenEvents(): void;
|
26
26
|
get(path?: string): Observable<Transaction[]>;
|
27
|
-
getCurrentYear(): Observable<Transaction[]>;
|
28
27
|
/**
|
29
28
|
* Add single new transaction
|
30
29
|
* @param model New Transaction instance for saving
|