taxtank-core 0.27.5 → 0.28.0

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.
Files changed (54) hide show
  1. package/bundles/taxtank-core.umd.js +332 -55
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/income-source.collection.js +4 -1
  4. package/esm2015/lib/db/Enums/sole-invoice-statuses.enum.js +8 -0
  5. package/esm2015/lib/db/Enums/sole-invoice-template-tax-type.enum.js +7 -0
  6. package/esm2015/lib/db/Models/chart-accounts/chart-accounts.js +1 -1
  7. package/esm2015/lib/db/Models/sole/sole-business.js +1 -1
  8. package/esm2015/lib/db/Models/sole/sole-invoice-template.js +1 -1
  9. package/esm2015/lib/db/Models/sole/sole-invoice.js +1 -1
  10. package/esm2015/lib/forms/bank/bank-account/bank-account-add-manual.form.js +6 -10
  11. package/esm2015/lib/forms/sole/index.js +3 -1
  12. package/esm2015/lib/forms/sole/sole-business.form.js +24 -3
  13. package/esm2015/lib/forms/sole/sole-invoice-item.form.js +43 -0
  14. package/esm2015/lib/forms/sole/sole-invoice-template.form.js +5 -3
  15. package/esm2015/lib/forms/sole/sole-invoice.form.js +51 -0
  16. package/esm2015/lib/models/endpoint/endpoints.const.js +5 -1
  17. package/esm2015/lib/models/event/app-event-type.enum.js +21 -20
  18. package/esm2015/lib/models/sole/sole-business.js +5 -1
  19. package/esm2015/lib/models/sole/sole-details.js +3 -1
  20. package/esm2015/lib/models/sole/sole-invoice-item.js +8 -1
  21. package/esm2015/lib/models/sole/sole-invoice-template.js +12 -2
  22. package/esm2015/lib/models/sole/sole-invoice.js +55 -2
  23. package/esm2015/lib/services/http/income-source/income-source.service.js +12 -1
  24. package/esm2015/lib/services/http/sole/index.js +2 -1
  25. package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +10 -1
  26. package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +21 -0
  27. package/esm2015/public-api.js +3 -1
  28. package/fesm2015/taxtank-core.js +274 -41
  29. package/fesm2015/taxtank-core.js.map +1 -1
  30. package/lib/collections/income-source.collection.d.ts +1 -0
  31. package/lib/db/Enums/sole-invoice-statuses.enum.d.ts +6 -0
  32. package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts +5 -0
  33. package/lib/db/Models/chart-accounts/chart-accounts.d.ts +1 -0
  34. package/lib/db/Models/sole/sole-business.d.ts +2 -0
  35. package/lib/db/Models/sole/sole-invoice-template.d.ts +2 -1
  36. package/lib/db/Models/sole/sole-invoice.d.ts +2 -1
  37. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts +1 -3
  38. package/lib/forms/sole/index.d.ts +2 -0
  39. package/lib/forms/sole/sole-business.form.d.ts +2 -0
  40. package/lib/forms/sole/sole-invoice-item.form.d.ts +10 -0
  41. package/lib/forms/sole/sole-invoice-template.form.d.ts +3 -2
  42. package/lib/forms/sole/sole-invoice.form.d.ts +14 -0
  43. package/lib/models/event/app-event-type.enum.d.ts +20 -19
  44. package/lib/models/sole/sole-business.d.ts +2 -0
  45. package/lib/models/sole/sole-details.d.ts +2 -0
  46. package/lib/models/sole/sole-invoice-item.d.ts +2 -0
  47. package/lib/models/sole/sole-invoice-template.d.ts +5 -1
  48. package/lib/models/sole/sole-invoice.d.ts +12 -0
  49. package/lib/services/http/income-source/income-source.service.d.ts +7 -1
  50. package/lib/services/http/sole/index.d.ts +1 -0
  51. package/lib/services/http/sole/sole-business/sole-business.service.d.ts +2 -0
  52. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +11 -0
  53. package/package.json +1 -1
  54. package/public-api.d.ts +2 -0
@@ -238,25 +238,26 @@ var AppEventTypeEnum;
238
238
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 38] = "PROPERTY_SUBSCRIPTION_DELETED";
239
239
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 39] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
240
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";
241
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_BUSINESS_CREATED"] = 41] = "SOLE_BUSINESS_CREATED";
242
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 42] = "SOLE_DEPRECIATION_METHOD_UPDATED";
243
+ AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 43] = "TAX_REVIEW_UPDATED";
244
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 44] = "TRANSACTION_CREATED";
245
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 45] = "TRANSACTION_DELETED";
246
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 46] = "TRANSACTION_UPDATED";
247
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_RECEIPT"] = 47] = "TRANSACTION_UPDATED_WITH_RECEIPT";
248
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_DELETED_RECEIPT"] = 48] = "TRANSACTION_UPDATED_WITH_DELETED_RECEIPT";
249
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 49] = "TRANSACTION_RECEIPT_CREATED";
250
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 50] = "TRANSACTION_RECEIPT_DELETED";
251
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 51] = "TRANSACTIONS_CREATED";
252
+ AppEventTypeEnum[AppEventTypeEnum["USER_UPDATED"] = 52] = "USER_UPDATED";
253
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 53] = "VEHICLE_CLAIM_UPDATED";
254
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 54] = "VEHICLE_CLAIM_CREATED";
255
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 55] = "VEHICLE_CLAIM_DETAILS_UPDATED";
256
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 56] = "VEHICLE_CLAIM_DETAILS_CREATED";
257
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 57] = "VEHICLE_LOGBOOK_CREATED";
258
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 58] = "VEHICLE_LOGBOOK_UPDATED";
259
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 59] = "VEHICLE_LOGBOOK_DELETED";
260
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 60] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
260
261
  })(AppEventTypeEnum || (AppEventTypeEnum = {}));
261
262
 
262
263
  class EventDispatcherService {
@@ -685,6 +686,10 @@ const ENDPOINTS = {
685
686
  SOLE_BUSINESSES_PUT: new Endpoint('PUT', '\\/sole-businesses\\/\\d+'),
686
687
  SOLE_DEPRECIATION_METHODS_GET: new Endpoint('GET', '\\/sole-depreciation-methods'),
687
688
  SOLE_DEPRECIATION_METHODS_PUT: new Endpoint('PUT', '\\/sole-depreciation-methods\\/\\d+'),
689
+ SOLE_INVOICES_GET: new Endpoint('GET', '\\/sole-invoices'),
690
+ SOLE_INVOICES_POST: new Endpoint('POST', '\\/sole-invoices'),
691
+ SOLE_INVOICES_PUT: new Endpoint('PUT', '\\/sole-invoices\\/\\d+'),
692
+ SOLE_INVOICES_DELETE: new Endpoint('DELETE', '\\/sole-invoices\\/\\d+'),
688
693
  SOLE_INVOICE_TEMPLATES_GET: new Endpoint('GET', '\\/sole-invoice-templates'),
689
694
  SOLE_INVOICE_TEMPLATES_POST: new Endpoint('POST', '\\/sole-invoice-templates'),
690
695
  SOLE_INVOICE_TEMPLATES_PUT: new Endpoint('PUT', '\\/sole-invoice-templates\\/\\d+'),
@@ -2381,6 +2386,13 @@ __decorate([
2381
2386
  ], ChartAccounts.prototype, "metadata", void 0);
2382
2387
 
2383
2388
  class SoleInvoiceItem extends SoleInvoiceItem$1 {
2389
+ constructor() {
2390
+ super(...arguments);
2391
+ this.isGST = false;
2392
+ }
2393
+ get amount() {
2394
+ return this.price * this.quantity;
2395
+ }
2384
2396
  }
2385
2397
  __decorate([
2386
2398
  Type(() => SoleInvoice)
@@ -2421,10 +2433,26 @@ __decorate([
2421
2433
  class SoleInvoiceTemplate$1 extends AbstractModel {
2422
2434
  }
2423
2435
 
2436
+ var SoleInvoiceTemplateTaxTypeEnum;
2437
+ (function (SoleInvoiceTemplateTaxTypeEnum) {
2438
+ SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["EXCLUSIVE"] = 0] = "EXCLUSIVE";
2439
+ SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["INCLUSIVE"] = 1] = "INCLUSIVE";
2440
+ SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["NONE"] = 2] = "NONE";
2441
+ })(SoleInvoiceTemplateTaxTypeEnum || (SoleInvoiceTemplateTaxTypeEnum = {}));
2442
+
2424
2443
  class SoleInvoiceTemplate extends SoleInvoiceTemplate$1 {
2425
2444
  constructor() {
2426
2445
  super(...arguments);
2427
- this.isTaxIncluded = false;
2446
+ this.taxType = SoleInvoiceTemplateTaxTypeEnum.NONE;
2447
+ }
2448
+ isNoTax() {
2449
+ return this.taxType === SoleInvoiceTemplateTaxTypeEnum.NONE;
2450
+ }
2451
+ isTaxExclusive() {
2452
+ return this.taxType === SoleInvoiceTemplateTaxTypeEnum.EXCLUSIVE;
2453
+ }
2454
+ isTaxInclusive() {
2455
+ return this.taxType === SoleInvoiceTemplateTaxTypeEnum.INCLUSIVE;
2428
2456
  }
2429
2457
  }
2430
2458
  __decorate([
@@ -2434,7 +2462,77 @@ __decorate([
2434
2462
  Type(() => BankAccount)
2435
2463
  ], SoleInvoiceTemplate.prototype, "bankAccount", void 0);
2436
2464
 
2465
+ var SoleInvoiceStatusesEnum;
2466
+ (function (SoleInvoiceStatusesEnum) {
2467
+ SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["CANCELED"] = 0] = "CANCELED";
2468
+ SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["DRAFT"] = 1] = "DRAFT";
2469
+ SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PENDING"] = 2] = "PENDING";
2470
+ SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PAID"] = 3] = "PAID";
2471
+ })(SoleInvoiceStatusesEnum || (SoleInvoiceStatusesEnum = {}));
2472
+
2473
+ class SoleDetails$1 extends AbstractModel {
2474
+ }
2475
+
2476
+ class SoleDetails extends SoleDetails$1 {
2477
+ }
2478
+ SoleDetails.GSTPercentMultiplier = 0.1;
2479
+ SoleDetails.GSTPercentDivider = 11;
2480
+ __decorate([
2481
+ Type(() => User)
2482
+ ], SoleDetails.prototype, "user", void 0);
2483
+
2437
2484
  class SoleInvoice extends SoleInvoice$1 {
2485
+ constructor() {
2486
+ super(...arguments);
2487
+ this.items = [plainToClass(SoleInvoiceItem, {})];
2488
+ this.status = SoleInvoiceStatusesEnum.DRAFT;
2489
+ }
2490
+ get amount() {
2491
+ return this.items.reduce((sum, item) => sum + item.amount, 0);
2492
+ }
2493
+ getGSTItems() {
2494
+ return this.items.filter((item) => item.isGST);
2495
+ }
2496
+ getGSTItemsAmount() {
2497
+ return this.getGSTItems().reduce((sum, item) => sum + item.amount, 0);
2498
+ }
2499
+ get subtotal() {
2500
+ var _a;
2501
+ if ((_a = this.template) === null || _a === void 0 ? void 0 : _a.isTaxInclusive()) {
2502
+ return this.amount - this.GSTAmount;
2503
+ }
2504
+ return this.amount;
2505
+ }
2506
+ get GSTAmount() {
2507
+ var _a, _b;
2508
+ switch (true) {
2509
+ case (_a = this.template) === null || _a === void 0 ? void 0 : _a.isTaxInclusive():
2510
+ return +(this.getGSTItemsAmount() / SoleDetails.GSTPercentDivider).toFixed(2);
2511
+ case (_b = this.template) === null || _b === void 0 ? void 0 : _b.isTaxExclusive():
2512
+ return +(this.getGSTItemsAmount() * SoleDetails.GSTPercentMultiplier).toFixed(2);
2513
+ default:
2514
+ return 0;
2515
+ }
2516
+ }
2517
+ get total() {
2518
+ var _a;
2519
+ if ((_a = this.template) === null || _a === void 0 ? void 0 : _a.isTaxExclusive()) {
2520
+ return this.amount + this.GSTAmount;
2521
+ }
2522
+ return this.amount;
2523
+ }
2524
+ isDraft() {
2525
+ return this.status === SoleInvoiceStatusesEnum.DRAFT;
2526
+ }
2527
+ isCancelled() {
2528
+ return this.status === SoleInvoiceStatusesEnum.CANCELED;
2529
+ }
2530
+ isPending() {
2531
+ return this.status === SoleInvoiceStatusesEnum.PENDING;
2532
+ }
2533
+ isPaid() {
2534
+ return this.status === SoleInvoiceStatusesEnum.PAID;
2535
+ }
2438
2536
  }
2439
2537
  __decorate([
2440
2538
  Type(() => Date)
@@ -3479,6 +3577,9 @@ __decorate([
3479
3577
  __decorate([
3480
3578
  Type(() => SoleBusinessActivity$1)
3481
3579
  ], SoleBusiness.prototype, "activity", void 0);
3580
+ __decorate([
3581
+ Type(() => IncomeSource)
3582
+ ], SoleBusiness.prototype, "incomeSource", void 0);
3482
3583
 
3483
3584
  class SoleBusinessActivity extends SoleBusinessActivity$1 {
3484
3585
  }
@@ -3498,15 +3599,6 @@ class SoleDepreciationMethod extends SoleDepreciationMethod$1 {
3498
3599
  }
3499
3600
  }
3500
3601
 
3501
- class SoleDetails$1 extends AbstractModel {
3502
- }
3503
-
3504
- class SoleDetails extends SoleDetails$1 {
3505
- }
3506
- __decorate([
3507
- Type(() => User)
3508
- ], SoleDetails.prototype, "user", void 0);
3509
-
3510
3602
  class User extends User$1 {
3511
3603
  get fullName() {
3512
3604
  return `${this.firstName} ${this.lastName}`;
@@ -5445,6 +5537,9 @@ class IncomeSourceCollection extends Collection {
5445
5537
  getSalary() {
5446
5538
  return this.items.filter((incomeSource) => incomeSource.isSalaryIncome());
5447
5539
  }
5540
+ getOther() {
5541
+ return this.items.filter((incomeSource) => incomeSource.isOtherIncome());
5542
+ }
5448
5543
  /**
5449
5544
  * Get income sources list of forecasts
5450
5545
  */
@@ -8800,6 +8895,12 @@ class SoleBusinessService extends RestService {
8800
8895
  this.url = 'sole-businesses';
8801
8896
  this.isHydra = true;
8802
8897
  }
8898
+ add(soleBusiness) {
8899
+ return super.add(soleBusiness).pipe(map((business) => {
8900
+ this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SOLE_BUSINESS_CREATED, business));
8901
+ return business;
8902
+ }));
8903
+ }
8803
8904
  }
8804
8905
  SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8805
8906
  SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
@@ -8946,6 +9047,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
8946
9047
  args: ['environment']
8947
9048
  }] }]; } });
8948
9049
 
9050
+ class SoleInvoiceService extends RestService {
9051
+ constructor() {
9052
+ super(...arguments);
9053
+ this.modelClass = SoleInvoice;
9054
+ this.url = 'sole-invoices';
9055
+ this.isHydra = true;
9056
+ }
9057
+ }
9058
+ SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9059
+ SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
9060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceService, decorators: [{
9061
+ type: Injectable,
9062
+ args: [{
9063
+ providedIn: 'root'
9064
+ }]
9065
+ }] });
9066
+
8949
9067
  class SoleInvoiceTemplateService extends RestService {
8950
9068
  constructor() {
8951
9069
  super(...arguments);
@@ -9617,6 +9735,9 @@ class IncomeSourceService extends RestService {
9617
9735
  this.modelClass = IncomeSource;
9618
9736
  this.incomeSourceTypeSubject = new ReplaySubject(1);
9619
9737
  }
9738
+ listenEvents() {
9739
+ this.listenSoleBusinessCreated();
9740
+ }
9620
9741
  /**
9621
9742
  * Get income sources tax calculation
9622
9743
  * @param salaryForecast for which tax should be calculated
@@ -9686,6 +9807,14 @@ class IncomeSourceService extends RestService {
9686
9807
  }
9687
9808
  return this.incomeSourceTypeSubject.asObservable();
9688
9809
  }
9810
+ /**
9811
+ * Sole businesses create together with income source
9812
+ */
9813
+ listenSoleBusinessCreated() {
9814
+ this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
9815
+ this.resetCache();
9816
+ });
9817
+ }
9689
9818
  }
9690
9819
  IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9691
9820
  IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
@@ -14150,8 +14279,27 @@ class SoleBusinessForm extends AbstractForm {
14150
14279
  name: new FormControl(business.name, Validators.required),
14151
14280
  activity: new FormControl(business.activity, Validators.required),
14152
14281
  description: new FormControl(business.description),
14153
- website: new FormControl(business.website)
14282
+ website: new FormControl(business.website),
14154
14283
  }, business);
14284
+ // User have to create income source with new business.
14285
+ // Income source is not able for edit business
14286
+ if (!business.id) {
14287
+ // @TODO Alex: move to separated form class
14288
+ this.addControl('incomeSource', new FormGroup({
14289
+ type: new FormControl(IncomeSourceTypeEnum.SOLE, Validators.required),
14290
+ name: new FormControl(null, Validators.required),
14291
+ soleForecasts: new FormArray([
14292
+ new FormGroup({
14293
+ financialYear: new FormControl(new FinancialYear().year, Validators.required),
14294
+ amount: new FormControl(null, Validators.required),
14295
+ taxInstalments: new FormControl(null, Validators.required)
14296
+ })
14297
+ ])
14298
+ }));
14299
+ }
14300
+ }
14301
+ get forecastFormGroup() {
14302
+ return this.get('incomeSource').get('soleForecasts').at(0);
14155
14303
  }
14156
14304
  }
14157
14305
 
@@ -14249,14 +14397,103 @@ class SoleDetailsForm extends AbstractForm {
14249
14397
  }
14250
14398
  }
14251
14399
 
14400
+ class SoleInvoiceItemForm extends AbstractForm {
14401
+ constructor(item) {
14402
+ var _a;
14403
+ super({
14404
+ description: new FormControl(item.description, Validators.required),
14405
+ quantity: new FormControl(item.quantity, Validators.required),
14406
+ price: new FormControl(item.price, Validators.required),
14407
+ isGST: new FormControl({ value: item.isGST, disabled: !((_a = item.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) }),
14408
+ chartAccounts: new FormControl(item.chartAccounts, Validators.required)
14409
+ }, item);
14410
+ this.listenEvents();
14411
+ }
14412
+ listenEvents() {
14413
+ this.listenChartAccountsChanges();
14414
+ }
14415
+ onTemplateChanged(template) {
14416
+ this.template = template;
14417
+ if (this.template.isNoTax()) {
14418
+ this.get('isGST').setValue(false);
14419
+ this.get('isGST').disable();
14420
+ }
14421
+ else {
14422
+ this.get('isGST').enable();
14423
+ }
14424
+ }
14425
+ listenChartAccountsChanges() {
14426
+ this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
14427
+ if (this.template.isNoTax()) {
14428
+ return;
14429
+ }
14430
+ if (chartAccounts.isGST) {
14431
+ this.get('isGST').enable();
14432
+ }
14433
+ else {
14434
+ this.get('isGST').setValue(false);
14435
+ this.get('isGST').disable();
14436
+ }
14437
+ });
14438
+ }
14439
+ }
14440
+
14441
+ class SoleInvoiceForm extends AbstractForm {
14442
+ constructor(invoice) {
14443
+ super({
14444
+ dateFrom: new FormControl(invoice.dateFrom, Validators.required),
14445
+ dateTo: new FormControl(invoice.dateTo, Validators.required),
14446
+ items: new FormArray(invoice.items.map((item) => new SoleInvoiceItemForm(item))),
14447
+ payer: new FormControl(invoice.payer, Validators.required),
14448
+ template: new FormControl(invoice.template, Validators.required)
14449
+ }, invoice);
14450
+ if (invoice.id) {
14451
+ this.updateItemsForm(invoice.template);
14452
+ }
14453
+ this.listenEvents();
14454
+ }
14455
+ get items() {
14456
+ return this.get('items');
14457
+ }
14458
+ listenEvents() {
14459
+ this.listenTemplateChanges();
14460
+ }
14461
+ addItem() {
14462
+ this.items.push(new SoleInvoiceItemForm(plainToClass(SoleInvoiceItem, {})));
14463
+ }
14464
+ removeItem(index) {
14465
+ // do not remove the last item
14466
+ if (this.items.length === 1) {
14467
+ return;
14468
+ }
14469
+ this.items.removeAt(index);
14470
+ }
14471
+ submit(data = {}) {
14472
+ const items = this.items.controls.map((control) => control.submit());
14473
+ return super.submit(Object.assign({}, data, { items }));
14474
+ }
14475
+ listenTemplateChanges() {
14476
+ this.get('template').valueChanges.subscribe((template) => {
14477
+ this.updateItemsForm(template);
14478
+ });
14479
+ }
14480
+ updateItemsForm(template) {
14481
+ this.items.controls.forEach((itemForm) => {
14482
+ itemForm.onTemplateChanged(template);
14483
+ });
14484
+ }
14485
+ }
14486
+
14252
14487
  class SoleInvoiceTemplateForm extends AbstractForm {
14253
- constructor(invoiceTemplate) {
14488
+ constructor(invoiceTemplate, soleDetails) {
14254
14489
  super({
14255
14490
  name: new FormControl(invoiceTemplate.name, Validators.required),
14256
- isTaxIncluded: new FormControl(invoiceTemplate.isTaxIncluded),
14491
+ // taxType always 'No Tax' when sole details are not GST registered
14492
+ taxType: new FormControl({ value: invoiceTemplate.taxType, disabled: !soleDetails.isGST }, Validators.required),
14257
14493
  term: new FormControl(invoiceTemplate.term, [Validators.required, Validators.min(0)]),
14258
14494
  bankAccount: new FormControl(invoiceTemplate.bankAccount, [Validators.required])
14259
14495
  }, invoiceTemplate);
14496
+ this.soleDetails = soleDetails;
14260
14497
  }
14261
14498
  }
14262
14499
 
@@ -14319,14 +14556,10 @@ class BankAccountAddManualForm extends BankAccountAllocationForm {
14319
14556
  constructor(connection) {
14320
14557
  super();
14321
14558
  this.connection = connection;
14322
- this
14323
- .addControl('type', new FormControl(null, Validators.required))
14324
- .addControl('accountName', new FormControl(null, Validators.required))
14325
- .addControl('currentBalance', new FormControl(null, Validators.required))
14326
- .addControl('accountNumber', new FormControl(null, [Validators.required, Validators.pattern(BankAccountAddManualForm.accountNumberPattern)]));
14327
- this.listenEvents();
14328
- }
14329
- listenEvents() {
14559
+ this.addControl('type', new FormControl(null, Validators.required));
14560
+ this.addControl('accountName', new FormControl(null, Validators.required));
14561
+ this.addControl('currentBalance', new FormControl(null, Validators.required));
14562
+ this.addControl('accountNumber', new FormControl(null, [Validators.required, Validators.pattern(BankAccountAddManualForm.accountNumberPattern)]));
14330
14563
  this.listenTypeChanges();
14331
14564
  }
14332
14565
  /**
@@ -15029,5 +15262,5 @@ VehicleLogbookForm.maxDescriptionLength = 60;
15029
15262
  * Generated bundle index. Do not edit.
15030
15263
  */
15031
15264
 
15032
- 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, RewardfulService, 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 };
15265
+ 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, RewardfulService, 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, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, 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 };
15033
15266
  //# sourceMappingURL=taxtank-core.js.map