taxtank-core 0.33.20 → 0.33.22
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/report/income-expense/transaction-report-item.collection.mjs +16 -0
- package/esm2022/src/lib/collections/report/index.mjs +2 -1
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +1 -4
- package/esm2022/src/lib/models/report/income-expense/transaction-report-item.mjs +17 -0
- package/esm2022/src/lib/models/report/index.mjs +2 -1
- package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +2 -2
- package/esm2022/src/lib/services/http/transaction/index.mjs +2 -1
- package/esm2022/src/lib/services/http/transaction/prior-transaction.service.mjs +31 -0
- package/fesm2022/taxtank-core.mjs +57 -5
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/report/income-expense/transaction-report-item.collection.d.ts +8 -0
- package/src/lib/collections/report/index.d.ts +1 -0
- package/src/lib/collections/transaction/transaction.collection.d.ts +0 -1
- package/src/lib/models/report/income-expense/transaction-report-item.d.ts +12 -0
- package/src/lib/models/report/index.d.ts +1 -0
- package/src/lib/services/http/transaction/index.d.ts +1 -0
- package/src/lib/services/http/transaction/prior-transaction.service.d.ts +20 -0
package/package.json
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Collection } from '../../collection';
|
2
|
+
import { TransactionReportItem } from '../../../models/report';
|
3
|
+
import { TransactionCollection } from '../../transaction';
|
4
|
+
export declare class TransactionReportItemCollection extends Collection<TransactionReportItem> {
|
5
|
+
static fromTransactions(transactions: TransactionCollection, priorTransactions: TransactionCollection): TransactionReportItemCollection;
|
6
|
+
get months(): number[];
|
7
|
+
sumBy(path: string, abs?: boolean): number;
|
8
|
+
}
|
@@ -4,3 +4,4 @@ export * from './property/property-report-item-depreciation.collection';
|
|
4
4
|
export * from './property/property-report-item-transaction.collection';
|
5
5
|
export * from './property/property-report-item.collection';
|
6
6
|
export * from './vehicle-expense/vehicle-expense.collection';
|
7
|
+
export * from './income-expense/transaction-report-item.collection';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { TransactionCollection } from '../../../collections';
|
2
|
+
import { TankTypeEnum } from '../../../db/Enums/tank-type.enum';
|
3
|
+
export declare class TransactionReportItem {
|
4
|
+
tankType: TankTypeEnum;
|
5
|
+
category: string;
|
6
|
+
months: number[];
|
7
|
+
amount: number;
|
8
|
+
claimAmount: number;
|
9
|
+
priorAmount: number;
|
10
|
+
priorClaimAmount: number;
|
11
|
+
constructor(transactions: TransactionCollection, priorTransactions: TransactionCollection);
|
12
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { RestMethod, RestService } from '../rest';
|
2
|
+
import { UserRolesEnum } from 'taxtank-core/common';
|
3
|
+
import { Transaction as TransactionBase } from '../../../db/Models/transaction/transaction';
|
4
|
+
import { Transaction } from '../../../models';
|
5
|
+
import { TransactionCollection } from '../../../collections';
|
6
|
+
import { Observable } from 'rxjs';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
/**
|
9
|
+
* Service that handling user's bank accounts logic
|
10
|
+
*/
|
11
|
+
export declare class PriorTransactionService extends RestService<TransactionBase, Transaction, TransactionCollection> {
|
12
|
+
endpointUri: string;
|
13
|
+
modelClass: typeof Transaction;
|
14
|
+
collectionClass: typeof TransactionCollection;
|
15
|
+
disabledMethods: RestMethod[];
|
16
|
+
roles: UserRolesEnum[];
|
17
|
+
get(): Observable<TransactionCollection>;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PriorTransactionService, never>;
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PriorTransactionService>;
|
20
|
+
}
|