taxtank-core 0.31.52 → 0.31.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/collections/holding/holding-sale.collection.mjs +2 -2
- package/esm2020/lib/collections/report/vehicle-expense/vehicle-expense.collection.mjs +6 -6
- package/esm2020/lib/db/Models/abstract-model.mjs +5 -1
- package/esm2020/lib/models/holding/holding-sale.mjs +7 -1
- package/esm2020/lib/models/holding/holding-type.mjs +4 -1
- package/esm2020/lib/models/holding/holding.mjs +4 -1
- package/fesm2015/taxtank-core.mjs +23 -7
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +22 -7
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts +1 -2
- package/lib/db/Models/abstract-model.d.ts +1 -0
- package/lib/models/holding/holding-sale.d.ts +8 -1
- package/lib/models/holding/holding-type.d.ts +6 -1
- package/lib/models/holding/holding.d.ts +6 -1
- package/package.json +1 -1
|
@@ -2,8 +2,7 @@ import { Collection } from '../../collection';
|
|
|
2
2
|
import { VehicleExpense } from '../../../models/report';
|
|
3
3
|
import { TransactionCollection } from '../../transaction';
|
|
4
4
|
import { DepreciationCollection } from '../../depreciation.collection';
|
|
5
|
-
import { VehicleClaim } from '../../../models';
|
|
6
5
|
export declare class VehicleExpenseCollection extends Collection<VehicleExpense> {
|
|
7
|
-
constructor(transactions: TransactionCollection, depreciations: DepreciationCollection
|
|
6
|
+
constructor(transactions: TransactionCollection, depreciations: DepreciationCollection);
|
|
8
7
|
private setItems;
|
|
9
8
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Holding } from './holding';
|
|
2
2
|
import { AppFile } from '../file';
|
|
3
3
|
import { AssetSale } from '../asset-sale';
|
|
4
|
-
|
|
4
|
+
import { MpTrackableInterface } from '../../interfaces';
|
|
5
|
+
import { HoldingType } from './holding-type';
|
|
6
|
+
export declare class HoldingSale extends AssetSale implements MpTrackableInterface {
|
|
5
7
|
quantity: number;
|
|
6
8
|
price: number;
|
|
7
9
|
fee: number;
|
|
@@ -12,6 +14,7 @@ export declare class HoldingSale extends AssetSale {
|
|
|
12
14
|
* netCapitalGain is different from grossCapitalGain only when 1 year rule applied
|
|
13
15
|
*/
|
|
14
16
|
isOneYearExemptionApplicable(): boolean;
|
|
17
|
+
get concession(): string;
|
|
15
18
|
getCostBase(holding: Holding): number;
|
|
16
19
|
/**
|
|
17
20
|
* Purchase price of sold items
|
|
@@ -19,4 +22,8 @@ export declare class HoldingSale extends AssetSale {
|
|
|
19
22
|
getPurchasePrice(holding: Holding): number;
|
|
20
23
|
get netCost(): number;
|
|
21
24
|
get cost(): number;
|
|
25
|
+
getMpData(type: HoldingType): {
|
|
26
|
+
holding: string;
|
|
27
|
+
concession: string;
|
|
28
|
+
};
|
|
22
29
|
}
|
|
@@ -3,7 +3,8 @@ import { User } from '../user';
|
|
|
3
3
|
import { AbstractModel } from '../../db/Models';
|
|
4
4
|
import { HoldingTypeExchange } from './holding-type-exchange';
|
|
5
5
|
import { AppFile } from '../file';
|
|
6
|
-
|
|
6
|
+
import { MpTrackableInterface } from '../../interfaces';
|
|
7
|
+
export declare class HoldingType extends AbstractModel implements MpTrackableInterface {
|
|
7
8
|
category?: HoldingTypeCategoryEnum;
|
|
8
9
|
name?: string;
|
|
9
10
|
ticker?: string;
|
|
@@ -38,4 +39,8 @@ export declare class HoldingType extends AbstractModel {
|
|
|
38
39
|
isOther(): boolean;
|
|
39
40
|
isShare(): boolean;
|
|
40
41
|
isCrypto(): boolean;
|
|
42
|
+
getMpData(): {
|
|
43
|
+
category: string;
|
|
44
|
+
name: string;
|
|
45
|
+
};
|
|
41
46
|
}
|
|
@@ -5,7 +5,8 @@ import { HoldingSale } from './holding-sale';
|
|
|
5
5
|
import { Collection } from '../../collections';
|
|
6
6
|
import { AbstractModel } from '../../db/Models';
|
|
7
7
|
import { HoldingTypeCategoryEnum } from '../../db/Enums';
|
|
8
|
-
|
|
8
|
+
import { MpTrackableInterface } from '../../interfaces';
|
|
9
|
+
export declare class Holding extends AbstractModel implements MpTrackableInterface {
|
|
9
10
|
isTaxFree: boolean;
|
|
10
11
|
quantity: number;
|
|
11
12
|
currentQuantity: number;
|
|
@@ -38,4 +39,8 @@ export declare class Holding extends AbstractModel {
|
|
|
38
39
|
get growthCoefficient(): number;
|
|
39
40
|
heldMoreYear(): boolean;
|
|
40
41
|
isSold(): boolean;
|
|
42
|
+
getMpData(): {
|
|
43
|
+
type: string;
|
|
44
|
+
date: string;
|
|
45
|
+
};
|
|
41
46
|
}
|