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.
- package/esm2022/src/lib/collections/sole/sole-invoice.collection.mjs +4 -2
- package/esm2022/src/lib/collections/vehicle/best-vehicle-logbook.collection.mjs +6 -2
- package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +2 -2
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +2 -2
- package/esm2022/src/lib/forms/home-office/home-office-calculator.form.mjs +9 -5
- package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +4 -8
- package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +1 -1
- package/esm2022/src/lib/models/home-office/home-office-claim.mjs +7 -7
- package/esm2022/src/lib/models/home-office/home-office-log.mjs +4 -3
- package/esm2022/src/lib/models/report/vehicle-expense/vehicle-expense.mjs +1 -1
- package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +3 -3
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +8 -2
- package/fesm2022/taxtank-core.mjs +35 -23
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/vehicle/best-vehicle-logbook.collection.d.ts +1 -0
- package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +1 -1
- package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +1 -1
- package/src/lib/models/home-office/home-office-claim.d.ts +2 -2
- package/src/lib/models/home-office/home-office-claim.interface.d.ts +3 -2
- package/src/lib/models/home-office/home-office-log.d.ts +3 -2
- package/src/lib/services/http/home-office/home-office-log.service.d.ts +3 -3
- package/src/lib/services/http/transaction/transaction.service.d.ts +1 -0
package/package.json
CHANGED
@@ -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[];
|
@@ -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
|
-
|
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
|
-
|
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 {
|
3
|
+
import { ObservableModel } from '../../db/Models';
|
4
4
|
import { HomeOfficeLogInterface } from './home-office-log.interface';
|
5
|
-
export declare class HomeOfficeLog extends
|
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 {
|
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
|
8
|
-
collectionClass: typeof Collection<
|
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
|