taxtank-core 0.5.1 → 0.5.2
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 +180 -155
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/depreciation.collection.js +8 -1
- package/esm2015/lib/collections/transaction.collection.js +4 -1
- package/esm2015/lib/models/depreciation/depreciation.js +9 -2
- package/esm2015/lib/models/pdf/pdf-config.js +3 -3
- package/esm2015/lib/services/pdf/pdf.service.js +12 -6
- package/fesm2015/taxtank-core.js +147 -126
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/depreciation.collection.d.ts +5 -0
- package/lib/collections/transaction.collection.d.ts +1 -0
- package/lib/models/depreciation/depreciation.d.ts +5 -0
- package/lib/services/pdf/pdf.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { TankTypeEnum } from '../db/Enums/tank-type.enum';
|
|
|
2
2
|
import { Collection } from './collection';
|
|
3
3
|
import { Depreciation } from '../models/depreciation/depreciation';
|
|
4
4
|
import { DepreciationCapitalProject } from '../models/depreciation/depreciation-capital-project';
|
|
5
|
+
import { TransactionCollection } from './transaction.collection';
|
|
5
6
|
export declare class DepreciationCollection extends Collection<Depreciation> {
|
|
6
7
|
/**
|
|
7
8
|
* Get total amount of all depreciations in the collection
|
|
@@ -25,4 +26,8 @@ export declare class DepreciationCollection extends Collection<Depreciation> {
|
|
|
25
26
|
getWrittenOffDepreciations(): DepreciationCollection;
|
|
26
27
|
getLowValuePoolDepreciations(): DepreciationCollection;
|
|
27
28
|
getCapitalProjects(): DepreciationCapitalProject[];
|
|
29
|
+
/**
|
|
30
|
+
* Create TransactionCollection from depreciation items
|
|
31
|
+
*/
|
|
32
|
+
toTransactions(): TransactionCollection;
|
|
28
33
|
}
|
|
@@ -34,6 +34,7 @@ export declare class TransactionCollection extends Collection<Transaction> {
|
|
|
34
34
|
* Get summary of claim amounts
|
|
35
35
|
*/
|
|
36
36
|
get claimAmount(): number;
|
|
37
|
+
get grossAmount(): number;
|
|
37
38
|
getByCategories(categories: ChartAccountsCategoryEnum[]): TransactionCollection;
|
|
38
39
|
/**
|
|
39
40
|
* Get transactions by month
|
|
@@ -7,6 +7,7 @@ import { BankTransaction } from '../bank/bank-transaction';
|
|
|
7
7
|
import { ITank } from '../../interfaces/tank.interface';
|
|
8
8
|
import { IReceipt } from '../../interfaces/receipt.interface';
|
|
9
9
|
import { IAsset } from '../../interfaces/asset.interface';
|
|
10
|
+
import { Transaction } from '../transaction/transaction';
|
|
10
11
|
export declare class Depreciation extends DepreciationBase implements ITank, IReceipt {
|
|
11
12
|
static WRITTEN_OFF_THRESHOLD: number;
|
|
12
13
|
static LOW_VALUE_POOL_THRESHOLD: number;
|
|
@@ -67,4 +68,8 @@ export declare class Depreciation extends DepreciationBase implements ITank, IRe
|
|
|
67
68
|
getClaimPercent(): number;
|
|
68
69
|
getCurrentYearForecastAmount(): number;
|
|
69
70
|
isBuildingAtCost(): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Create a new transaction from current depreciation
|
|
73
|
+
*/
|
|
74
|
+
toTransaction(): Transaction;
|
|
70
75
|
}
|
|
@@ -13,6 +13,7 @@ export declare class PdfService {
|
|
|
13
13
|
* @Todo rename when all DataTable dependent methods will be cleared-up
|
|
14
14
|
*/
|
|
15
15
|
private generateFromTables;
|
|
16
|
+
private setDocumentTitle;
|
|
16
17
|
/**
|
|
17
18
|
* @Todo remove/refactor when all DataTable dependent methods will be cleared-up
|
|
18
19
|
* Generate PDF file from provided data
|