taxtank-core 0.28.17 → 0.28.18
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 +63 -35
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/db/Enums/chart-accounts-list.enum.js +2 -2
- package/esm2015/lib/db/Models/property/property-forecast.js +1 -1
- package/esm2015/lib/db/Models/property/property.js +1 -1
- package/esm2015/lib/models/chart-accounts/chart-accounts.js +7 -1
- package/esm2015/lib/models/event/app-event-type.enum.js +36 -35
- package/esm2015/lib/models/property/property.js +4 -1
- package/esm2015/lib/services/http/property/property.service.js +4 -1
- package/esm2015/lib/services/http/transaction/transaction.service.js +11 -1
- package/fesm2015/taxtank-core.js +58 -35
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/db/Enums/chart-accounts-list.enum.d.ts +2 -2
- package/lib/db/Models/property/property-forecast.d.ts +1 -0
- package/lib/db/Models/property/property.d.ts +0 -1
- package/lib/models/chart-accounts/chart-accounts.d.ts +4 -0
- package/lib/models/event/app-event-type.enum.d.ts +35 -34
- package/lib/models/property/property.d.ts +1 -0
- package/lib/services/http/transaction/transaction.service.d.ts +7 -1
- package/package.json +1 -1
|
@@ -17,7 +17,6 @@ export declare enum ChartAccountsListEnum {
|
|
|
17
17
|
DIVIDENDS = 542,
|
|
18
18
|
TRANSFER = 615,
|
|
19
19
|
BUILDING_AT_COST = 304,
|
|
20
|
-
MANAGEMENT_FEES_PLATFORM_FEES = 656,
|
|
21
20
|
KLMS_TRAVELLED_FOR_WORK = 24,
|
|
22
21
|
KLMS_TRAVELLED = 683,
|
|
23
22
|
DIRECTOR_FEES = 6,
|
|
@@ -54,5 +53,6 @@ export declare enum ChartAccountsListEnum {
|
|
|
54
53
|
CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY = 558,
|
|
55
54
|
CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH = 640,
|
|
56
55
|
PERSONAL_EXPENSES = 628,
|
|
57
|
-
PERSONAL_INCOME = 630
|
|
56
|
+
PERSONAL_INCOME = 630,
|
|
57
|
+
PLATFORM_FEES = 857
|
|
58
58
|
}
|
|
@@ -19,7 +19,6 @@ export declare class Property extends AbstractModel {
|
|
|
19
19
|
settlementDate?: Date;
|
|
20
20
|
depreciationCalculation?: PropertyDepreciationCalculationEnum;
|
|
21
21
|
shareWith?: string;
|
|
22
|
-
claimPercent?: number;
|
|
23
22
|
growthPercent?: number;
|
|
24
23
|
subscriptions?: PropertySubscription[];
|
|
25
24
|
deletedAt?: Date;
|
|
@@ -63,6 +63,10 @@ export declare class ChartAccounts extends ChartAccountsBase {
|
|
|
63
63
|
* Check if chart accounts is property expense
|
|
64
64
|
*/
|
|
65
65
|
isPropertyExpense(): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Check if chart accounts is property income
|
|
68
|
+
*/
|
|
69
|
+
isPropertyIncome(): boolean;
|
|
66
70
|
isPersonal(): boolean;
|
|
67
71
|
isPersonalExpense(): boolean;
|
|
68
72
|
isPropertyDepreciation(): boolean;
|
|
@@ -28,38 +28,39 @@ export declare enum AppEventTypeEnum {
|
|
|
28
28
|
MESSAGE_FILE_DELETED = 26,
|
|
29
29
|
NOTIFICATION_ADDED = 27,
|
|
30
30
|
PROPERTY_DEPRECIATION_CALCULATION_UPDATED = 28,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
31
|
+
PROPERTY_UPDATED = 29,
|
|
32
|
+
PROPERTY_UPDATED_WITH_DOCUMENT = 30,
|
|
33
|
+
PROPERTY_DOCUMENT_ADDED = 31,
|
|
34
|
+
PROPERTY_MOVEMENT_CREATED = 32,
|
|
35
|
+
PROPERTY_MOVEMENT_UPDATED = 33,
|
|
36
|
+
PROPERTY_MOVEMENT_DELETED = 34,
|
|
37
|
+
PROPERTY_SHARE_UPDATED = 35,
|
|
38
|
+
PROPERTY_SALE_ADDED = 36,
|
|
39
|
+
PROPERTY_SALE_DELETED = 37,
|
|
40
|
+
PROPERTY_SUBSCRIPTION_ADDED = 38,
|
|
41
|
+
PROPERTY_SUBSCRIPTION_DELETED = 39,
|
|
42
|
+
PROPERTY_VALUATION_DOCUMENT_CREATED = 40,
|
|
43
|
+
SERVICE_SUBSCRIPTION_UPDATED = 41,
|
|
44
|
+
SOLE_BUSINESS_CREATED = 42,
|
|
45
|
+
SOLE_DEPRECIATION_METHOD_UPDATED = 43,
|
|
46
|
+
SOLE_DETAILS_CREATED = 44,
|
|
47
|
+
SOLE_DETAILS_UPDATED = 45,
|
|
48
|
+
TAX_REVIEW_UPDATED = 46,
|
|
49
|
+
TRANSACTION_CREATED = 47,
|
|
50
|
+
TRANSACTION_DELETED = 48,
|
|
51
|
+
TRANSACTION_UPDATED = 49,
|
|
52
|
+
TRANSACTION_UPDATED_WITH_RECEIPT = 50,
|
|
53
|
+
TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 51,
|
|
54
|
+
TRANSACTION_RECEIPT_CREATED = 52,
|
|
55
|
+
TRANSACTION_RECEIPT_DELETED = 53,
|
|
56
|
+
TRANSACTIONS_CREATED = 54,
|
|
57
|
+
USER_UPDATED = 55,
|
|
58
|
+
VEHICLE_CLAIM_UPDATED = 56,
|
|
59
|
+
VEHICLE_CLAIM_CREATED = 57,
|
|
60
|
+
VEHICLE_CLAIM_DETAILS_UPDATED = 58,
|
|
61
|
+
VEHICLE_CLAIM_DETAILS_CREATED = 59,
|
|
62
|
+
VEHICLE_LOGBOOK_CREATED = 60,
|
|
63
|
+
VEHICLE_LOGBOOK_UPDATED = 61,
|
|
64
|
+
VEHICLE_LOGBOOK_DELETED = 62,
|
|
65
|
+
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 63
|
|
65
66
|
}
|
|
@@ -60,6 +60,7 @@ export declare class Property extends PropertyBase implements Photoable, Documen
|
|
|
60
60
|
*/
|
|
61
61
|
get shareClaimPercent(): number;
|
|
62
62
|
get actualValuation(): PropertyValuation;
|
|
63
|
+
get claimPercent(): number;
|
|
63
64
|
get sharePercent(): number;
|
|
64
65
|
get shareRatio(): number;
|
|
65
66
|
get previousCategory(): PropertyCategory;
|
|
@@ -9,11 +9,12 @@ import { TransactionReceiptService } from './transaction-receipt/transaction-rec
|
|
|
9
9
|
import { HttpClient } from '@angular/common/http';
|
|
10
10
|
import { EventDispatcherService } from '../../event/event-dispatcher.service';
|
|
11
11
|
import { ToastService } from '../../toast/toast.service';
|
|
12
|
+
import { IEventListener } from '../../../interfaces/event-listener.interface';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* Service for transactions business logic
|
|
15
16
|
*/
|
|
16
|
-
export declare class TransactionService extends RestService<TransactionBase, Transaction> {
|
|
17
|
+
export declare class TransactionService extends RestService<TransactionBase, Transaction> implements IEventListener {
|
|
17
18
|
protected http: HttpClient;
|
|
18
19
|
protected eventDispatcherService: EventDispatcherService;
|
|
19
20
|
protected environment: any;
|
|
@@ -93,6 +94,11 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
|
|
|
93
94
|
private listenReceiptAdded;
|
|
94
95
|
private listenReceiptDeleted;
|
|
95
96
|
private listenVehicleClaimChanges;
|
|
97
|
+
/**
|
|
98
|
+
* property forecast includes claimPercent which affects property related expenses
|
|
99
|
+
* @TODO Alex move to forecast api instead of property
|
|
100
|
+
*/
|
|
101
|
+
private listenPropertyForecastUpdate;
|
|
96
102
|
private replaceInCache;
|
|
97
103
|
static ɵfac: i0.ɵɵFactoryDeclaration<TransactionService, never>;
|
|
98
104
|
static ɵprov: i0.ɵɵInjectableDeclaration<TransactionService>;
|