taxtank-core 0.32.126 → 0.32.128
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/db/Models/incomeSource/income-source-forecast.mjs +1 -1
- package/esm2022/lib/db/Models/incomeSource/salary-forecast.mjs +1 -1
- package/esm2022/lib/db/Models/property/property-forecast.mjs +1 -1
- package/esm2022/lib/db/Models/sole/sole-business-loss.mjs +1 -1
- package/esm2022/lib/db/Models/sole/sole-forecast.mjs +1 -1
- package/esm2022/lib/db/Models/vehicle/vehicle-claim-details.mjs +1 -1
- package/esm2022/lib/models/client/capital-loss.interface.mjs +1 -1
- package/esm2022/lib/models/client/capital-loss.mjs +1 -5
- package/esm2022/lib/models/income-source/salary-forecast.mjs +1 -5
- package/esm2022/lib/models/income-source/sole-forecast.mjs +1 -5
- package/esm2022/lib/models/property/property-forecast.mjs +2 -6
- package/esm2022/lib/models/property/property.mjs +4 -2
- package/esm2022/lib/models/sole/sole-business-loss.mjs +1 -5
- package/fesm2022/taxtank-core.mjs +1079 -1093
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/db/Models/incomeSource/income-source-forecast.d.ts +1 -1
- package/lib/db/Models/incomeSource/salary-forecast.d.ts +1 -2
- package/lib/db/Models/property/property-forecast.d.ts +1 -2
- package/lib/db/Models/sole/sole-business-loss.d.ts +1 -2
- package/lib/db/Models/sole/sole-forecast.d.ts +1 -2
- package/lib/db/Models/vehicle/vehicle-claim-details.d.ts +1 -1
- package/lib/models/client/capital-loss.d.ts +0 -2
- package/lib/models/client/capital-loss.interface.d.ts +1 -1
- package/lib/models/income-source/salary-forecast.d.ts +0 -2
- package/lib/models/income-source/sole-forecast.d.ts +0 -2
- package/lib/models/property/property-forecast.d.ts +0 -2
- package/lib/models/sole/sole-business-loss.d.ts +0 -2
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IncomeSourceForecastTrustTypeEnum } from '../../Enums/income-source
|
1
|
+
import { IncomeSourceForecastTrustTypeEnum } from '../../Enums/income-source';
|
2
2
|
import { IncomeSource } from './income-source';
|
3
3
|
import { IncomeSourceType } from './income-source-type';
|
4
4
|
import { AbstractModel } from '../abstract-model';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { SalaryForecastFrequencyEnum } from '../../Enums/salary-forecast-frequency.enum';
|
2
2
|
import { IncomeSource } from './income-source';
|
3
3
|
import { AbstractModel } from '../abstract-model';
|
4
|
-
import { User } from '../user/user';
|
5
4
|
export declare class SalaryForecast extends AbstractModel {
|
6
5
|
financialYear?: number;
|
7
6
|
paygIncome?: number;
|
@@ -13,5 +12,5 @@ export declare class SalaryForecast extends AbstractModel {
|
|
13
12
|
createdAt?: Date;
|
14
13
|
updatedAt?: Date;
|
15
14
|
incomeSource?: IncomeSource;
|
16
|
-
|
15
|
+
isManual?: boolean;
|
17
16
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Property } from './property';
|
2
2
|
import { AbstractModel } from '../abstract-model';
|
3
|
-
import { User } from '../user/user';
|
4
3
|
export declare class PropertyForecast extends AbstractModel {
|
5
4
|
financialYear?: number;
|
6
5
|
marketValue?: number;
|
@@ -13,5 +12,5 @@ export declare class PropertyForecast extends AbstractModel {
|
|
13
12
|
updatedAt?: Date;
|
14
13
|
property?: Property;
|
15
14
|
claimPercent?: number;
|
16
|
-
|
15
|
+
isManual?: boolean;
|
17
16
|
}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { SoleBusiness } from './sole-business';
|
2
2
|
import { SoleBusinessLossOffsetRule } from './sole-business-loss-offset-rule';
|
3
3
|
import { AbstractModel } from '../abstract-model';
|
4
|
-
import { User } from '../user/user';
|
5
4
|
export declare class SoleBusinessLoss extends AbstractModel {
|
6
5
|
openBalance?: number;
|
7
6
|
financialYear?: number;
|
8
7
|
business?: SoleBusiness;
|
9
8
|
offsetRule?: SoleBusinessLossOffsetRule;
|
10
|
-
|
9
|
+
isManual?: boolean;
|
11
10
|
}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { IncomeSource } from '../incomeSource/income-source';
|
2
2
|
import { AbstractModel } from '../abstract-model';
|
3
|
-
import { User } from '../user/user';
|
4
3
|
export declare class SoleForecast extends AbstractModel {
|
5
4
|
financialYear?: number;
|
6
5
|
amount?: number;
|
7
6
|
taxInstalments?: number;
|
8
7
|
incomeSource?: IncomeSource;
|
9
|
-
|
8
|
+
isManual?: boolean;
|
10
9
|
}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { CapitalLossInterface } from './capital-loss.interface';
|
2
2
|
import { ClientDetails } from './client-details';
|
3
3
|
import { AbstractModel } from '../../db/Models';
|
4
|
-
import { User } from '../user';
|
5
4
|
export declare class CapitalLoss extends AbstractModel implements CapitalLossInterface {
|
6
5
|
clientDetails: ClientDetails;
|
7
|
-
updatedBy: User;
|
8
6
|
financialYear: number;
|
9
7
|
balance: number;
|
10
8
|
isManual: boolean;
|
@@ -1,13 +1,11 @@
|
|
1
1
|
import { SalaryForecast as SalaryForecastBase } from '../../db/Models/incomeSource/salary-forecast';
|
2
2
|
import { IncomeSource } from './income-source';
|
3
3
|
import { IIncomeSourceForecast } from '../../interfaces';
|
4
|
-
import { User } from '../user';
|
5
4
|
export declare class SalaryForecast extends SalaryForecastBase implements IIncomeSourceForecast {
|
6
5
|
tax: number;
|
7
6
|
netPay: number;
|
8
7
|
get grossAmount(): number;
|
9
8
|
incomeSource: IncomeSource;
|
10
|
-
updatedBy: User;
|
11
9
|
get taxWithheld(): number;
|
12
10
|
get monthlyAmount(): number;
|
13
11
|
}
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import { IncomeSource } from './income-source';
|
2
2
|
import { SoleForecast as SoleForecastBase } from '../../db/Models/sole/sole-forecast';
|
3
3
|
import { IIncomeSourceForecast } from '../../interfaces';
|
4
|
-
import { User } from '../user';
|
5
4
|
export declare class SoleForecast extends SoleForecastBase implements IIncomeSourceForecast {
|
6
5
|
incomeSource: IncomeSource;
|
7
|
-
updatedBy: User;
|
8
6
|
get netPay(): number;
|
9
7
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PropertyForecast as PropertyForecastBase } from '../../db/Models/property/property-forecast';
|
2
|
-
import { User } from '../user';
|
3
2
|
export declare class PropertyForecast extends PropertyForecastBase {
|
4
3
|
income: number;
|
5
4
|
expense: number;
|
@@ -7,7 +6,6 @@ export declare class PropertyForecast extends PropertyForecastBase {
|
|
7
6
|
depreciation: number;
|
8
7
|
loanBalance: number;
|
9
8
|
marketValue: number;
|
10
|
-
updatedBy: User;
|
11
9
|
financialYear: number;
|
12
10
|
/**
|
13
11
|
* Get cash position
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { SoleBusinessLoss as SoleBusinessLossBase } from '../../db/Models/sole/sole-business-loss';
|
2
2
|
import { SoleBusiness } from './sole-business';
|
3
3
|
import { SoleBusinessLossOffsetRule } from './sole-business-loss-offset-rule';
|
4
|
-
import { User } from '../user';
|
5
4
|
/**
|
6
5
|
* If a sole trader business makes a tax loss in a current year, you can generally carry forward that loss and offset profit in future years.
|
7
6
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4641357930/Rules+when+a+business+makes+a+loss+Tax+Summary#Offsetting-current-year-business-losses
|
@@ -9,7 +8,6 @@ import { User } from '../user';
|
|
9
8
|
export declare class SoleBusinessLoss extends SoleBusinessLossBase {
|
10
9
|
business: SoleBusiness;
|
11
10
|
offsetRule: SoleBusinessLossOffsetRule;
|
12
|
-
updatedBy: User;
|
13
11
|
openBalance: number;
|
14
12
|
financialYear: number;
|
15
13
|
get hasOffset(): boolean;
|