taxtank-core 0.33.13 → 0.33.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/esm2022/src/lib/collections/holding/holding.collection.mjs +4 -1
  2. package/esm2022/src/lib/db/Models/vehicle/vehicle-claim.mjs +3 -3
  3. package/esm2022/src/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.mjs +1 -1
  4. package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +4 -1
  5. package/esm2022/src/lib/models/event/app-event-type.enum.mjs +7 -9
  6. package/esm2022/src/lib/models/vehicle/vehicle-claim-details.mjs +1 -2
  7. package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +2 -2
  8. package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +3 -1
  9. package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +3 -4
  10. package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +16 -7
  11. package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +3 -1
  12. package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +9 -9
  13. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +3 -4
  14. package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +6 -18
  15. package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +2 -2
  16. package/fesm2022/taxtank-core.mjs +42 -42
  17. package/fesm2022/taxtank-core.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/src/lib/collections/holding/holding.collection.d.ts +1 -0
  20. package/src/lib/db/Models/vehicle/vehicle-claim.d.ts +2 -2
  21. package/src/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts +1 -1
  22. package/src/lib/models/event/app-event-type.enum.d.ts +6 -8
  23. package/src/lib/services/http/bank/bank-account/bank-account.service.d.ts +2 -0
  24. package/src/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts +5 -1
  25. package/src/lib/services/http/property/property-share/property-share.service.d.ts +2 -0
  26. package/src/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +6 -6
  27. package/src/lib/services/http/vehicle/vehicle-claim.service.d.ts +5 -6
  28. package/src/lib/services/http/vehicle/vehicle.service.d.ts +1 -1
@@ -71,5 +71,8 @@ export class HoldingCollection extends ExportableCollection {
71
71
  getUnsold() {
72
72
  return this.removeBy('currentQuantity', 0);
73
73
  }
74
+ getUnrealisedProfit() {
75
+ return this.marketValue - this.getPurchaseValue();
76
+ }
74
77
  }
75
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy5jb2xsZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2NvbGxlY3Rpb25zL2hvbGRpbmcvaG9sZGluZy5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVoRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDN0QsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDL0UsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFekQsTUFBTSxPQUFPLGlCQUFrQixTQUFRLG9CQUE2QjtJQUNsRSxlQUFlO1FBQ2IsT0FBTyxDQUFDLE1BQU0sRUFBRSxRQUFRLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxZQUFZLEVBQUUsYUFBYSxFQUFFLGdCQUFnQixFQUFFLG9CQUFvQixFQUFFLFVBQVUsR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1hcmtldFZhbHVlIC0gdGhpcy5nZXRQdXJjaGFzZVZhbHVlKCk7XG4gIH1cbn1cbiJdfQ==
@@ -1,4 +1,4 @@
1
- import { AbstractModel } from '../abstract-model';
2
- export class VehicleClaim extends AbstractModel {
1
+ import { ObservableModel } from '../observable-model';
2
+ export class VehicleClaim extends ObservableModel {
3
3
  }
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1jbGFpbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvdmVoaWNsZS92ZWhpY2xlLWNsYWltLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUlsRCxNQUFNLE9BQU8sWUFBYSxTQUFRLGFBQWE7Q0FNOUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBVc2VyIH0gZnJvbSAnLi4vdXNlci91c2VyJztcbmltcG9ydCB7IEFic3RyYWN0TW9kZWwgfSBmcm9tICcuLi9hYnN0cmFjdC1tb2RlbCc7XG5pbXBvcnQgeyBTb2xlQnVzaW5lc3MgfSBmcm9tICcuLi9zb2xlL3NvbGUtYnVzaW5lc3MnO1xuaW1wb3J0IHsgVmVoaWNsZUNsYWltRGV0YWlscyB9IGZyb20gJy4vdmVoaWNsZS1jbGFpbS1kZXRhaWxzJztcblxuZXhwb3J0IGNsYXNzIFZlaGljbGVDbGFpbSBleHRlbmRzIEFic3RyYWN0TW9kZWwge1xuICBraWxvbWV0ZXJzPzogbnVtYmVyO1xuICB3b3JrVXNhZ2U/OiBudW1iZXI7XG4gIGRldGFpbHM/OiBWZWhpY2xlQ2xhaW1EZXRhaWxzO1xuICB1c2VyPzogVXNlcjtc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xuICB9XG5cbiAgcHJpdmF0ZSBsaXN0ZW5NYWluQnVzaW5lc3NBY3Rpdml0eUNoYW5nZWQoKSB7XG4gICAgdGhpcy5nZXQoJ21haW5CdXNpbmVzc0FjdGl2aXR5JykudmFsdWVDaGFuZ2VzLnN1YnNjcmliZSgoYWN0aXZpdHk6IFNvbGVCdXNpbmVzc0FjdGl2aXR5KSA9PiB7XG4gICAgICB0aGlzLmdldCgnbWFpbkJ1c2luZXNzTmFtZScpLnNldFZhbHVlKHRoaXMuYnVzaW5lc3NEZXRhaWxzLmJ1c2luZXNzZXMuZmluZEJ5KCdhY3Rpdml0eS5pZCcsIGFjdGl2aXR5LmlkKS5uYW1lKTtcbiAgICB9KVxuICB9XG59XG4iXX0=
@@ -18,6 +18,9 @@ export class TransactionBaseFilterForm extends FormGroup {
18
18
  });
19
19
  }
20
20
  filter(collection) {
21
+ if (!collection.length) {
22
+ return collection;
23
+ }
21
24
  const value = this.value;
22
25
  if (value.dateFrom) {
23
26
  collection = collection.filter(transaction => transaction.date >= value.dateFrom);
@@ -37,4 +40,4 @@ export class TransactionBaseFilterForm extends FormGroup {
37
40
  return collection;
38
41
  }
39
42
  }
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1iYXNlLWZpbHRlci5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHeEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBYTdEL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SBjb2xsZWN0aW9uLmZpbHRlckJ5KCd0YW5rVHlwZScsIHZhbHVlLnRhbmtUeXBlKTtcbiAgICB9XG4gICAgaWYgKHZhbHVlLmJ1c2luZXNzKSB7XG4gICAgICBjb2xsZWN0aW9uID0gY29sbGVjdGlvbi5maWx0ZXJCeSgnYnVzaW5lc3MuaWQnLCB2YWx1ZS5idXNpbmVzcy5pZCk7XG4gICAgfVxuICAgIGlmICh2YWx1ZS5wcm9wZXJ0aWVzKSB7XG4gICAgICBjb2xsZWN0aW9uID0gY29sbGVjdGlvbi5maWx0ZXJCeSgncHJvcGVydHkuaWQnLCB2YWx1ZS5wcm9wZXJ0aWVzLm1hcChwcm9wZXJ0eSA9PiBwcm9wZXJ0eS5pZCkpO1xuICAgIH1cblxuICAgIHJldHVybiBjb2xsZWN0aW9uO1xuICB9XG59XG4iXX0=
@@ -53,13 +53,11 @@ export var AppEventTypeEnum;
53
53
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 47] = "TRANSACTION_DELETED";
54
54
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 48] = "TRANSACTION_UPDATED";
55
55
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 49] = "TRANSACTIONS_CREATED";
56
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 50] = "VEHICLE_CLAIM_UPDATED";
57
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 51] = "VEHICLE_CLAIM_CREATED";
58
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 52] = "VEHICLE_CLAIM_DETAILS_UPDATED";
59
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 53] = "VEHICLE_CLAIM_DETAILS_CREATED";
60
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 54] = "VEHICLE_LOGBOOK_CREATED";
61
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 55] = "VEHICLE_LOGBOOK_UPDATED";
62
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 56] = "VEHICLE_LOGBOOK_DELETED";
63
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 57] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
56
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 50] = "VEHICLE_CLAIM_DETAILS_UPDATED";
57
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 51] = "VEHICLE_CLAIM_DETAILS_CREATED";
58
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 52] = "VEHICLE_LOGBOOK_CREATED";
59
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 53] = "VEHICLE_LOGBOOK_UPDATED";
60
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 54] = "VEHICLE_LOGBOOK_DELETED";
61
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 55] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
64
62
  })(AppEventTypeEnum || (AppEventTypeEnum = {}));
65
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLWV2ZW50LXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvZXZlbnQvYXBwLWV2ZW50LXR5cGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hc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VEFYX1JFVklFV19VUERBVEVELFxuICBUUkFOU0FDVElPTl9BTExPQ0FUSU9OX0NSRUFURUQsXG4gIFRSQU5TQUNUSU9OX0FMTE9DQVRJT05fREVMRVRFRCxcbiAgVFJBTlNBQ1RJT05fQ1JFQVRFRCxcbiAgVFJBTlNBQ1RJT05fREVMRVRFRCxcbiAgVFJBTlNBQ1RJT05fVVBEQVRFRCxcbiAgVFJBTlNBQ1RJT05TX0NSRUFURUQsXG4gIFZFSElDTEVfQ0xBSU1fREVUQUlMU19VUERBVEVELFxuICBWRUhJQ0xFX0NMQUlNX0RFVEFJTFNfQ1JFQVRFRCxcbiAgVkVISUNMRV9MT0dCT09LX0NSRUFURUQsXG4gIFZFSElDTEVfTE9HQk9PS19VUERBVEVELFxuICBWRUhJQ0xFX0xPR0JPT0tfREVMRVRFRCxcbiAgVkVISUNMRV9MT0dCT09LX0JFU1RfUEVSSU9EX1VQREFURURcbn1cbiJdfQ==
@@ -11,7 +11,6 @@ export class VehicleClaimDetails extends VehicleClaimDetailsBase {
11
11
  * Init default values for the new instances
12
12
  */
13
13
  this.isManual = true;
14
- this.method = VehicleClaimDetailsMethodEnum.KMS;
15
14
  this.financialYear = new FinancialYear().year;
16
15
  }
17
16
  isLogbookMethod() {
@@ -24,4 +23,4 @@ export class VehicleClaimDetails extends VehicleClaimDetailsBase {
24
23
  __decorate([
25
24
  Type(() => User)
26
25
  ], VehicleClaimDetails.prototype, "user", void 0);
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1jbGFpbS1kZXRhaWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy92ZWhpY2xlL3ZlaGljbGUtY2xhaW0tZGV0YWlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQ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GUgfSBmcm9tICdjbGFzcy10cmFuc2Zvcm1lcic7XG5pbXBvcnQgeyBVc2VyIH0gZnJvbSAnLi4vdXNlcic7XG5pbXBvcnQgeyBWZWhpY2xlQ2xhaW1EZXRhaWxzTWV0aG9kRW51bSB9IGZyb20gJy4uLy4uL2RiL0VudW1zL3ZlaGljbGUtY2xhaW0tZGV0YWlscy1tZXRob2QuZW51bSc7XG5pbXBvcnQgeyBGaW5hbmNpYWxZZWFyIH0gZnJvbSAnLi4vZmluYW5jaWFsLXllYXInO1xuXG5leHBvcnQgY2xhc3MgVmVoaWNsZUNsYWltRGV0YWlscyBleHRlbmRzIFZlaGljbGVDbGFpbURldGFpbHNCYXNlIHtcbiAgLyoqXG4gICAqIEluaXQgZGVmYXVsdCB2YWx1ZXMgZm9yIHRoZSBuZXcgaW5zdGFuY2VzXG4gICAqL1xuICBpc01hbnVhbCA9IHRydWU7XG4gIG1ldGhvZDogVmVoaWNsZUNsYWltRGV0YWlsc01ldGhvZEVudW07XG4gIGZpbmFuY2lhbFllYXI6IG51bWJlciA9IG5ldyBGaW5hbmNpYWxZZWFyKCkueWVhcjtcblxuICBAVHlwZSgoKSA9PiBVc2VyKVxuICB1c2VyOiBVc2VyO1xuXG4gIGlzTG9nYm9va01ldGhvZCgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5tZXRob2QgPT09IFZlaGljbGVDbGFpbURldGFpbHNNZXRob2RFbnVtLkxPR0JPT0s7XG4gIH1cblxuICBpc0ttc01ldGhvZCgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5tZXRob2QgPT09IFZlaGljbGVDbGFpbURldGFpbHNNZXRob2RFbnVtLktNUztcbiAgfVxufVxuIl19
@@ -141,7 +141,7 @@ export class AccountSetupService {
141
141
  // @TODO Alex: remove map when services start work with collections
142
142
  map((transactions) => new TransactionCollection(transactions)), mergeMap((transactions) => {
143
143
  if (transactions.getVehicleTransactions().length) {
144
- return this.setItemStatus(this.items.findBy('isWorkLogbook', true), this.vehicleClaimService.get());
144
+ return this.setItemStatus(this.items.findBy('isWorkLogbook', true), this.vehicleClaimService.getArray());
145
145
  }
146
146
  return of(null);
147
147
  }));
@@ -165,4 +165,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
165
165
  providedIn: 'root'
166
166
  }]
167
167
  }], ctorParameters: () => [{ type: i1.SetupItemService }, { type: i2.PropertyService }, { type: i2.IncomeSourceService }, { type: i2.BankAccountService }, { type: i2.TransactionAllocationService }, { type: i2.VehicleClaimService }, { type: i2.TransactionService }, { type: i2.SoleBusinessService }, { type: i2.HoldingService }, { type: i2.UserService }, { type: i2.ClientMovementService }, { type: i2.ClientInviteService }, { type: i2.EmployeeService }, { type: i2.EmployeeInviteService }, { type: i2.FirmService }] });
168
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1zZXR1cC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2FjY291bnQtc2V0dXAvYWNjb3VudC1zZXR1cC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFtQjNDLE9BQU8sRUFDTCwwQkFBMEIsRUFHMUIsc0JBQXNCLEVBQ3RCLHFCQUFxQixFQUN0QixNQUFNLG1CQUFtQixDQUFDO0FBQzNCLE9BQU8sRUFBYyxhQUFhLEVBQUUsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3JELE9BQU8sRUFBRSxHQUFHLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDL0MsT0FBTyxZQUFZLE1BQU0scUJBQXFCLENBQUM7QUF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N0aW9ucy5nZXRWZWhpY2xlVHJhbnNhY3Rpb25zKCkubGVuZ3RoKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5zZXRJdGVtU3RhdHVzKFxuICAgICAgICAgICAgICB0aGlzLml0ZW1zLmZpbmRCeSgnaXNXb3JrTG9nYm9vaycsIHRydWUpLFxuICAgICAgICAgICAgICB0aGlzLnZlaGljbGVDbGFpbVNlcnZpY2UuZ2V0QXJyYXkoKVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICByZXR1cm4gb2YobnVsbCk7XG4gICAgICAgIH0pXG4gICAgICApO1xuICB9XG5cbiAgLyoqXG4gICAqIEhpZGUgYmFuayBmZWVkcyBpdGVtIHdoZW4gdXNlciBoYXMgb25seSBob2xkaW5nIHRhbmtcbiAgICovXG4gIHByaXZhdGUgZ2V0QmFua0ZlZWRzSXRlbSgpOiBPYnNlcnZhYmxlPEFjY291bnRTZXR1cEl0ZW0+IHtcbiAgICBjb25zdCBiYW5rRmVlZHNSb2xlcyA9IFtVc2VyUm9sZXNFbnVtLlBST1BFUlRZX1RBTkssIFVzZXJSb2xlc0VudW0uV09SS19UQU5LLCBVc2VyUm9sZXNFbnVtLlNPTEVfVEFOS107XG5cbiAgICBpZiAoIWludGVyc2VjdGlvbihiYW5rRmVlZHNSb2xlcywgdGhpcy51c2VyLnJvbGVzKS5sZW5ndGgpIHtcbiAgICAgIHJldHVybiBvZihudWxsKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcy5zZXRJdGVtU3RhdHVzKFxuICAgICAgdGhpcy5pdGVtcy5maW5kQnkoJ2lzQmFua0ZlZWRzJywgdHJ1ZSksXG4gICAgICB0aGlzLmJhbmtBY2NvdW50c1NlcnZpY2UuZ2V0QXJyYXkoKVxuICAgICk7XG4gIH1cbn1cbiJdfQ==
@@ -5,6 +5,7 @@ import { BankAccountCollection } from '../../../../collections';
5
5
  import { map } from 'rxjs/operators';
6
6
  import { plainToClass } from 'class-transformer';
7
7
  import { BankAccountStatusEnum } from '../../../../db/Enums';
8
+ import { UserRolesEnum } from 'taxtank-core/common';
8
9
  import * as i0 from "@angular/core";
9
10
  import * as i1 from "@angular/common/http";
10
11
  import * as i2 from "../../../event";
@@ -22,6 +23,7 @@ export class BankAccountService extends RestService {
22
23
  this.modelClass = BankAccount;
23
24
  this.collectionClass = BankAccountCollection;
24
25
  this.disabledMethods = ['post', 'putBatch', 'delete', 'deleteBatch'];
26
+ this.roles = [UserRolesEnum.WORK_TANK, UserRolesEnum.PROPERTY_TANK, UserRolesEnum.SOLE_TANK];
25
27
  this.listenEvents();
26
28
  }
27
29
  getActive() {
@@ -81,4 +83,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
81
83
  type: Inject,
82
84
  args: ['environment']
83
85
  }] }] });
84
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9iYW5rL2JhbmstYWNjb3VudC9iYW5rLWFjY291bnQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUduRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsV0FBVyxFQUFFLGNBQWMsRUFBRSxlQUFlLEVBQUUsYUFBYSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDbkgsT0FBTyxFQUFjLFdBQVcsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVyRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNoRSxPQUF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0Jyk7XG5cbiAgICAgICAgICByZXR1cm4gdXBkYXRlZEJhbmtBY2NvdW50O1xuICAgICAgICB9KVxuICAgICAgKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBMaXN0ZW4gdG8gRXZlbnREaXNwYXRjaGVyU2VydmljZSBldmVudHNcbiAgICovXG4gIHByaXZhdGUgbGlzdGVuVG9FdmVudERpc3BhdGNoZXJDaGFuZ2VzKCk6IHZvaWQge1xuICAgIHRoaXMuZXZlbnREaXNwYXRjaGVyU2VydmljZS5vbihbXG4gICAgICBBcHBFdmVudFR5cGVFbnVtLkxPQU5fUEFZT1VUX1VQREFURUQsXG4gICAgICBBcHBFdmVudFR5cGVFbnVtLkJBTktfVFJBTlNBQ1RJT05TX0FEREVEXG4gICAgXSkuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgIHRoaXMucmVmcmVzaENhY2hlKCk7XG4gICAgfSk7XG4gIH1cblxuICAvKipcbiAgICogQFRPRE8gcmVtb3ZlIHdoZW4gVFQtMzgyNiBpcyByZWFkeVxuICAgKiBtYW51YWxDb25uZWN0aW9uIG1vdmVkIHRvIGJhc2lxLCBvbGQgbWFudWFsIGJhbmtBY2NvdW50cyBjbG9zZWQgdG8gbGV0IHVzZXIgYWRkIGF1dG9tYXRlZCBiYW5rQWNjb3VudHMgKGJlY2F1c2UgdGhlcmUgaXMgbm8gcmVsaWFibGUgd2F5IHRvIG1lcmdlKVxuICAgKi9cbiAgcHJpdmF0ZSBsaXN0ZW5Db25uZWN0aW9ucygpOiB2b2lkIHtcbiAgICB0aGlzLnNzZVNlcnZpY2Uub24oYGJhbmtDb25uZWN0aW9uc2ApLnN1YnNjcmliZSgoY29ubmVjdGlvbjogQmFua0Nvbm5lY3Rpb25CYXNlKTogdm9pZCA9PiB7XG4gICAgICB0aGlzLnJlZnJlc2hDYWNoZSgpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -1,7 +1,7 @@
1
1
  import { Inject, Injectable } from '@angular/core';
2
2
  import { map } from 'rxjs/operators';
3
3
  import { RestService } from '../rest';
4
- import { AppEventTypeEnum, BankAccount, Depreciation, FinancialYear, Loan } from '../../../models';
4
+ import { AppEventTypeEnum, BankAccount, Depreciation, FinancialYear, Loan, VehicleClaim } from '../../../models';
5
5
  import { DepreciationCollection } from '../../../collections';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "@angular/common/http";
@@ -61,9 +61,8 @@ export class DepreciationService extends RestService {
61
61
  * Listen to EventDispatcherService event related to updated vehicle claim
62
62
  */
63
63
  listenVehicleClaimChanges() {
64
+ this.eventDispatcherService.on2(...VehicleClaim.getEventNames('post', 'put')).subscribe(() => this.refreshCache());
64
65
  this.eventDispatcherService.on([
65
- AppEventTypeEnum.VEHICLE_CLAIM_CREATED,
66
- AppEventTypeEnum.VEHICLE_CLAIM_UPDATED,
67
66
  AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED
68
67
  ]).subscribe(() => {
69
68
  this.refreshCache();
@@ -103,4 +102,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
103
102
  type: Inject,
104
103
  args: ['environment']
105
104
  }] }] });
106
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjaWF0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9kZXByZWNpYXRpb24vZGVwcmVjaWF0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHbkQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JDLE9BQU8sRUFBYyx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wRXZlbnRUeXBlRW51bS5QUk9QRVJUWV9ERVBSRUNJQVRJT05fQ0FMQ1VMQVRJT05fVVBEQVRFRCkuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgIHRoaXMucmVmcmVzaENhY2hlKCk7XG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIGxpc3RlblRyYW5zYWN0aW9ucygpOiB2b2lkIHtcbiAgICAvLyBAVE9ETyByZXNldCBjYWNoZSBvbmx5IHdoZW4gcmVxdWlyZWQgKHRyYW5zYWN0aW9uIGhhcyBkZXByZWNpYXRpb24pXG4gICAgdGhpcy5ldmVudERpc3BhdGNoZXJTZXJ2aWNlLm9uKEFwcEV2ZW50VHlwZUVudW0uVFJBTlNBQ1RJT05fREVMRVRFRCkuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgIHRoaXMucmVmcmVzaENhY2hlKCk7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
@@ -1,17 +1,23 @@
1
- import { Injectable } from '@angular/core';
2
- import { PropertyCategoryMovement } from '../../../../models';
1
+ import { Inject, Injectable } from '@angular/core';
2
+ import { Property, PropertyCategoryMovement } from '../../../../models';
3
3
  import { RestService } from '../../rest';
4
4
  import { PropertyCategoryMovementCollection } from '../../../../collections';
5
5
  import * as i0 from "@angular/core";
6
6
  export class PropertyCategoryMovementService extends RestService {
7
- constructor() {
8
- super(...arguments);
7
+ constructor(environment) {
8
+ super(environment);
9
+ this.environment = environment;
9
10
  this.modelClass = PropertyCategoryMovement;
10
11
  this.collectionClass = PropertyCategoryMovementCollection;
11
12
  this.endpointUri = 'property-category-movements';
12
13
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
14
+ this.listenEvents();
13
15
  }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
16
+ listenEvents() {
17
+ // property created together with categories, we need to update the list
18
+ this.listenCSE(Property, this.refreshCache, ['post']);
19
+ }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertyCategoryMovementService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
15
21
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' }); }
16
22
  }
17
23
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
@@ -19,5 +25,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
19
25
  args: [{
20
26
  providedIn: 'root'
21
27
  }]
22
- }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktY2F0ZWdvcnktbW92ZW1lbnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL3Byb3BlcnR5L3Byb3BlcnR5LWNhdGVnb3J5LW1vdmVtZW50L3Byb3BlcnR5LWNhdGVnb3J5LW1vdmVtZW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUU5RCxPQUFPLEVBQWMsV0FBVyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3JELE9BQU8sRUFBRSxrQ0FBa0MsRUFBRSxNQUFNLHlCQUF5QixDQUFDOztBQUs3RSxNQUFNLE9B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cGVydHlDYXRlZ29yeU1vdmVtZW50LCBQcm9wZXJ0eUNhdGVnb3J5TW92ZW1lbnRDb2xsZWN0aW9uPiB7XG4gIG1vZGVsQ2xhc3M6IHR5cGVvZiBQcm9wZXJ0eUNhdGVnb3J5TW92ZW1lbnQgPSBQcm9wZXJ0eUNhdGVnb3J5TW92ZW1lbnQ7XG4gIGNvbGxlY3Rpb25DbGFzczogdHlwZW9mIFByb3BlcnR5Q2F0ZWdvcnlNb3ZlbWVudENvbGxlY3Rpb24gPSBQcm9wZXJ0eUNhdGVnb3J5TW92ZW1lbnRDb2xsZWN0aW9uO1xuICBlbmRwb2ludFVyaSA9ICdwcm9wZXJ0eS1jYXRlZ29yeS1tb3ZlbWVudHMnO1xuICBkaXNhYmxlZE1ldGhvZHM6IFJlc3RNZXRob2RbXSA9IFsncG9zdEJhdGNoJywgJ3B1dEJhdGNoJywgJ2RlbGV0ZUJhdGNoJ107XG59XG4iXX0=
28
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
29
+ type: Inject,
30
+ args: ['environment']
31
+ }] }] });
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktY2F0ZWdvcnktbW92ZW1lbnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL3Byb3BlcnR5L3Byb3BlcnR5LWNhdGVnb3J5LW1vdmVtZW50L3Byb3BlcnR5LWNhdGVnb3J5LW1vdmVtZW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLFFBQVEsRUFBRSx3QkFBd0IsRUFBaUIsTU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1ldGhvZHM6IFJlc3RNZXRob2RbXSA9IFsncG9zdEJhdGNoJywgJ3B1dEJhdGNoJywgJ2RlbGV0ZUJhdGNoJ107XG5cbiAgY29uc3RydWN0b3IoQEluamVjdCgnZW52aXJvbm1lbnQnKSBwcm90ZWN0ZWQgZW52aXJvbm1lbnQ6IGFueSkge1xuICAgIHN1cGVyKGVudmlyb25tZW50KTtcbiAgICB0aGlzLmxpc3RlbkV2ZW50cygpO1xuICB9XG5cbiAgbGlzdGVuRXZlbnRzKCk6IHZvaWQge1xuICAgIC8vIHByb3BlcnR5IGNyZWF0ZWQgdG9nZXRoZXIgd2l0aCBjYXRlZ29yaWVzLCB3ZSBuZWVkIHRvIHVwZGF0ZSB0aGUgbGlzdFxuICAgIHRoaXMubGlzdGVuQ1NFKFByb3BlcnR5LCB0aGlzLnJlZnJlc2hDYWNoZSwgWydwb3N0J10pO1xuICB9XG59XG4iXX0=
@@ -4,6 +4,7 @@ import { RestService } from '../../rest';
4
4
  import { PropertyShareCollection } from '../../../../collections';
5
5
  import { PropertyShareStatusEnum } from '../../../../db/Enums/property/property-share-status.enum';
6
6
  import clone from 'lodash/clone';
7
+ import { UserRolesEnum } from 'taxtank-core/common';
7
8
  import * as i0 from "@angular/core";
8
9
  // @TODO check and improve logic during refactoring
9
10
  export class PropertyShareService extends RestService {
@@ -15,6 +16,7 @@ export class PropertyShareService extends RestService {
15
16
  this.modelClass = PropertyShare;
16
17
  this.collectionClass = PropertyShareCollection;
17
18
  this.disabledMethods = ['deleteBatch', 'putBatch', 'postBatch'];
19
+ this.roles = [UserRolesEnum.PROPERTY_TANK];
18
20
  this.listenEvents();
19
21
  }
20
22
  /**
@@ -63,4 +65,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
63
65
  type: Inject,
64
66
  args: ['environment']
65
67
  }] }] });
66
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktc2h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LmFzc2lnbihjbG9uZShzaGFyZSksIHsgc3RhdHVzOiBQcm9wZXJ0eVNoYXJlU3RhdHVzRW51bS5SRUpFQ1RFRCB9KVxuICAgICk7XG4gIH1cblxuICAvKipcbiAgICogUmUtaW52aXRlIHByb3BlcnR5IHNoYXJlXG4gICAqIEBwYXJhbSBzaGFyZSB1c2VyIHRvIHNoYXJlIHByb3BlcnR5XG4gICAqL1xuICByZWludml0ZShzaGFyZTogUHJvcGVydHlTaGFyZSk6IE9ic2VydmFibGU8b2JqZWN0PiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5wb3N0KGAke3RoaXMuYXBpVXJsfS8ke3NoYXJlLmlkfS9yZWludml0ZWAsIHt9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiBMaXN0ZW4gdG8gVXNlciB1cGRhdGVkIGV2ZW50XG4gICAqL1xuICBwcml2YXRlIGxpc3RlblVzZXJVcGRhdGVkKCk6IHZvaWQge1xuICAgIHRoaXMuZXZlbnREaXNwYXRjaGVyU2VydmljZS5vbjIoVXNlci5nZXRFdmVudE5hbWUoJ3B1dCcpKS5zdWJzY3JpYmUoKCk6IHZvaWQgPT4ge1xuICAgICAgdGhpcy5yZWZyZXNoQ2FjaGUoKTtcbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAVG9kbyBBbGV4IHJlZmFjdG9yIGFmdGVyIFByb3BlcnR5U2hhcmUgZnVuY3Rpb25hbGl0eSBpbiBQcm9wZXJ0eVNlcnZpY2Ugd2lsbCBiZSBjbGVhcmVkIHVwXG4gICAqL1xuICBwcml2YXRlIGxpc3RlblNhbGVzQ2hhbmdlcygpOiB2b2lkIHtcbiAgICB0aGlzLmxpc3RlbkNTRShQcm9wZXJ0eVNhbGUsIHRoaXMucmVmcmVzaENhY2hlLCBbJ3Bvc3QnLCAnZGVsZXRlJ10pO1xuICB9XG59XG4iXX0=
@@ -1,34 +1,34 @@
1
1
  import { Inject, Injectable } from '@angular/core';
2
- import { RestService } from '../../rest/rest-old.service';
2
+ import { RestService } from '../../rest';
3
3
  import { SoleInvoice } from '../../../../models';
4
4
  import last from 'lodash/last';
5
5
  import { UserRolesEnum } from 'taxtank-core/common';
6
+ import { SoleInvoiceCollection } from '../../../../collections';
6
7
  import * as i0 from "@angular/core";
7
8
  export class SoleInvoiceService extends RestService {
8
9
  constructor(environment) {
9
10
  super(environment);
10
11
  this.environment = environment;
12
+ this.endpointUri = 'sole-invoices';
11
13
  this.modelClass = SoleInvoice;
12
- this.url = 'sole-invoices';
14
+ this.collectionClass = SoleInvoiceCollection;
13
15
  this.roles = [UserRolesEnum.SOLE_TANK];
14
16
  }
15
17
  updateStatus(invoice, status) {
16
18
  // @TODO use id only to avoid unexpected changes
17
- return this.update(Object.assign({}, invoice, { status }));
19
+ return this.put(Object.assign({}, invoice, { status }));
18
20
  }
19
21
  send(invoice, file) {
20
22
  const formData = new FormData();
21
23
  formData.append('file', file);
22
- return this.http.post(`${this.environment.apiV2}/${this.url}/${invoice.id}/send`, formData);
24
+ return this.http.post(`${this.environment.apiV2}/${this.endpointUri}/${invoice.id}/send`, formData);
23
25
  }
24
26
  /**
25
- * @TODO use backend
26
- * Return the next number from the last invoice.
27
- * Basically needed to create a new invoice to show its number when the invoice has not yet been sent to the backend
27
+ * Return the next number from the last invoice
28
28
  */
29
29
  getNewInvoiceNumber() {
30
30
  if (!this.cache) {
31
- return 0;
31
+ return 1;
32
32
  }
33
33
  const number = last(this.cache)?.number ?? 0;
34
34
  return number + 1;
@@ -45,4 +45,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
45
45
  type: Inject,
46
46
  args: ['environment']
47
47
  }] }] });
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm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