taxtank-core 0.10.3 → 0.10.4
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 +1133 -937
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/collection-dictionary.js +6 -6
- package/esm2015/lib/collections/report/property/property-report-item-depreciation.collection.js +19 -0
- package/esm2015/lib/collections/report/property/property-report-item-transaction.collection.js +19 -0
- package/esm2015/lib/models/depreciation/depreciation.js +3 -3
- package/esm2015/lib/models/report/property/property-report-item-depreciation.js +13 -0
- package/esm2015/lib/models/report/property/property-report-item-transaction.js +12 -0
- package/esm2015/lib/models/report/property/property-report-item.js +18 -0
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +112 -0
- package/esm2015/public-api.js +6 -1
- package/fesm2015/taxtank-core.js +863 -695
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/collection-dictionary.d.ts +1 -1
- package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts +12 -0
- package/lib/collections/report/property/property-report-item-transaction.collection.d.ts +12 -0
- package/lib/models/depreciation/depreciation.d.ts +1 -1
- package/lib/models/report/property/property-report-item-depreciation.d.ts +10 -0
- package/lib/models/report/property/property-report-item-transaction.d.ts +10 -0
- package/lib/models/report/property/property-report-item.d.ts +18 -0
- package/lib/services/report/property/property-transaction-report.service.d.ts +49 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -18,7 +18,7 @@ export declare class CollectionDictionary<Collection extends BaseCollection<obje
|
|
|
18
18
|
* @param path Path to the property to be grouped (Examples: 'transaction', 'property.category')
|
|
19
19
|
* @param prop Optional: Field to group by (Default 'id', Examples: 'id', 'amount', 'date')
|
|
20
20
|
*/
|
|
21
|
-
constructor(collection: Collection, path?: string
|
|
21
|
+
constructor(collection: Collection, path?: string);
|
|
22
22
|
/**
|
|
23
23
|
* List of collections keys
|
|
24
24
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Collection } from '../../collection';
|
|
2
|
+
import { PropertyReportItem } from '../../../models/report/property/property-report-item';
|
|
3
|
+
import { Property } from '../../../models/property/property';
|
|
4
|
+
import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
|
|
5
|
+
import { DepreciationCollection } from '../../depreciation.collection';
|
|
6
|
+
/**
|
|
7
|
+
* Collection to work with depreciation-based property report items
|
|
8
|
+
*/
|
|
9
|
+
export declare class PropertyReportItemDepreciationCollection extends Collection<PropertyReportItem> {
|
|
10
|
+
constructor(depreciations: DepreciationCollection, property: Property, chartAccounts: Collection<ChartAccounts>);
|
|
11
|
+
private setItems;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Collection } from '../../collection';
|
|
2
|
+
import { PropertyReportItem } from '../../../models/report/property/property-report-item';
|
|
3
|
+
import { TransactionCollection } from '../../transaction.collection';
|
|
4
|
+
import { Property } from '../../../models/property/property';
|
|
5
|
+
import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
|
|
6
|
+
/**
|
|
7
|
+
* Collection to work with transaction-based property report items
|
|
8
|
+
*/
|
|
9
|
+
export declare class PropertyReportItemTransactionCollection extends Collection<PropertyReportItem> {
|
|
10
|
+
constructor(transactions: TransactionCollection, property: Property, chartAccounts: Collection<ChartAccounts>);
|
|
11
|
+
private setItems;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropertyReportItem } from './property-report-item';
|
|
2
|
+
import { Property } from '../../property/property';
|
|
3
|
+
import { ChartAccounts } from '../../chart-accounts/chart-accounts';
|
|
4
|
+
import { DepreciationCollection } from '../../../collections/depreciation.collection';
|
|
5
|
+
/**
|
|
6
|
+
* Class with depreciation-based property transactions report entities
|
|
7
|
+
*/
|
|
8
|
+
export declare class PropertyReportItemDepreciation extends PropertyReportItem {
|
|
9
|
+
constructor(depreciations: DepreciationCollection, property: Property, chartAccounts: ChartAccounts);
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropertyReportItem } from './property-report-item';
|
|
2
|
+
import { TransactionCollection } from '../../../collections/transaction.collection';
|
|
3
|
+
import { Property } from '../../property/property';
|
|
4
|
+
import { ChartAccounts } from '../../chart-accounts/chart-accounts';
|
|
5
|
+
/**
|
|
6
|
+
* Class with transaction-based property transactions report entities
|
|
7
|
+
*/
|
|
8
|
+
export declare class PropertyReportItemTransaction extends PropertyReportItem {
|
|
9
|
+
constructor(transactions: TransactionCollection, property: Property, chartAccounts: ChartAccounts);
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Property } from '../../property/property';
|
|
2
|
+
import { ChartAccounts } from '../../chart-accounts/chart-accounts';
|
|
3
|
+
/**
|
|
4
|
+
* Class with property transactions report entities
|
|
5
|
+
*/
|
|
6
|
+
export declare class PropertyReportItem {
|
|
7
|
+
amount: number;
|
|
8
|
+
description: string;
|
|
9
|
+
/**
|
|
10
|
+
* Tax return item sub-code
|
|
11
|
+
*/
|
|
12
|
+
subCode: string;
|
|
13
|
+
sharePercent: number;
|
|
14
|
+
claimPercent: number;
|
|
15
|
+
constructor(property: Property, chartAccounts: ChartAccounts);
|
|
16
|
+
get claimAmount(): number;
|
|
17
|
+
get shareClaimAmount(): number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PropertyService } from '../../http/property/property.service';
|
|
2
|
+
import { TransactionService } from '../../http/transaction/transaction.service';
|
|
3
|
+
import { DepreciationService } from '../../http/depreciation/depreciation.service';
|
|
4
|
+
import { ChartAccountsService } from '../../http/chart-accounts/chart-accounts.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { Property } from '../../../models/property/property';
|
|
7
|
+
import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
|
|
8
|
+
import { DepreciationCollection } from '../../../collections/depreciation.collection';
|
|
9
|
+
import { Collection } from '../../../collections/collection';
|
|
10
|
+
import { PropertyReportItem } from '../../../models/report/property/property-report-item';
|
|
11
|
+
import { CollectionDictionary } from '../../../collections/collection-dictionary';
|
|
12
|
+
import { TransactionCollection } from '../../../collections/transaction.collection';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
/**
|
|
15
|
+
* Service to handle Property transactions report items data (get income / expense report items, e.t.c.)
|
|
16
|
+
*/
|
|
17
|
+
export declare class PropertyTransactionReportService {
|
|
18
|
+
private propertyService;
|
|
19
|
+
private transactionService;
|
|
20
|
+
private depreciationService;
|
|
21
|
+
private chartAccountsService;
|
|
22
|
+
properties: Property[];
|
|
23
|
+
transactions: TransactionCollection;
|
|
24
|
+
depreciations: DepreciationCollection;
|
|
25
|
+
chartAccounts: Collection<ChartAccounts>;
|
|
26
|
+
constructor(propertyService: PropertyService, transactionService: TransactionService, depreciationService: DepreciationService, chartAccountsService: ChartAccountsService);
|
|
27
|
+
/**
|
|
28
|
+
* Get collections dictionary of income report items, grouped by property id
|
|
29
|
+
*/
|
|
30
|
+
getIncomes(): Observable<CollectionDictionary<Collection<PropertyReportItem>>>;
|
|
31
|
+
/**
|
|
32
|
+
* Get collections dictionary of expense report items, grouped by property id
|
|
33
|
+
*/
|
|
34
|
+
getExpenses(): Observable<CollectionDictionary<Collection<PropertyReportItem>>>;
|
|
35
|
+
private initIncomeItemsData;
|
|
36
|
+
private initExpenseItemsData;
|
|
37
|
+
/**
|
|
38
|
+
* Get colection of property transactions
|
|
39
|
+
*/
|
|
40
|
+
private getTransactions;
|
|
41
|
+
/**
|
|
42
|
+
* Get list of asset & capital property depreciations
|
|
43
|
+
*/
|
|
44
|
+
private getDepreciations;
|
|
45
|
+
private getProperties;
|
|
46
|
+
private getChartAccounts;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyTransactionReportService, never>;
|
|
48
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyTransactionReportService>;
|
|
49
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export * from './lib/collections/message-document.collection';
|
|
|
23
23
|
export * from './lib/collections/property/property.collection';
|
|
24
24
|
export * from './lib/collections/report/depreciation/depreciation-lvp-report-item.collection';
|
|
25
25
|
export * from './lib/collections/report/depreciation/depreciation-report-item.collection';
|
|
26
|
+
export * from './lib/collections/report/property/property-report-item-transaction.collection';
|
|
27
|
+
export * from './lib/collections/report/property/property-report-item-depreciation.collection';
|
|
26
28
|
export * from './lib/collections/service-price.collection';
|
|
27
29
|
export * from './lib/collections/service-subscription.collection';
|
|
28
30
|
export * from './lib/collections/tax-summary/report-item.collection';
|
|
@@ -223,6 +225,8 @@ export * from './lib/models/registration-invite/registration-invite';
|
|
|
223
225
|
export * from './lib/models/report/depreciation/depreciation-lvp-report-item';
|
|
224
226
|
export * from './lib/models/report/depreciation/depreciation-report-item';
|
|
225
227
|
export * from './lib/models/report/depreciation/depreciation-lvp-asset-type.enum';
|
|
228
|
+
export * from './lib/models/report/property/property-report-item';
|
|
229
|
+
export * from './lib/models/report/property/property-report-item-transaction';
|
|
226
230
|
export * from './lib/models/service-subscription/module-url-list.const';
|
|
227
231
|
export * from './lib/models/service-subscription/service-payment';
|
|
228
232
|
export * from './lib/models/service-subscription/service-price';
|
|
@@ -300,6 +304,7 @@ export * from './lib/services/http/loan/loan.service';
|
|
|
300
304
|
export * from './lib/services/http/service-notification/service-notification.service';
|
|
301
305
|
export * from './lib/services/pdf/pdf.service';
|
|
302
306
|
export * from './lib/services/preloader/preloader.service';
|
|
307
|
+
export * from './lib/services/report/property/property-transaction-report.service';
|
|
303
308
|
export * from './lib/services/property/corelogic/corelogic.service';
|
|
304
309
|
export * from './lib/services/http/property/property.service';
|
|
305
310
|
export * from './lib/services/property/property-calculation/property-calculation.service';
|