Feature/add support for liabilities (#1789)
* Add support for liabilities * Update changelog
This commit is contained in:
@@ -10,6 +10,7 @@ export interface PortfolioSummary extends PortfolioPerformance {
|
||||
fees: number;
|
||||
firstOrderDate: Date;
|
||||
items: number;
|
||||
liabilities: number;
|
||||
netWorth: number;
|
||||
ordersCount: number;
|
||||
totalBuy: number;
|
||||
|
@@ -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>
|
||||
|
@@ -37,6 +37,10 @@
|
||||
color: var(--purple);
|
||||
}
|
||||
|
||||
&.liability {
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
&.sell {
|
||||
color: var(--orange);
|
||||
}
|
||||
|
Reference in New Issue
Block a user