taxtank-core 0.33.37 → 0.33.40

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,8 @@ export class SoleInvoiceCollection extends Collection {
21
21
  groupByState(transactions) {
22
22
  const invoicesByState = this.groupBy('status');
23
23
  const unpaidInvoices = this.getUnpaid(transactions);
24
- invoicesByState.add(SoleInvoiceStateEnum.PAID, this.getPaid(transactions));
24
+ invoicesByState.add(SoleInvoiceStateEnum.FULLY_PAID, this.getPaid(transactions));
25
+ invoicesByState.add(SoleInvoiceStateEnum.PAID, this.filterBy('id', transactions.filterByFinancialYear('date').map(transaction => transaction.invoiceId)));
25
26
  invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.PAID).toArray()));
26
27
  invoicesByState.add(SoleInvoiceStateEnum.OVERDUE, unpaidInvoices.getOverdue());
27
28
  return invoicesByState;
@@ -33,4 +34,4 @@ export class SoleInvoiceCollection extends Collection {
33
34
  return flatten(this.map(invoice => invoice.allocate(bankTransaction, amount)));
34
35
  }
35
36
  }
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLmNvbGxlY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvc29sZS9zb2xlLWludm9pY2UuY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBRXJDLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRy9FLE1BQU0sT0FBTyxxQ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vbnMuZ2V0QnlJbnZvaWNlcyh0aGlzKS5zdW1CeSgnZ3Jvc3NBbW91bnQnKTtcbiAgfVxuXG4gIGFsbG9jYXRlKGJhbmtUcmFuc2FjdGlvbjogQmFua1RyYW5zYWN0aW9uLCBhbW91bnQ/OiBudW1iZXIpOiBUcmFuc2FjdGlvbltdIHtcbiAgICByZXR1cm4gZmxhdHRlbih0aGlzLm1hcChpbnZvaWNlID0+IGludm9pY2UuYWxsb2NhdGUoYmFua1RyYW5zYWN0aW9uLCBhbW91bnQpKSk7XG4gIH1cbn1cbiJdfQ==
@@ -4,6 +4,7 @@ export var SoleInvoiceStateEnum;
4
4
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["DRAFT"] = 1] = "DRAFT";
5
5
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["OPEN"] = 2] = "OPEN";
6
6
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["PAID"] = 3] = "PAID";
7
- SoleInvoiceStateEnum[SoleInvoiceStateEnum["OVERDUE"] = 4] = "OVERDUE";
7
+ SoleInvoiceStateEnum[SoleInvoiceStateEnum["FULLY_PAID"] = 4] = "FULLY_PAID";
8
+ SoleInvoiceStateEnum[SoleInvoiceStateEnum["OVERDUE"] = 5] = "OVERDUE";
8
9
  })(SoleInvoiceStateEnum || (SoleInvoiceStateEnum = {}));
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLXN0YXRlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvc29sZS9zb2xlLWludm9pY2Utc3RhdGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxvQkFNWDtBQU5ELFdBQVksb0JBQW9CO0lBQzlCLHVFQUFZLEN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export class TransactionForm extends TransactionBaseForm {
12
12
  source: new UntypedFormControl(transaction.source || TransactionSourceEnum.BANK_TRANSACTION, Validators.required)
13
13
  }));
14
14
  this.get('date').addValidators([currentFinYearValidator()]);
15
+ console.log(transaction);
15
16
  // convert child transactions to controls
16
17
  transaction.transactions.map((transaction) => {
17
18
  this.addTransactionControl(transaction);
@@ -59,4 +60,4 @@ export class TransactionForm extends TransactionBaseForm {
59
60
  return super.submit(Object.assign(data, { transactions: this.buildTransactions(this.currentValue) }), true);
60
61
  }
61
62
  }
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQXlCLE1BQU0sY0FBYyxDQUFDO0FBQ2xFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzlELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSx1QkFBdUIsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ3BHLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQW1CLGdCQUFnQixFQUFFLGtCQUFrQixFQUFFLGdCQUFnQixFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JILE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUU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XNjcmlwdGlvbjogY2hpbGRUcmFuc2FjdGlvbi5jaGFydEFjY291bnRzPy5uYW1lLFxuICAgICAgICBkYXRlOiB0cmFuc2FjdGlvbi5kYXRlLFxuICAgICAgICBjbGFpbVBlcmNlbnQ6ICh0cmFuc2FjdGlvbi5jbGFpbVBlcmNlbnQgKiBjaGlsZFRyYW5zYWN0aW9uLmNoYXJ0QWNjb3VudHM/LnRheGFibGVQZXJjZW50KSAvIDEwMCxcbiAgICAgICAgc291cmNlOiBUcmFuc2FjdGlvblNvdXJjZUVudW0uQkFOS19UUkFOU0FDVElPTixcbiAgICAgICAgaW5jb21lU291cmNlOiB0cmFuc2FjdGlvbi5pbmNvbWVTb3VyY2UsXG4gICAgICAgIHByb3BlcnR5OiB0cmFuc2FjdGlvbi5wcm9wZXJ0eVxuICAgICAgfSxcbiAgICAgIHRoaXMubW9kZWwudHJhbnNhY3Rpb25zLmZpbmQoKHRyYW5zYWN0aW9uKSA9PiB0cmFuc2FjdGlvbi5pZCA9PT0gY2hpbGRUcmFuc2FjdGlvblsnaWQnXSkgfHwge30sXG4gICAgICBjaGlsZFRyYW5zYWN0aW9uLFxuICAgICkpO1xuICB9XG5cbiAgc3VibWl0KGRhdGE6IG9iamVjdCA9IHt9KTogVHJhbnNhY3Rpb24ge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoT2JqZWN0LmFzc2lnbihkYXRhLCB7IHRyYW5zYWN0aW9uczogdGhpcy5idWlsZFRyYW5zYWN0aW9ucyh0aGlzLmN1cnJlbnRWYWx1ZSkgfSksIHRydWUpO1xuICB9XG59XG4iXX0=
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, Inject, Injectable } from '@angular/core';
2
2
  import { map } from 'rxjs/operators';
3
- import { replace, sort } from '../../../functions/array';
3
+ import { replace } from '../../../functions/array';
4
4
  import { TransactionOperationEnum } from '../../../db/Enums/transaction-operation.enum';
5
5
  import { RestService } from '../rest/rest-old.service';
6
6
  import { AppEvent, AppEventTypeEnum, Depreciation, PropertyShare, Transaction, VehicleClaim } from '../../../models';
@@ -36,26 +36,17 @@ export class TransactionService extends RestService {
36
36
  this.listenPropertyForecastUpdate();
37
37
  this.listenNotifications();
38
38
  }
39
- /**
40
- * current year transactions + previous year sole invoice transactions (needed whe invoice part paid in previous year)
41
- */
42
- getAll() {
43
- return super.get().pipe(
44
- // assign child transactions (fees) to parent transactions
45
- map((transactions) => {
39
+ fetch(path = this.apiUrl, cache = true) {
40
+ return super.fetch(path, cache).pipe(map(transactions => {
46
41
  transactions.forEach((transaction) => {
47
42
  transaction.transactions = transactions
48
43
  // get list of child transactions
49
44
  .filter((t) => t.parentTransaction && t.parentTransaction.id === transaction.id);
50
45
  });
51
- sort(transactions, 'date', false);
52
46
  return transactions;
53
47
  }));
54
48
  }
55
- /**
56
- * current year transactions
57
- */
58
- get() {
49
+ getCurrentYear() {
59
50
  return super.get().pipe(map((transactions) => new TransactionCollection(transactions).filterByFinancialYear('date').toArray()));
60
51
  }
61
52
  /**
@@ -75,21 +66,24 @@ export class TransactionService extends RestService {
75
66
  * get transactions related with property
76
67
  */
77
68
  getByPropertyId(propertyId) {
78
- return this.get()
69
+ return this.getCurrentYear()
79
70
  .pipe(map((transactions) => transactions.filter((transaction) => transaction.property?.id === propertyId)));
80
71
  }
81
72
  /**
82
73
  * get list of transactions with tank type 'Work'
83
74
  */
84
75
  getWorkTransactions() {
85
- return this.get()
76
+ return this.getCurrentYear()
86
77
  .pipe(map((transactions) => transactions.filter((transaction) => transaction.isWorkTank())));
87
78
  }
88
79
  /**
89
80
  * Get list of property holding costs (transactions related to vacant land property)
90
81
  */
91
82
  getPropertyHoldingCosts(propertyId) {
92
- return super.fetch(`${this.environment.apiV2}/properties/${propertyId}/holding-costs`, false);
83
+ return this.fetch(`${this.environment.apiV2}/properties/${propertyId}/holding-costs`, false);
84
+ }
85
+ getWithoutTaxFreeProperty() {
86
+ return this.fetch(`${this.apiUrl}?excludeTaxFreePropertyCategories`, false);
93
87
  }
94
88
  /**
95
89
  * get list of taxable transactions with tank type 'Work'
@@ -265,4 +259,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
265
259
  type: Inject,
266
260
  args: ['environment']
267
261
  }] }] });
268
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL3RyYW5zYWN0aW9uL3RyYW5zYWN0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBR2pFLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyQyxPQUFPLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ3pELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLDhDQUE4QyxDQUFDO0FBQ3hGLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUN2RCxPQUFPLEVBQ0wsUUFBUSxFQUNSLGdCQUFnQixFQUNoQixZQUFZLEVBRUUsYUFBYSxFQUMzQixXQUFXLEVBQ1gsWUFBWSxFQUNiLE1BQU0saUJBQWlCLENBQUM7QUFDekIsT0FBTyxDQUFDLE1BQU0sUUFBUSxDQUFDO0FBSXZCLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSw2Q0FBNkMsQ0FBQztBQUNwRixPQ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ik6IHZvaWQge1xuICAgIHJlcGxhY2UodGhpcy5jYWNoZSwgdHJhbnNhY3Rpb25Ub1JlcGxhY2UpO1xuICAgIHRoaXMudXBkYXRlQ2FjaGUoKTtcbiAgfVxuXG4gIHByaXZhdGUgbGlzdGVuTm90aWZpY2F0aW9ucygpOiB2b2lkIHtcbiAgICB0aGlzLmV2ZW50RGlzcGF0Y2hlclNlcnZpY2Uub24oQXBwRXZlbnRUeXBlRW51bS5OT1RJRklDQVRJT05fQURERUQpLnN1YnNjcmliZSgobm90aWZpY2F0aW9uOiBOb3RpZmljYXRpb24pID0+IHtcbiAgICAgIGNvbnN0IGV2ZW50cyA9IFtcbiAgICAgICAgVXNlckV2ZW50VHlwZVR5cGVFbnVtLklOVk9JQ0VfQVVUT19BTExPQ0FURUQsXG4gICAgICAgIFVzZXJFdmVudFR5cGVUeXBlRW51bS5JTlZPSUNFX0FVVE9fUEFSVF9BTExPQ0FURUQsXG4gICAgICAgIFVzZXJFdmVudFR5cGVUeXBlRW51bS5SVUxFU19BVVRPX0FMTE9DQVRFRFxuICAgICAgXTtcblxuICAgICAgaWYgKCFub3RpZmljYXRpb24uaXNSZWFkICYmIGV2ZW50cy5pbmNsdWRlcyhub3RpZmljYXRpb24uZXZlbnRUeXBlKSkge1xuICAgICAgICAvLyBAVE9ETyBUVC0zODI2IG1vdmUgdG8gdW5pZmllZCBtZXJjdXJlIGV2ZW50XG4gICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgIHRoaXMucmVmcmVzaENhY2hlKCk7XG4gICAgICAgIH0sIDMwMDApXG4gICAgICB9XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
@@ -45,7 +45,7 @@ export class PropertyTransactionReportService {
45
45
  * Get collection of property transactions
46
46
  */
47
47
  getTransactions() {
48
- return this.transactionService.get().pipe(map((transactions) => new TransactionCollection(transactions)
48
+ return this.transactionService.getWithoutTaxFreeProperty().pipe(map((transactions) => new TransactionCollection(transactions)
49
49
  .getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)
50
50
  .filter(transaction => transaction.claimPercent > 0)));
51
51
  }
@@ -67,4 +67,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
67
67
  providedIn: 'root'
68
68
  }]
69
69
  }], ctorParameters: () => [{ type: i1.PropertyService }, { type: i1.TransactionService }, { type: i1.DepreciationService }, { type: i1.ChartAccountsService }] });
70
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktdHJhbnNhY3Rpb24tcmVwb3J0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvcmVwb3J0L3Byb3BlcnR5L3Byb3BlcnR5LXRyYW5zYWN0aW9uLXJlcG9ydC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFjLGFBQWEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNqRCxPQUFPLEVBQUUseUJBQXlCLEVBQWUsTUFBTSxpQkFBaUIsQ0FBQztBQUN6RSxPQUFPLEVBS0wsNEJBQTRCLEVBQzVCLHdDQUF3QyxFQUN4Qyx1Q0FBdUMsRUFDdkMscUJBQXFCLEdBQ3RCLE1BQU0sc0JBQXNCLENBQUM7QUFDOUIsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFHckM7O0dBRUc7QUFJSCxNQUFNLE9BQU8sZ0NBQWdDO0lBTTNDLFlBQ1UsZUFBZ0MsRUFDaEMsa0JBQXNDLEVBQ3RDLG1CQUF3QyxFQUN4QyxvQkFBMEM7UUFIMUMsb0JBQWU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uKSA9PiBkZXByZWNpYXRpb25zXG4gICAgICAgIC5nZXRCeUNoYXJ0QWNjb3VudHNDYXRlZ29yaWVzKENIQVJUX0FDQ09VTlRTX0NBVEVHT1JJRVMucHJvcGVydHkpXG4gICAgICAgIC8vIHdlIGRvbid0IG5lZWQgYm9ycm93aW5nIGV4cGVuc2VzIGZvciB0aGlzIHJlcG9ydFxuICAgICAgICAuZ2V0V2l0aG91dEJvcnJvd2luZ0V4cGVuc2VzKCkpXG4gICAgKVxuICB9XG59XG4iXX0=
@@ -1580,7 +1580,8 @@ var SoleInvoiceStateEnum;
1580
1580
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["DRAFT"] = 1] = "DRAFT";
1581
1581
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["OPEN"] = 2] = "OPEN";
1582
1582
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["PAID"] = 3] = "PAID";
1583
- SoleInvoiceStateEnum[SoleInvoiceStateEnum["OVERDUE"] = 4] = "OVERDUE";
1583
+ SoleInvoiceStateEnum[SoleInvoiceStateEnum["FULLY_PAID"] = 4] = "FULLY_PAID";
1584
+ SoleInvoiceStateEnum[SoleInvoiceStateEnum["OVERDUE"] = 5] = "OVERDUE";
1584
1585
  })(SoleInvoiceStateEnum || (SoleInvoiceStateEnum = {}));
1585
1586
 
1586
1587
  var SoleInvoiceStatusesEnum;
@@ -8449,7 +8450,8 @@ class SoleInvoiceCollection extends Collection {
8449
8450
  groupByState(transactions) {
8450
8451
  const invoicesByState = this.groupBy('status');
8451
8452
  const unpaidInvoices = this.getUnpaid(transactions);
8452
- invoicesByState.add(SoleInvoiceStateEnum.PAID, this.getPaid(transactions));
8453
+ invoicesByState.add(SoleInvoiceStateEnum.FULLY_PAID, this.getPaid(transactions));
8454
+ invoicesByState.add(SoleInvoiceStateEnum.PAID, this.filterBy('id', transactions.filterByFinancialYear('date').map(transaction => transaction.invoiceId)));
8453
8455
  invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.PAID).toArray()));
8454
8456
  invoicesByState.add(SoleInvoiceStateEnum.OVERDUE, unpaidInvoices.getOverdue());
8455
8457
  return invoicesByState;
@@ -15245,26 +15247,17 @@ class TransactionService extends RestService {
15245
15247
  this.listenPropertyForecastUpdate();
15246
15248
  this.listenNotifications();
15247
15249
  }
15248
- /**
15249
- * current year transactions + previous year sole invoice transactions (needed whe invoice part paid in previous year)
15250
- */
15251
- getAll() {
15252
- return super.get().pipe(
15253
- // assign child transactions (fees) to parent transactions
15254
- map((transactions) => {
15250
+ fetch(path = this.apiUrl, cache = true) {
15251
+ return super.fetch(path, cache).pipe(map(transactions => {
15255
15252
  transactions.forEach((transaction) => {
15256
15253
  transaction.transactions = transactions
15257
15254
  // get list of child transactions
15258
15255
  .filter((t) => t.parentTransaction && t.parentTransaction.id === transaction.id);
15259
15256
  });
15260
- sort(transactions, 'date', false);
15261
15257
  return transactions;
15262
15258
  }));
15263
15259
  }
15264
- /**
15265
- * current year transactions
15266
- */
15267
- get() {
15260
+ getCurrentYear() {
15268
15261
  return super.get().pipe(map((transactions) => new TransactionCollection(transactions).filterByFinancialYear('date').toArray()));
15269
15262
  }
15270
15263
  /**
@@ -15284,21 +15277,24 @@ class TransactionService extends RestService {
15284
15277
  * get transactions related with property
15285
15278
  */
15286
15279
  getByPropertyId(propertyId) {
15287
- return this.get()
15280
+ return this.getCurrentYear()
15288
15281
  .pipe(map((transactions) => transactions.filter((transaction) => transaction.property?.id === propertyId)));
15289
15282
  }
15290
15283
  /**
15291
15284
  * get list of transactions with tank type 'Work'
15292
15285
  */
15293
15286
  getWorkTransactions() {
15294
- return this.get()
15287
+ return this.getCurrentYear()
15295
15288
  .pipe(map((transactions) => transactions.filter((transaction) => transaction.isWorkTank())));
15296
15289
  }
15297
15290
  /**
15298
15291
  * Get list of property holding costs (transactions related to vacant land property)
15299
15292
  */
15300
15293
  getPropertyHoldingCosts(propertyId) {
15301
- return super.fetch(`${this.environment.apiV2}/properties/${propertyId}/holding-costs`, false);
15294
+ return this.fetch(`${this.environment.apiV2}/properties/${propertyId}/holding-costs`, false);
15295
+ }
15296
+ getWithoutTaxFreeProperty() {
15297
+ return this.fetch(`${this.apiUrl}?excludeTaxFreePropertyCategories`, false);
15302
15298
  }
15303
15299
  /**
15304
15300
  * get list of taxable transactions with tank type 'Work'
@@ -19369,7 +19365,7 @@ class PropertyTransactionReportService {
19369
19365
  * Get collection of property transactions
19370
19366
  */
19371
19367
  getTransactions() {
19372
- return this.transactionService.get().pipe(map((transactions) => new TransactionCollection(transactions)
19368
+ return this.transactionService.getWithoutTaxFreeProperty().pipe(map((transactions) => new TransactionCollection(transactions)
19373
19369
  .getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)
19374
19370
  .filter(transaction => transaction.claimPercent > 0)));
19375
19371
  }
@@ -23699,6 +23695,7 @@ class TransactionForm extends TransactionBaseForm {
23699
23695
  source: new UntypedFormControl(transaction.source || TransactionSourceEnum.BANK_TRANSACTION, Validators.required)
23700
23696
  }));
23701
23697
  this.get('date').addValidators([currentFinYearValidator()]);
23698
+ console.log(transaction);
23702
23699
  // convert child transactions to controls
23703
23700
  transaction.transactions.map((transaction) => {
23704
23701
  this.addTransactionControl(transaction);