taxtank-core 0.10.6 → 0.10.7
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 +126 -28
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/db/Enums/property/property-category-list.enum.js +2 -1
- package/esm2015/lib/models/export/export-data-table.js +6 -0
- package/esm2015/lib/services/http/transaction/transaction.service.js +11 -1
- package/esm2015/lib/services/pdf/pdf.service.js +47 -22
- package/esm2015/lib/services/property/property-holding-costs/property-holding-costs.service.js +53 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/taxtank-core.js +110 -22
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/db/Enums/property/property-category-list.enum.d.ts +2 -1
- package/lib/models/export/export-data-table.d.ts +9 -0
- package/lib/services/http/transaction/transaction.service.d.ts +4 -0
- package/lib/services/pdf/pdf.service.d.ts +14 -1
- package/lib/services/property/property-holding-costs/property-holding-costs.service.d.ts +24 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -42,6 +42,10 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
|
|
|
42
42
|
* get list of transactions with tank type 'Work'
|
|
43
43
|
*/
|
|
44
44
|
getWorkTransactions(): Observable<Transaction[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Get list of property holding costs (transactions related to vacant land property)
|
|
47
|
+
*/
|
|
48
|
+
getPropertyHoldingCosts(propertyId: number): Observable<Transaction[]>;
|
|
45
49
|
/**
|
|
46
50
|
* get list of taxable transactions with tank type 'Work'
|
|
47
51
|
*/
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
import { ExportDataTable } from '../../models/export/export-data-table';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class PdfService {
|
|
3
4
|
/**
|
|
4
|
-
* Export file
|
|
5
|
+
* Export file from provided HTML tables
|
|
5
6
|
*/
|
|
6
7
|
exportTables(tables: NodeListOf<HTMLTableElement>, title: string, fileName: string): void;
|
|
8
|
+
/**
|
|
9
|
+
* Export file from provided array-like table data
|
|
10
|
+
*/
|
|
11
|
+
exportFromDataTables(dataTables: ExportDataTable[], title: string, fileName: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Generate file from array-like table data
|
|
14
|
+
*/
|
|
15
|
+
private generateFromDataTables;
|
|
7
16
|
private generateFromTables;
|
|
17
|
+
/**
|
|
18
|
+
* Set basic options for PDF table
|
|
19
|
+
*/
|
|
20
|
+
private setTableOptions;
|
|
8
21
|
private setDocumentTitle;
|
|
9
22
|
private setDocumentLogo;
|
|
10
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdfService, never>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Transaction } from '../../../models/transaction/transaction';
|
|
2
|
+
import { ExportDataTable } from '../../../models/export/export-data-table';
|
|
3
|
+
import { PdfService } from '../../pdf/pdf.service';
|
|
4
|
+
import { TransactionCollection } from '../../../collections/transaction.collection';
|
|
5
|
+
import { CurrencyPipe, DatePipe } from '@angular/common';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Service to work with holding costs (transactions related to vacant land property)
|
|
9
|
+
*/
|
|
10
|
+
export declare class PropertyHoldingCostsService {
|
|
11
|
+
private pdfService;
|
|
12
|
+
private currencyPipe;
|
|
13
|
+
private datePipe;
|
|
14
|
+
url: string;
|
|
15
|
+
modelClass: typeof Transaction;
|
|
16
|
+
constructor(pdfService: PdfService, currencyPipe: CurrencyPipe, datePipe: DatePipe);
|
|
17
|
+
initDataTable(holdingCosts: TransactionCollection): ExportDataTable;
|
|
18
|
+
/**
|
|
19
|
+
* Get data for the exporting table rows
|
|
20
|
+
*/
|
|
21
|
+
private getDataTableRows;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyHoldingCostsService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyHoldingCostsService>;
|
|
24
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export * from './lib/db/Enums/loan-type.enum';
|
|
|
80
80
|
export * from './lib/db/Enums/loan-vehicle-type.enum';
|
|
81
81
|
export * from './lib/db/Enums/phone-type.enum';
|
|
82
82
|
export * from './lib/db/Enums/property/property-depreciation-calculation.enum';
|
|
83
|
+
export * from './lib/db/Enums/property/property-category-list.enum';
|
|
83
84
|
export * from './lib/db/Enums/property/property-share-access.enum';
|
|
84
85
|
export * from './lib/db/Enums/property/property-share-status.enum';
|
|
85
86
|
export * from './lib/db/Enums/registration-invite-status.enum';
|
|
@@ -177,6 +178,7 @@ export * from './lib/models/endpoint/endpoint';
|
|
|
177
178
|
export * from './lib/models/endpoint/endpoints.const';
|
|
178
179
|
export * from './lib/models/event/app-event';
|
|
179
180
|
export * from './lib/models/event/app-event-type.enum';
|
|
181
|
+
export * from './lib/models/export/export-data-table';
|
|
180
182
|
export * from './lib/models/export/export-format.enum';
|
|
181
183
|
export * from './lib/models/file/icons-file.enum';
|
|
182
184
|
export * from './lib/models/financial-year/financial-year';
|
|
@@ -309,6 +311,7 @@ export * from './lib/services/report/property/property-transaction-report.servic
|
|
|
309
311
|
export * from './lib/services/property/corelogic/corelogic.service';
|
|
310
312
|
export * from './lib/services/http/property/property.service';
|
|
311
313
|
export * from './lib/services/property/property-calculation/property-calculation.service';
|
|
314
|
+
export * from './lib/services/property/property-holding-costs/property-holding-costs.service';
|
|
312
315
|
export * from './lib/services/http/property/property-category/property-category.service';
|
|
313
316
|
export * from './lib/services/http/property/property-document/property-document.service';
|
|
314
317
|
export * from './lib/services/http/property/property-share/property-share.service';
|