taxtank-core 0.33.48 → 0.33.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. package/esm2022/src/lib/collections/sole/sole-invoice.collection.mjs +4 -2
  2. package/esm2022/src/lib/collections/vehicle/best-vehicle-logbook.collection.mjs +6 -2
  3. package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +2 -2
  4. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +2 -2
  5. package/esm2022/src/lib/forms/home-office/home-office-calculator.form.mjs +9 -5
  6. package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +4 -8
  7. package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +1 -1
  8. package/esm2022/src/lib/models/home-office/home-office-claim.mjs +7 -7
  9. package/esm2022/src/lib/models/home-office/home-office-log.mjs +4 -3
  10. package/esm2022/src/lib/models/report/vehicle-expense/vehicle-expense.mjs +1 -1
  11. package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +3 -3
  12. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +8 -2
  13. package/fesm2022/taxtank-core.mjs +35 -23
  14. package/fesm2022/taxtank-core.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/src/lib/collections/vehicle/best-vehicle-logbook.collection.d.ts +1 -0
  17. package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +1 -1
  18. package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +1 -1
  19. package/src/lib/models/home-office/home-office-claim.d.ts +2 -2
  20. package/src/lib/models/home-office/home-office-claim.interface.d.ts +3 -2
  21. package/src/lib/models/home-office/home-office-log.d.ts +3 -2
  22. package/src/lib/services/http/home-office/home-office-log.service.d.ts +3 -3
  23. package/src/lib/services/http/transaction/transaction.service.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.48",
3
+ "version": "0.33.51",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -22,6 +22,7 @@ export declare class BestVehicleLogbookCollection extends VehicleLogbookCollecti
22
22
  private constructor();
23
23
  /**
24
24
  * Best period may be calculated only when user has logbooks minimum for VehicleLogbook.bestPeriodWeeks
25
+ * and has at least one work/business trip
25
26
  */
26
27
  static isBestPeriodExist(logbooks: VehicleLogbookCollection): boolean;
27
28
  static getPeriods(logbooks: VehicleLogbookCollection): DateRange[];
@@ -37,7 +37,7 @@ export declare enum BusinessChartAccountsEnum {
37
37
  ELECTRICITY_AND_GAS = 892,
38
38
  HOME_OFFICE_CLEANING = 893,
39
39
  INTERNET = 705,
40
- TELEPHONE = 11860,
40
+ TELEPHONE = 11862,
41
41
  MOBILE_PHONE = 719,
42
42
  HOME_OFFICE_RENT = 889,
43
43
  HOME_OFFICE_LOAN = 890,
@@ -55,5 +55,5 @@ export declare enum ChartAccountsListEnum {
55
55
  INTERNET = 94,
56
56
  ELECTRICITY_AND_GAS = 234,
57
57
  TELEPHONE = 255,
58
- HOME_OFFICE_CLEANING = 11861
58
+ HOME_OFFICE_CLEANING = 11871
59
59
  }
@@ -10,16 +10,16 @@ export declare class HomeOfficeClaim extends ObservableModel implements HomeOffi
10
10
  user: User;
11
11
  method: HomeOfficeClaimMethodEnum;
12
12
  financialYear: number;
13
- hours?: number;
14
13
  electricityAndGas?: number;
15
14
  cleaning?: number;
16
15
  internet?: number;
17
16
  telephone?: number;
18
17
  mobile?: number;
19
- officePercent?: number;
18
+ occupancyPercent?: number;
20
19
  homeArea?: number;
21
20
  officeArea?: number;
22
21
  dedicatedOffice?: boolean;
22
+ workUsage?: number;
23
23
  business?: SoleBusiness;
24
24
  getChartAccountsList(): typeof ChartAccountsListEnum | typeof BusinessChartAccountsEnum;
25
25
  getChartAccountsClaims(): Dictionary<number>;
@@ -6,15 +6,16 @@ export interface HomeOfficeClaimInterface {
6
6
  user: User;
7
7
  method: HomeOfficeClaimMethodEnum;
8
8
  financialYear: number;
9
- hours?: number;
10
9
  electricityAndGas?: number;
11
10
  cleaning?: number;
12
11
  internet?: number;
13
12
  telephone?: number;
14
13
  mobile?: number;
15
- officePercent?: number;
14
+ occupancyPercent?: number;
15
+ workPercent?: number;
16
16
  homeArea?: number;
17
17
  officeArea?: number;
18
18
  dedicatedOffice?: boolean;
19
+ workUsage?: number;
19
20
  business?: SoleBusiness;
20
21
  }
@@ -1,8 +1,9 @@
1
1
  import { HomeOfficeClaim } from './home-office-claim';
2
2
  import { SoleBusiness } from '../sole';
3
- import { AbstractModel } from '../../db/Models';
3
+ import { ObservableModel } from '../../db/Models';
4
4
  import { HomeOfficeLogInterface } from './home-office-log.interface';
5
- export declare class HomeOfficeLog extends AbstractModel implements HomeOfficeLogInterface {
5
+ export declare class HomeOfficeLog extends ObservableModel implements HomeOfficeLogInterface {
6
+ static className: string;
6
7
  claim: HomeOfficeClaim;
7
8
  date: Date;
8
9
  hours: number;
@@ -1,11 +1,11 @@
1
1
  import { RestMethod, RestService } from '../rest';
2
2
  import { Collection } from '../../../collections';
3
- import { HomeOfficeClaim, HomeOfficeLog, HomeOfficeLogInterface } from '../../../models';
3
+ import { HomeOfficeLog, HomeOfficeLogInterface } from '../../../models';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class HomeOfficeLogService extends RestService<HomeOfficeLogInterface, HomeOfficeLog, Collection<HomeOfficeLog>> {
6
6
  protected endpointUri: string;
7
- modelClass: typeof HomeOfficeClaim;
8
- collectionClass: typeof Collection<HomeOfficeClaim>;
7
+ modelClass: typeof HomeOfficeLog;
8
+ collectionClass: typeof Collection<HomeOfficeLog>;
9
9
  disabledMethods: RestMethod[];
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<HomeOfficeLogService, never>;
11
11
  static ɵprov: i0.ɵɵInjectableDeclaration<HomeOfficeLogService>;
@@ -73,6 +73,7 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
73
73
  private listenDepreciationChange;
74
74
  private listenVehicleClaimChanges;
75
75
  private listenHomeOfficeClaim;
76
+ private listenHomeOfficeLog;
76
77
  /**
77
78
  * property forecast includes claimPercent which affects property related expenses
78
79
  * @TODO Alex move to forecast api instead of property