taxtank-core 0.27.2 → 0.27.3
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 +253 -69
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/depreciation.collection.js +10 -9
- package/esm2015/lib/db/Enums/depreciation-calculation.enum.js +2 -2
- package/esm2015/lib/db/Enums/sole-depreciation-method.enum.js +6 -0
- package/esm2015/lib/db/Models/sole/sole-business-activity.js +4 -0
- package/esm2015/lib/db/Models/sole/sole-business.js +1 -1
- package/esm2015/lib/db/Models/sole/sole-depreciation-method.js +4 -0
- package/esm2015/lib/db/Models/sole/sole-details.js +1 -1
- package/esm2015/lib/forms/sole/index.js +2 -1
- package/esm2015/lib/forms/sole/sole-business.form.js +3 -3
- package/esm2015/lib/forms/sole/sole-depreciation-method.form.js +10 -0
- package/esm2015/lib/models/depreciation/depreciation-group.enum.js +2 -1
- package/esm2015/lib/models/depreciation/depreciation-groups.const.js +7 -2
- package/esm2015/lib/models/depreciation/depreciation.js +32 -25
- package/esm2015/lib/models/endpoint/endpoints.const.js +6 -4
- package/esm2015/lib/models/event/app-event-type.enum.js +33 -31
- package/esm2015/lib/models/report/depreciation/depreciation-report-item.js +2 -2
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +2 -2
- package/esm2015/lib/models/sole/index.js +3 -1
- package/esm2015/lib/models/sole/sole-business-activity.js +4 -0
- package/esm2015/lib/models/sole/sole-business.js +5 -1
- package/esm2015/lib/models/sole/sole-depreciation-method.js +8 -0
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +19 -1
- package/esm2015/lib/services/http/property/property.service.js +8 -1
- package/esm2015/lib/services/http/sole/index.js +3 -1
- package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +21 -0
- package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +62 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/taxtank-core.js +213 -71
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/depreciation.collection.d.ts +2 -1
- package/lib/db/Enums/depreciation-calculation.enum.d.ts +2 -2
- package/lib/db/Enums/sole-depreciation-method.enum.d.ts +4 -0
- package/lib/db/Models/sole/sole-business-activity.d.ts +6 -0
- package/lib/db/Models/sole/sole-business.d.ts +2 -1
- package/lib/db/Models/sole/sole-depreciation-method.d.ts +10 -0
- package/lib/forms/sole/index.d.ts +1 -0
- package/lib/forms/sole/sole-business.form.d.ts +1 -1
- package/lib/forms/sole/sole-depreciation-method.form.d.ts +5 -0
- package/lib/models/depreciation/depreciation-group.enum.d.ts +2 -1
- package/lib/models/depreciation/depreciation.d.ts +9 -16
- package/lib/models/event/app-event-type.enum.d.ts +32 -30
- package/lib/models/sole/index.d.ts +2 -0
- package/lib/models/sole/sole-business-activity.d.ts +3 -0
- package/lib/models/sole/sole-business.d.ts +2 -0
- package/lib/models/sole/sole-depreciation-method.d.ts +4 -0
- package/lib/services/http/depreciation/depreciation.service.d.ts +8 -0
- package/lib/services/http/property/property.service.d.ts +1 -0
- package/lib/services/http/sole/index.d.ts +2 -0
- package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts +11 -0
- package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts +23 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/fesm2015/taxtank-core.js
CHANGED
|
@@ -225,36 +225,38 @@ var AppEventTypeEnum;
|
|
|
225
225
|
AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 25] = "MESSAGE_FILE_CREATED";
|
|
226
226
|
AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 26] = "MESSAGE_FILE_DELETED";
|
|
227
227
|
AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 27] = "NOTIFICATION_ADDED";
|
|
228
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
229
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
230
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
231
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
232
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
233
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
234
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
235
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
236
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
237
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
238
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
239
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
240
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
241
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
242
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
243
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
244
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
245
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
246
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
247
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
248
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
249
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
250
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
251
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
252
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
253
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
254
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
255
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
256
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
257
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
228
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DEPRECIATION_CALCULATION_UPDATED"] = 28] = "PROPERTY_DEPRECIATION_CALCULATION_UPDATED";
|
|
229
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 29] = "PROPERTY_UPDATED_WITH_DOCUMENT";
|
|
230
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 30] = "PROPERTY_DOCUMENT_ADDED";
|
|
231
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 31] = "PROPERTY_MOVEMENT_CREATED";
|
|
232
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 32] = "PROPERTY_MOVEMENT_UPDATED";
|
|
233
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 33] = "PROPERTY_MOVEMENT_DELETED";
|
|
234
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 34] = "PROPERTY_SHARE_UPDATED";
|
|
235
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 35] = "PROPERTY_SALE_ADDED";
|
|
236
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 36] = "PROPERTY_SALE_DELETED";
|
|
237
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 37] = "PROPERTY_SUBSCRIPTION_ADDED";
|
|
238
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 38] = "PROPERTY_SUBSCRIPTION_DELETED";
|
|
239
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 39] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
|
|
240
|
+
AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 40] = "SERVICE_SUBSCRIPTION_UPDATED";
|
|
241
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 41] = "SOLE_DEPRECIATION_METHOD_UPDATED";
|
|
242
|
+
AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 42] = "TAX_REVIEW_UPDATED";
|
|
243
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 43] = "TRANSACTION_CREATED";
|
|
244
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 44] = "TRANSACTION_DELETED";
|
|
245
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 45] = "TRANSACTION_UPDATED";
|
|
246
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_RECEIPT"] = 46] = "TRANSACTION_UPDATED_WITH_RECEIPT";
|
|
247
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_DELETED_RECEIPT"] = 47] = "TRANSACTION_UPDATED_WITH_DELETED_RECEIPT";
|
|
248
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 48] = "TRANSACTION_RECEIPT_CREATED";
|
|
249
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 49] = "TRANSACTION_RECEIPT_DELETED";
|
|
250
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 50] = "TRANSACTIONS_CREATED";
|
|
251
|
+
AppEventTypeEnum[AppEventTypeEnum["USER_UPDATED"] = 51] = "USER_UPDATED";
|
|
252
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 52] = "VEHICLE_CLAIM_UPDATED";
|
|
253
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 53] = "VEHICLE_CLAIM_CREATED";
|
|
254
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 54] = "VEHICLE_CLAIM_DETAILS_UPDATED";
|
|
255
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 55] = "VEHICLE_CLAIM_DETAILS_CREATED";
|
|
256
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 56] = "VEHICLE_LOGBOOK_CREATED";
|
|
257
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 57] = "VEHICLE_LOGBOOK_UPDATED";
|
|
258
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 58] = "VEHICLE_LOGBOOK_DELETED";
|
|
259
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 59] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
|
258
260
|
})(AppEventTypeEnum || (AppEventTypeEnum = {}));
|
|
259
261
|
|
|
260
262
|
class EventDispatcherService {
|
|
@@ -680,11 +682,13 @@ const ENDPOINTS = {
|
|
|
680
682
|
SUBSCRIPTION_ITEMS_PUT: new Endpoint('PUT', '\\/subscriptions\\/items'),
|
|
681
683
|
SOLE_BUSINESSES_GET: new Endpoint('GET', '\\/sole-businesses'),
|
|
682
684
|
SOLE_BUSINESSES_POST: new Endpoint('POST', '\\/sole-businesses'),
|
|
683
|
-
SOLE_BUSINESSES_PUT: new Endpoint('PUT', '\\/sole-businesses
|
|
685
|
+
SOLE_BUSINESSES_PUT: new Endpoint('PUT', '\\/sole-businesses\\/\\d+'),
|
|
686
|
+
SOLE_DEPRECIATION_METHODS_GET: new Endpoint('GET', '\\/sole-depreciation-methods'),
|
|
687
|
+
SOLE_DEPRECIATION_METHODS_PUT: new Endpoint('PUT', '\\/sole-depreciation-methods\\/\\d+'),
|
|
684
688
|
SOLE_INVOICE_TEMPLATES_GET: new Endpoint('GET', '\\/sole-invoice-templates'),
|
|
685
689
|
SOLE_INVOICE_TEMPLATES_POST: new Endpoint('POST', '\\/sole-invoice-templates'),
|
|
686
|
-
SOLE_INVOICE_TEMPLATES_PUT: new Endpoint('PUT', '\\/sole-invoice-templates
|
|
687
|
-
SOLE_INVOICE_TEMPLATES_DELETE: new Endpoint('DELETE', '\\/sole-invoice-templates
|
|
690
|
+
SOLE_INVOICE_TEMPLATES_PUT: new Endpoint('PUT', '\\/sole-invoice-templates\\/\\d+'),
|
|
691
|
+
SOLE_INVOICE_TEMPLATES_DELETE: new Endpoint('DELETE', '\\/sole-invoice-templates\\/\\d+'),
|
|
688
692
|
TAX_CALCULATION_POST: new Endpoint('POST', '\\/tax-calculation'),
|
|
689
693
|
TAX_REVIEWS_GET: new Endpoint('GET', '\\/tax-reviews'),
|
|
690
694
|
TAX_REVIEWS_DELETE: new Endpoint('DELETE', '\\/tax-reviews\\/\\d+'),
|
|
@@ -2669,9 +2673,9 @@ var DepreciationCalculationEnum;
|
|
|
2669
2673
|
(function (DepreciationCalculationEnum) {
|
|
2670
2674
|
DepreciationCalculationEnum[DepreciationCalculationEnum["PRIME_COST"] = 1] = "PRIME_COST";
|
|
2671
2675
|
DepreciationCalculationEnum[DepreciationCalculationEnum["DIMINISHING"] = 2] = "DIMINISHING";
|
|
2672
|
-
DepreciationCalculationEnum[DepreciationCalculationEnum["CAPITAL"] = 3] = "CAPITAL";
|
|
2673
2676
|
DepreciationCalculationEnum[DepreciationCalculationEnum["LVP"] = 4] = "LVP";
|
|
2674
2677
|
DepreciationCalculationEnum[DepreciationCalculationEnum["AMORTISATION"] = 5] = "AMORTISATION";
|
|
2678
|
+
DepreciationCalculationEnum[DepreciationCalculationEnum["SBP"] = 6] = "SBP";
|
|
2675
2679
|
})(DepreciationCalculationEnum || (DepreciationCalculationEnum = {}));
|
|
2676
2680
|
|
|
2677
2681
|
class DepreciationCapitalProject$1 extends AbstractModel {
|
|
@@ -3263,6 +3267,9 @@ __decorate([
|
|
|
3263
3267
|
Type(() => Date)
|
|
3264
3268
|
], BankTransaction.prototype, "date", void 0);
|
|
3265
3269
|
|
|
3270
|
+
/**
|
|
3271
|
+
* @TODO Alex: clarify grouping rules and refactor
|
|
3272
|
+
*/
|
|
3266
3273
|
class Depreciation extends Depreciation$1 {
|
|
3267
3274
|
constructor() {
|
|
3268
3275
|
super(...arguments);
|
|
@@ -3273,6 +3280,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
3273
3280
|
*/
|
|
3274
3281
|
this.amount = 0;
|
|
3275
3282
|
}
|
|
3283
|
+
// Type checking
|
|
3276
3284
|
isCapital() {
|
|
3277
3285
|
return this.type === DepreciationTypeEnum.CAPITAL_WORKS;
|
|
3278
3286
|
}
|
|
@@ -3282,30 +3290,9 @@ class Depreciation extends Depreciation$1 {
|
|
|
3282
3290
|
isAsset() {
|
|
3283
3291
|
return this.type === DepreciationTypeEnum.PLANT_EQUIPMENT;
|
|
3284
3292
|
}
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
* @TODO new FinancialYear(this.writeOffDate) === new FinancialYear()
|
|
3289
|
-
*/
|
|
3290
|
-
isWrittenOff() {
|
|
3291
|
-
return this.isAsset && this.writeOffDate && new FinancialYear(this.writeOffDate).year === this.financialYear;
|
|
3292
|
-
}
|
|
3293
|
-
/**
|
|
3294
|
-
* Check if depreciation is Plant & Equipment
|
|
3295
|
-
*/
|
|
3296
|
-
isPlantEquipment() {
|
|
3297
|
-
return this.isAsset() && !this.isWrittenOff() && !this.isLowValuePool();
|
|
3298
|
-
}
|
|
3299
|
-
/**
|
|
3300
|
-
* check if depreciation should be displayed in low value pool
|
|
3301
|
-
* details in project documentation
|
|
3302
|
-
* @TODO new FinancialYear(this.writeOffDate) === new FinancialYear()
|
|
3303
|
-
*/
|
|
3304
|
-
isLowValuePool() {
|
|
3305
|
-
return this.isAsset &&
|
|
3306
|
-
this.calculation === DepreciationCalculationEnum.DIMINISHING &&
|
|
3307
|
-
this.amount > Depreciation.WRITTEN_OFF_THRESHOLD &&
|
|
3308
|
-
this.amount <= Depreciation.LOW_VALUE_POOL_THRESHOLD;
|
|
3293
|
+
// Calculation checking
|
|
3294
|
+
isSBPCalculation() {
|
|
3295
|
+
return this.calculation === DepreciationCalculationEnum.SBP;
|
|
3309
3296
|
}
|
|
3310
3297
|
isPrimeCost() {
|
|
3311
3298
|
return this.calculation === DepreciationCalculationEnum.PRIME_COST;
|
|
@@ -3313,6 +3300,30 @@ class Depreciation extends Depreciation$1 {
|
|
|
3313
3300
|
isDiminishing() {
|
|
3314
3301
|
return this.calculation === DepreciationCalculationEnum.DIMINISHING;
|
|
3315
3302
|
}
|
|
3303
|
+
// Pool checking
|
|
3304
|
+
isPlantEquipmentPool() {
|
|
3305
|
+
return this.isAsset() && !this.isSBPCalculation() && !this.isWrittenOff() && !this.isLVP();
|
|
3306
|
+
}
|
|
3307
|
+
isLVP() {
|
|
3308
|
+
return this.isAsset()
|
|
3309
|
+
&& !this.isSBPCalculation()
|
|
3310
|
+
&& this.isDiminishing()
|
|
3311
|
+
&& this.currentYearForecast.closeBalance > Depreciation.WRITTEN_OFF_THRESHOLD
|
|
3312
|
+
&& this.currentYearForecast.closeBalance <= Depreciation.LOW_VALUE_POOL_THRESHOLD;
|
|
3313
|
+
}
|
|
3314
|
+
isSBP() {
|
|
3315
|
+
return this.isAsset() && this.isSBPCalculation() && !this.isWrittenOff();
|
|
3316
|
+
}
|
|
3317
|
+
isWrittenOff() {
|
|
3318
|
+
return this.writeOffYear === new FinancialYear().year;
|
|
3319
|
+
}
|
|
3320
|
+
get writeOffYear() {
|
|
3321
|
+
var _a;
|
|
3322
|
+
if (!this.writeOffManualDate && !this.writeOffDate) {
|
|
3323
|
+
return null;
|
|
3324
|
+
}
|
|
3325
|
+
return (_a = new FinancialYear(this.writeOffManualDate || this.writeOffDate)) === null || _a === void 0 ? void 0 : _a.year;
|
|
3326
|
+
}
|
|
3316
3327
|
/**
|
|
3317
3328
|
* Check if depreciation chart accounts heading related to vehicles category
|
|
3318
3329
|
*/
|
|
@@ -3415,6 +3426,9 @@ __decorate([
|
|
|
3415
3426
|
Type(() => BankTransaction)
|
|
3416
3427
|
], Depreciation.prototype, "bankTransaction", void 0);
|
|
3417
3428
|
|
|
3429
|
+
class SoleBusinessActivity$1 extends AbstractModel {
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3418
3432
|
class SoleBusiness extends SoleBusiness$1 {
|
|
3419
3433
|
getPhotoPlaceholder() {
|
|
3420
3434
|
return `${this.name[0]}${this.name[1]}`;
|
|
@@ -3451,6 +3465,27 @@ __decorate([
|
|
|
3451
3465
|
__decorate([
|
|
3452
3466
|
Type(() => Depreciation)
|
|
3453
3467
|
], SoleBusiness.prototype, "depreciations", void 0);
|
|
3468
|
+
__decorate([
|
|
3469
|
+
Type(() => SoleBusinessActivity$1)
|
|
3470
|
+
], SoleBusiness.prototype, "activity", void 0);
|
|
3471
|
+
|
|
3472
|
+
class SoleBusinessActivity extends SoleBusinessActivity$1 {
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
class SoleDepreciationMethod$1 extends AbstractModel {
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
var SoleDepreciationMethodEnum;
|
|
3479
|
+
(function (SoleDepreciationMethodEnum) {
|
|
3480
|
+
SoleDepreciationMethodEnum[SoleDepreciationMethodEnum["SBP"] = 1] = "SBP";
|
|
3481
|
+
SoleDepreciationMethodEnum[SoleDepreciationMethodEnum["DEPRECIATION"] = 2] = "DEPRECIATION";
|
|
3482
|
+
})(SoleDepreciationMethodEnum || (SoleDepreciationMethodEnum = {}));
|
|
3483
|
+
|
|
3484
|
+
class SoleDepreciationMethod extends SoleDepreciationMethod$1 {
|
|
3485
|
+
isSBP() {
|
|
3486
|
+
return this.method === SoleDepreciationMethodEnum.SBP;
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3454
3489
|
|
|
3455
3490
|
class SoleDetails$1 extends AbstractModel {
|
|
3456
3491
|
}
|
|
@@ -5306,19 +5341,22 @@ class DepreciationCollection extends Collection {
|
|
|
5306
5341
|
return this.filter((depreciation) => depreciation.isAsset());
|
|
5307
5342
|
}
|
|
5308
5343
|
getPlantEquipment() {
|
|
5309
|
-
return this.filter((depreciation) => depreciation.
|
|
5344
|
+
return this.filter((depreciation) => depreciation.isPlantEquipmentPool());
|
|
5310
5345
|
}
|
|
5311
5346
|
getCapitalDepreciations() {
|
|
5312
5347
|
return this.filter((depreciation) => depreciation.isCapital());
|
|
5313
5348
|
}
|
|
5314
5349
|
getBorrowingExpenseDepreciations() {
|
|
5315
|
-
return
|
|
5350
|
+
return this.filter((depreciation) => depreciation.isBorrowingExpense());
|
|
5316
5351
|
}
|
|
5317
5352
|
getWrittenOffDepreciations() {
|
|
5318
|
-
return
|
|
5353
|
+
return this.filter((depreciation) => depreciation.isWrittenOff());
|
|
5354
|
+
}
|
|
5355
|
+
getLVPDepreciations() {
|
|
5356
|
+
return this.filter((depreciation) => depreciation.isLVP());
|
|
5319
5357
|
}
|
|
5320
|
-
|
|
5321
|
-
return
|
|
5358
|
+
getSBPDepreciations() {
|
|
5359
|
+
return this.filter((depreciation) => depreciation.isSBP());
|
|
5322
5360
|
}
|
|
5323
5361
|
getCapitalProjects() {
|
|
5324
5362
|
return uniqBy(compact(this.items.map((depreciation) => {
|
|
@@ -5329,9 +5367,7 @@ class DepreciationCollection extends Collection {
|
|
|
5329
5367
|
* Get a new collection of depreciations related to vehicles
|
|
5330
5368
|
*/
|
|
5331
5369
|
getVehicleDepreciations() {
|
|
5332
|
-
return this.
|
|
5333
|
-
return depreciation.isVehicleDepreciation();
|
|
5334
|
-
}));
|
|
5370
|
+
return this.filter((depreciation) => depreciation.isVehicleDepreciation());
|
|
5335
5371
|
}
|
|
5336
5372
|
getByTankType(tankType) {
|
|
5337
5373
|
return this.create(this.items.filter((depreciation) => {
|
|
@@ -5648,7 +5684,7 @@ class DepreciationReportItem extends Depreciation {
|
|
|
5648
5684
|
}
|
|
5649
5685
|
get categoryTitle() {
|
|
5650
5686
|
switch (true) {
|
|
5651
|
-
case this.
|
|
5687
|
+
case this.isPlantEquipmentPool():
|
|
5652
5688
|
return 'Plant & Equipment';
|
|
5653
5689
|
case this.isWrittenOff():
|
|
5654
5690
|
return 'Written Off Items';
|
|
@@ -7219,6 +7255,7 @@ var DepreciationGroupEnum;
|
|
|
7219
7255
|
DepreciationGroupEnum[DepreciationGroupEnum["LOW_VALUE_POOL"] = 2] = "LOW_VALUE_POOL";
|
|
7220
7256
|
DepreciationGroupEnum[DepreciationGroupEnum["WRITTEN_OFF_ITEMS"] = 3] = "WRITTEN_OFF_ITEMS";
|
|
7221
7257
|
DepreciationGroupEnum[DepreciationGroupEnum["BORROWING_EXPENSES"] = 4] = "BORROWING_EXPENSES";
|
|
7258
|
+
DepreciationGroupEnum[DepreciationGroupEnum["SMALL_BUSINESS_POOL"] = 5] = "SMALL_BUSINESS_POOL";
|
|
7222
7259
|
})(DepreciationGroupEnum || (DepreciationGroupEnum = {}));
|
|
7223
7260
|
|
|
7224
7261
|
/**
|
|
@@ -7276,7 +7313,12 @@ const DEPRECIATION_GROUPS = {
|
|
|
7276
7313
|
label: 'Written Off Items',
|
|
7277
7314
|
description: 'Items below $300, replaced or obsolete are fully deductible',
|
|
7278
7315
|
icon: 'cart'
|
|
7279
|
-
}
|
|
7316
|
+
},
|
|
7317
|
+
[DepreciationGroupEnum.SMALL_BUSINESS_POOL]: {
|
|
7318
|
+
label: 'Small business pool',
|
|
7319
|
+
description: 'The small business pool allows business owners to claim depreciation on plant and equipment items at an accelerated rate.',
|
|
7320
|
+
icon: 'portfolio'
|
|
7321
|
+
},
|
|
7280
7322
|
};
|
|
7281
7323
|
|
|
7282
7324
|
class DepreciationReceipt$1 extends AbstractModel {
|
|
@@ -8025,7 +8067,7 @@ class MyTaxDeductions {
|
|
|
8025
8067
|
DeductionSelfEducationTypeEnum.IMPROVE_SKILLS_FOR_CURRENT_EARNINGS_K : null;
|
|
8026
8068
|
this.workRelatedSelfEducationTotalAmount = this.workRelatedSelfEducationExpenses.sumBy('claimAmount');
|
|
8027
8069
|
this.lowValuePoolDeductionTotalAmount = this.depreciations.getByTankType(TankTypeEnum.WORK)
|
|
8028
|
-
.
|
|
8070
|
+
.getLVPDepreciations().sumBy('claimAmount');
|
|
8029
8071
|
this.interestExpensesTotalAmount = this.transactions
|
|
8030
8072
|
.filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.interestExpenses)
|
|
8031
8073
|
.sumBy('claimAmount');
|
|
@@ -8767,6 +8809,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
8767
8809
|
}]
|
|
8768
8810
|
}] });
|
|
8769
8811
|
|
|
8812
|
+
class SoleBusinessActivityService extends RestService {
|
|
8813
|
+
constructor() {
|
|
8814
|
+
super(...arguments);
|
|
8815
|
+
this.modelClass = SoleBusinessActivity;
|
|
8816
|
+
this.url = 'sole-business-activities';
|
|
8817
|
+
this.isHydra = true;
|
|
8818
|
+
}
|
|
8819
|
+
}
|
|
8820
|
+
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
8821
|
+
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
|
|
8822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
|
|
8823
|
+
type: Injectable,
|
|
8824
|
+
args: [{
|
|
8825
|
+
providedIn: 'root'
|
|
8826
|
+
}]
|
|
8827
|
+
}] });
|
|
8828
|
+
|
|
8770
8829
|
class SoleContactService extends RestService {
|
|
8771
8830
|
constructor() {
|
|
8772
8831
|
super(...arguments);
|
|
@@ -8784,6 +8843,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
8784
8843
|
}]
|
|
8785
8844
|
}] });
|
|
8786
8845
|
|
|
8846
|
+
/**
|
|
8847
|
+
* @TODO Alex: extend rest service when refactored
|
|
8848
|
+
*/
|
|
8849
|
+
class SoleDepreciationMethodService {
|
|
8850
|
+
constructor(http, environment, eventDispatcherService, toastService) {
|
|
8851
|
+
this.http = http;
|
|
8852
|
+
this.environment = environment;
|
|
8853
|
+
this.eventDispatcherService = eventDispatcherService;
|
|
8854
|
+
this.toastService = toastService;
|
|
8855
|
+
this.cacheSubject = new ReplaySubject(1);
|
|
8856
|
+
this.url = 'sole-depreciation-methods';
|
|
8857
|
+
}
|
|
8858
|
+
get() {
|
|
8859
|
+
if (!this.cache) {
|
|
8860
|
+
this.http.get(`${this.environment.apiV2}/${this.url}`)
|
|
8861
|
+
.pipe(map((response) => plainToClass(SoleDepreciationMethod, response['hydra:member'][0])))
|
|
8862
|
+
.subscribe((soleDepreciationMethod) => {
|
|
8863
|
+
this.cache = soleDepreciationMethod;
|
|
8864
|
+
this.cacheSubject.next(this.cache);
|
|
8865
|
+
return soleDepreciationMethod;
|
|
8866
|
+
});
|
|
8867
|
+
}
|
|
8868
|
+
return this.cacheSubject.asObservable();
|
|
8869
|
+
}
|
|
8870
|
+
update(soleDepreciationMethod) {
|
|
8871
|
+
return this.http.put(`${this.environment.apiV2}/${this.url}/${soleDepreciationMethod.id}`, soleDepreciationMethod)
|
|
8872
|
+
.pipe(map((soleDepreciationMethodBase) => {
|
|
8873
|
+
const method = plainToClass(SoleDepreciationMethod, soleDepreciationMethodBase);
|
|
8874
|
+
this.cache = method;
|
|
8875
|
+
this.cacheSubject.next(this.cache);
|
|
8876
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SOLE_DEPRECIATION_METHOD_UPDATED, method));
|
|
8877
|
+
return this.cache;
|
|
8878
|
+
}), catchError((error) => {
|
|
8879
|
+
this.toastService.error(error.error['hydra:description']);
|
|
8880
|
+
return throwError$1(error);
|
|
8881
|
+
}));
|
|
8882
|
+
}
|
|
8883
|
+
}
|
|
8884
|
+
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8885
|
+
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
|
|
8886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
|
|
8887
|
+
type: Injectable,
|
|
8888
|
+
args: [{
|
|
8889
|
+
providedIn: 'root'
|
|
8890
|
+
}]
|
|
8891
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
8892
|
+
type: Inject,
|
|
8893
|
+
args: ['environment']
|
|
8894
|
+
}] }, { type: EventDispatcherService }, { type: ToastService }]; } });
|
|
8895
|
+
|
|
8787
8896
|
/**
|
|
8788
8897
|
* @TODO TT-1777 Alex: extend from rest service when it refactored
|
|
8789
8898
|
*/
|
|
@@ -9395,6 +9504,13 @@ class PropertyService extends RestService {
|
|
|
9395
9504
|
return updatedProperty;
|
|
9396
9505
|
}));
|
|
9397
9506
|
}
|
|
9507
|
+
updateDepreciationCalculation(property) {
|
|
9508
|
+
const propertyToUpdate = plainToClass(Property, { id: property.id, depreciationCalculation: property.depreciationCalculation });
|
|
9509
|
+
return this.update(propertyToUpdate).pipe(map((updatedProperty) => {
|
|
9510
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_DEPRECIATION_CALCULATION_UPDATED, updatedProperty));
|
|
9511
|
+
return updatedProperty;
|
|
9512
|
+
}));
|
|
9513
|
+
}
|
|
9398
9514
|
getByCategoryId(id) {
|
|
9399
9515
|
return this.get().pipe(map((properties) => {
|
|
9400
9516
|
return properties.filter((property) => property.category.id === id);
|
|
@@ -11335,6 +11451,8 @@ class DepreciationService extends RestService {
|
|
|
11335
11451
|
this.listenReceiptDeleted();
|
|
11336
11452
|
this.listenVehicleClaimChanges();
|
|
11337
11453
|
this.listenToUpdatedBankAccount();
|
|
11454
|
+
this.listenSoleDepreciationMethodChanges();
|
|
11455
|
+
this.listenPropertyDepreciationCalculationChanges();
|
|
11338
11456
|
}
|
|
11339
11457
|
getOpenBalance(depreciation) {
|
|
11340
11458
|
return this.http.post(`${this.environment.apiV2}/${this.url}/opening-balance?financialYear=${new FinancialYear().year}`, depreciation)
|
|
@@ -11393,6 +11511,22 @@ class DepreciationService extends RestService {
|
|
|
11393
11511
|
replace(this.cache, depreciationToReplace);
|
|
11394
11512
|
this.updateCache();
|
|
11395
11513
|
}
|
|
11514
|
+
/**
|
|
11515
|
+
* @TODO Alex: create common method resetCacheOn(events: AppEventType[])
|
|
11516
|
+
*/
|
|
11517
|
+
listenSoleDepreciationMethodChanges() {
|
|
11518
|
+
this.eventDispatcherService.on(AppEventTypeEnum.SOLE_DEPRECIATION_METHOD_UPDATED).subscribe(() => {
|
|
11519
|
+
this.resetCache();
|
|
11520
|
+
});
|
|
11521
|
+
}
|
|
11522
|
+
/**
|
|
11523
|
+
* @TODO Alex: create common method resetCacheOn(events: AppEventType[])
|
|
11524
|
+
*/
|
|
11525
|
+
listenPropertyDepreciationCalculationChanges() {
|
|
11526
|
+
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_DEPRECIATION_CALCULATION_UPDATED).subscribe(() => {
|
|
11527
|
+
this.resetCache();
|
|
11528
|
+
});
|
|
11529
|
+
}
|
|
11396
11530
|
}
|
|
11397
11531
|
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11398
11532
|
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, providedIn: 'root' });
|
|
@@ -13977,7 +14111,7 @@ class SoleBusinessForm extends AbstractForm {
|
|
|
13977
14111
|
constructor(business = plainToClass(SoleBusiness, {})) {
|
|
13978
14112
|
super({
|
|
13979
14113
|
name: new FormControl(business.name, Validators.required),
|
|
13980
|
-
|
|
14114
|
+
activity: new FormControl(business.activity, Validators.required),
|
|
13981
14115
|
description: new FormControl(business.description),
|
|
13982
14116
|
website: new FormControl(business.website)
|
|
13983
14117
|
}, business);
|
|
@@ -14060,6 +14194,14 @@ class SoleContactForm extends AbstractForm {
|
|
|
14060
14194
|
}
|
|
14061
14195
|
}
|
|
14062
14196
|
|
|
14197
|
+
class SoleDepreciationMethodForm extends AbstractForm {
|
|
14198
|
+
constructor(soleDepreciationMethod) {
|
|
14199
|
+
super({
|
|
14200
|
+
method: new FormControl(soleDepreciationMethod.method)
|
|
14201
|
+
}, soleDepreciationMethod);
|
|
14202
|
+
}
|
|
14203
|
+
}
|
|
14204
|
+
|
|
14063
14205
|
class SoleDetailsForm extends AbstractForm {
|
|
14064
14206
|
constructor(soleDetails) {
|
|
14065
14207
|
super({
|
|
@@ -14837,5 +14979,5 @@ VehicleLogbookForm.maxDescriptionLength = 60;
|
|
|
14837
14979
|
* Generated bundle index. Do not edit.
|
|
14838
14980
|
*/
|
|
14839
14981
|
|
|
14840
|
-
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceItem, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
|
|
14982
|
+
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceItem, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
|
|
14841
14983
|
//# sourceMappingURL=taxtank-core.js.map
|