taxtank-core 0.33.20 → 0.33.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.20",
3
+ "version": "0.33.21",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -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
+ constructor(transactions: TransactionCollection, priorTransactions: TransactionCollection);
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';
@@ -99,5 +99,4 @@ export declare class TransactionCollection extends TransactionBaseCollection<Tra
99
99
  */
100
100
  getBusinessClaimAmount(businessId?: number): number;
101
101
  getTaxable(): this;
102
- get tankType(): TankTypeEnum;
103
102
  }
@@ -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
+ }
@@ -5,3 +5,4 @@ export * from './sole';
5
5
  export * from './vehicle-expense/vehicle-expense';
6
6
  export * from './report.interface';
7
7
  export * from './reports.const';
8
+ export * from './income-expense/transaction-report-item';
@@ -1,3 +1,4 @@
1
1
  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
+ export * from './prior-transaction.service';
@@ -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
+ }
@@ -26,6 +26,7 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
26
26
  * get list of all user's TaxTank transactions
27
27
  */
28
28
  get(): Observable<Transaction[]>;
29
+ getPriorYear(): Observable<Transaction[]>;
29
30
  getByYear(year?: FinancialYear): Observable<Transaction[]>;
30
31
  /**
31
32
  * Add single new transaction