taxtank-core 0.10.5 → 0.10.6
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 +1185 -979
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/collection-dictionary.js +6 -6
- package/esm2015/lib/collections/collection.js +8 -1
- package/esm2015/lib/collections/report/property/property-report-item-depreciation.collection.js +22 -0
- package/esm2015/lib/collections/report/property/property-report-item-transaction.collection.js +22 -0
- package/esm2015/lib/collections/report/property/property-report-item.collection.js +13 -0
- package/esm2015/lib/models/depreciation/depreciation.js +3 -3
- package/esm2015/lib/models/report/property/property-report-item-depreciation.js +19 -0
- package/esm2015/lib/models/report/property/property-report-item-transaction.js +12 -0
- package/esm2015/lib/models/report/property/property-report-item.js +27 -0
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +76 -0
- package/esm2015/public-api.js +7 -1
- package/fesm2015/taxtank-core.js +1000 -830
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/collection-dictionary.d.ts +1 -1
- package/lib/collections/collection.d.ts +4 -0
- 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/collections/report/property/property-report-item.collection.d.ts +9 -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 +22 -0
- package/lib/services/report/property/property-transaction-report.service.d.ts +42 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -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
|
*/
|
|
@@ -36,6 +36,10 @@ export declare class Collection<Model extends object> implements Iterable<Model>
|
|
|
36
36
|
* Filter items by specific provided callback
|
|
37
37
|
*/
|
|
38
38
|
filter(callback: (item: Model) => boolean): Collection<Model>;
|
|
39
|
+
/**
|
|
40
|
+
* Sort collection items by provided field
|
|
41
|
+
*/
|
|
42
|
+
sortBy(filed?: string, isDesc?: boolean): void;
|
|
39
43
|
get first(): Model;
|
|
40
44
|
get last(): Model;
|
|
41
45
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Collection } from '../../collection';
|
|
2
|
+
import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
|
|
3
|
+
import { DepreciationCollection } from '../../depreciation.collection';
|
|
4
|
+
import { PropertyReportItemCollection } from './property-report-item.collection';
|
|
5
|
+
import { PropertyCollection } from '../../property/property.collection';
|
|
6
|
+
/**
|
|
7
|
+
* Collection to work with depreciation-based property report items
|
|
8
|
+
*/
|
|
9
|
+
export declare class PropertyReportItemDepreciationCollection extends PropertyReportItemCollection {
|
|
10
|
+
constructor(depreciations: DepreciationCollection, properties: PropertyCollection, chartAccounts: Collection<ChartAccounts>);
|
|
11
|
+
private setItems;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Collection } from '../../collection';
|
|
2
|
+
import { TransactionCollection } from '../../transaction.collection';
|
|
3
|
+
import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
|
|
4
|
+
import { PropertyReportItemCollection } from './property-report-item.collection';
|
|
5
|
+
import { PropertyCollection } from '../../property/property.collection';
|
|
6
|
+
/**
|
|
7
|
+
* Collection to work with transaction-based property report items
|
|
8
|
+
*/
|
|
9
|
+
export declare class PropertyReportItemTransactionCollection extends PropertyReportItemCollection {
|
|
10
|
+
constructor(transactions: TransactionCollection, properties: PropertyCollection, chartAccounts: Collection<ChartAccounts>);
|
|
11
|
+
private setItems;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Collection } from '../../collection';
|
|
2
|
+
import { PropertyReportItem } from '../../../models/report/property/property-report-item';
|
|
3
|
+
/**
|
|
4
|
+
* Base collection to work with property report items
|
|
5
|
+
*/
|
|
6
|
+
export declare class PropertyReportItemCollection extends Collection<PropertyReportItem> {
|
|
7
|
+
getIncomes(): this;
|
|
8
|
+
getExpenses(): this;
|
|
9
|
+
}
|
|
@@ -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,22 @@
|
|
|
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
|
+
propertyId: number;
|
|
16
|
+
chartAccounts: ChartAccounts;
|
|
17
|
+
constructor(property: Property, chartAccounts: ChartAccounts);
|
|
18
|
+
get claimAmount(): number;
|
|
19
|
+
get shareClaimAmount(): number;
|
|
20
|
+
isIncome(): boolean;
|
|
21
|
+
isExpense(): boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { CollectionDictionary } from '../../../collections/collection-dictionary';
|
|
11
|
+
import { TransactionCollection } from '../../../collections/transaction.collection';
|
|
12
|
+
import { PropertyReportItemCollection } from '../../../collections/report/property/property-report-item.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 collection of report items based on transactions & depreciations
|
|
29
|
+
*/
|
|
30
|
+
get(): Observable<CollectionDictionary<PropertyReportItemCollection>>;
|
|
31
|
+
private create;
|
|
32
|
+
/**
|
|
33
|
+
* Get collection of property transactions
|
|
34
|
+
*/
|
|
35
|
+
private getTransactions;
|
|
36
|
+
/**
|
|
37
|
+
* Get list of asset & capital property depreciations
|
|
38
|
+
*/
|
|
39
|
+
private getDepreciations;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyTransactionReportService, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyTransactionReportService>;
|
|
42
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ 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.collection';
|
|
27
|
+
export * from './lib/collections/report/property/property-report-item-transaction.collection';
|
|
28
|
+
export * from './lib/collections/report/property/property-report-item-depreciation.collection';
|
|
26
29
|
export * from './lib/collections/service-price.collection';
|
|
27
30
|
export * from './lib/collections/service-subscription.collection';
|
|
28
31
|
export * from './lib/collections/tax-summary/report-item.collection';
|
|
@@ -223,6 +226,8 @@ export * from './lib/models/registration-invite/registration-invite';
|
|
|
223
226
|
export * from './lib/models/report/depreciation/depreciation-lvp-report-item';
|
|
224
227
|
export * from './lib/models/report/depreciation/depreciation-report-item';
|
|
225
228
|
export * from './lib/models/report/depreciation/depreciation-lvp-asset-type.enum';
|
|
229
|
+
export * from './lib/models/report/property/property-report-item';
|
|
230
|
+
export * from './lib/models/report/property/property-report-item-transaction';
|
|
226
231
|
export * from './lib/models/service-subscription/module-url-list.const';
|
|
227
232
|
export * from './lib/models/service-subscription/service-payment';
|
|
228
233
|
export * from './lib/models/service-subscription/service-price';
|
|
@@ -300,6 +305,7 @@ export * from './lib/services/http/loan/loan.service';
|
|
|
300
305
|
export * from './lib/services/http/service-notification/service-notification.service';
|
|
301
306
|
export * from './lib/services/pdf/pdf.service';
|
|
302
307
|
export * from './lib/services/preloader/preloader.service';
|
|
308
|
+
export * from './lib/services/report/property/property-transaction-report.service';
|
|
303
309
|
export * from './lib/services/property/corelogic/corelogic.service';
|
|
304
310
|
export * from './lib/services/http/property/property.service';
|
|
305
311
|
export * from './lib/services/property/property-calculation/property-calculation.service';
|