Feature/add support for liabilities (#1789)

* Add support for liabilities

* Update changelog
This commit is contained in:
Thomas Kaul
2023-06-10 16:17:11 +02:00
committed by GitHub
parent 04eb452e04
commit 7931e6950d
12 changed files with 124 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ export interface PortfolioSummary extends PortfolioPerformance {
fees: number;
firstOrderDate: Date;
items: number;
liabilities: number;
netWorth: number;
ordersCount: number;
totalBuy: number;

View File

@@ -162,6 +162,7 @@
buy: element.type === 'BUY',
dividend: element.type === 'DIVIDEND',
item: element.type === 'ITEM',
liability: element.type === 'LIABILITY',
sell: element.type === 'SELL'
}"
>
@@ -173,6 +174,10 @@
*ngIf="element.type === 'ITEM'"
name="cube-outline"
></ion-icon>
<ion-icon
*ngIf="element.type === 'LIABILITY'"
name="flame-outline"
></ion-icon>
<ion-icon
*ngIf="element.type === 'SELL'"
name="arrow-down-circle-outline"
@@ -538,7 +543,10 @@
mat-row
[ngClass]="{
'cursor-pointer':
hasPermissionToOpenDetails && !row.isDraft && row.type !== 'ITEM'
hasPermissionToOpenDetails &&
!row.isDraft &&
row.type !== 'ITEM' &&
row.type !== 'LIABILITY'
}"
(click)="onClickActivity(row)"
></tr>

View File

@@ -37,6 +37,10 @@
color: var(--purple);
}
&.liability {
color: var(--red);
}
&.sell {
color: var(--orange);
}