taxtank-core 0.30.52 → 0.30.54
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 +21 -23
- package/esm2020/lib/collections/holding/holding.collection.mjs +32 -37
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-category.enum.mjs +1 -2
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-holding-untaxed-income-list.enum.mjs +11 -0
- package/esm2020/lib/db/Enums/chart-accounts/index.mjs +2 -1
- package/esm2020/lib/models/chart-accounts/chart-accounts-categories.const.mjs +1 -2
- package/esm2020/lib/models/holding/holding.mjs +6 -6
- package/esm2020/lib/services/http/holding/holding-messages.enum.mjs +2 -1
- package/fesm2015/taxtank-core.mjs +46 -41
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +62 -59
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/holding/holding-sale.collection.d.ts +3 -4
- package/lib/collections/holding/holding.collection.d.ts +5 -6
- package/lib/db/Enums/chart-accounts/chart-accounts-category.enum.d.ts +1 -2
- package/lib/db/Enums/chart-accounts/chart-accounts-holding-untaxed-income-list.enum.d.ts +9 -0
- package/lib/db/Enums/chart-accounts/index.d.ts +1 -0
- package/lib/models/holding/holding.d.ts +2 -2
- package/lib/services/http/holding/holding-messages.enum.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Dictionary, Holding, HoldingSale
|
|
2
|
-
import { ExportableCollection } from
|
|
3
|
-
import { ExportCell } from
|
|
1
|
+
import { Dictionary, Holding, HoldingSale } from '../../models';
|
|
2
|
+
import { ExportableCollection } from '../exportable.collection';
|
|
3
|
+
import { ExportCell } from '../../models/export/export-cell';
|
|
4
4
|
export declare class HoldingSaleCollection extends ExportableCollection<HoldingSale> {
|
|
5
|
-
holdingTypesById: Dictionary<HoldingType>;
|
|
6
5
|
holdingsById: Dictionary<Holding>;
|
|
7
6
|
/**
|
|
8
7
|
* @TODO vik remove?
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ExportableCollection } from
|
|
2
|
-
import {
|
|
3
|
-
import { ExportCell } from
|
|
1
|
+
import { ExportableCollection } from '../exportable.collection';
|
|
2
|
+
import { Holding } from '../../models';
|
|
3
|
+
import { ExportCell } from '../../models/export/export-cell';
|
|
4
4
|
export declare class HoldingCollection extends ExportableCollection<Holding> {
|
|
5
|
-
holdingTypesById: Dictionary<HoldingType>;
|
|
6
5
|
getExportHeader(): string[];
|
|
7
6
|
getExportFooter(): ExportCell[];
|
|
8
7
|
getExportBody(): ExportCell[][];
|
|
@@ -10,7 +9,7 @@ export declare class HoldingCollection extends ExportableCollection<Holding> {
|
|
|
10
9
|
getCryptos(): this;
|
|
11
10
|
getOthers(): this;
|
|
12
11
|
getPurchaseValue(): number;
|
|
13
|
-
|
|
14
|
-
getGrowthCoefficient(
|
|
12
|
+
get marketValue(): number;
|
|
13
|
+
getGrowthCoefficient(): number;
|
|
15
14
|
getUnsold(): this;
|
|
16
15
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum ChartAccountsHoldingUntaxedIncomeListEnum {
|
|
2
|
+
FOREIGN_EXCHANGE_GAINS = 523,
|
|
3
|
+
DIVIDENDS = 542,
|
|
4
|
+
INTEREST_ON_TERM_DEPOSITS = 873,
|
|
5
|
+
INTEREST_FROM_OTHER_INVESTMENTS = 874,
|
|
6
|
+
INTEREST_DISTRIBUTIONS_FROM_PARTNERSHIPS = 875,
|
|
7
|
+
INTEREST_DISTRIBUTIONS_FROM_TRUSTS = 876,
|
|
8
|
+
STAKING = 877
|
|
9
|
+
}
|
|
@@ -11,3 +11,4 @@ export * from './chart-accounts-salary-adjustments-list.enum';
|
|
|
11
11
|
export * from './chart-accounts-salary-included-list.enum';
|
|
12
12
|
export * from './chart-accounts-type.enum';
|
|
13
13
|
export * from './chart-accounts-keep-sign.enum';
|
|
14
|
+
export * from './chart-accounts-holding-untaxed-income-list.enum';
|
|
@@ -30,12 +30,12 @@ export declare class Holding extends AbstractModel {
|
|
|
30
30
|
* Get current market price
|
|
31
31
|
* @TODO vik/alex no need to pass holdingType, should come from backend
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
get marketValue(): number;
|
|
34
34
|
/**
|
|
35
35
|
* Get percent difference between current and buy price
|
|
36
36
|
* @TODO vik/alex no need to pass holdingType, should come from backend
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
get growthCoefficient(): number;
|
|
39
39
|
heldMoreYear(): boolean;
|
|
40
40
|
isSold(): boolean;
|
|
41
41
|
}
|
|
@@ -2,5 +2,6 @@ export declare enum HoldingMessagesEnum {
|
|
|
2
2
|
CREATED = "Holding created successfully",
|
|
3
3
|
UPDATED = "Holding updated successfully",
|
|
4
4
|
CONFIRM_DELETE = "Are you sure you want to delete this holding?",
|
|
5
|
-
DELETED = "Holding deleted successfully"
|
|
5
|
+
DELETED = "Holding deleted successfully",
|
|
6
|
+
DELETE_ASSET_ERROR = "In the \"SOLD\" section click on the \"REDO\" button for the current asset"
|
|
6
7
|
}
|