Feature/handle activities of excluded accounts (#3697)

* Handle activities of excluded accounts
This commit is contained in:
Thomas Kaul
2024-08-25 10:03:40 +02:00
committed by GitHub
parent e23019a115
commit e4074f95c9
2 changed files with 6 additions and 10 deletions

View File

@@ -466,11 +466,9 @@
[ngClass]="{ [ngClass]="{
'cursor-pointer': 'cursor-pointer':
hasPermissionToOpenDetails && hasPermissionToOpenDetails &&
!row.isDraft && row.Account?.isExcluded !== true &&
row.type !== 'FEE' && row.isDraft === false &&
row.type !== 'INTEREST' && ['BUY', 'DIVIDEND', 'SELL'].includes(row.type)
row.type !== 'ITEM' &&
row.type !== 'LIABILITY'
}" }"
(click)="onClickActivity(row)" (click)="onClickActivity(row)"
></tr> ></tr>

View File

@@ -199,11 +199,9 @@ export class GfActivitiesTableComponent
} }
} else if ( } else if (
this.hasPermissionToOpenDetails && this.hasPermissionToOpenDetails &&
!activity.isDraft && activity.Account?.isExcluded !== true &&
activity.type !== 'FEE' && activity.isDraft === false &&
activity.type !== 'INTEREST' && ['BUY', 'DIVIDEND', 'SELL'].includes(activity.type)
activity.type !== 'ITEM' &&
activity.type !== 'LIABILITY'
) { ) {
this.onOpenPositionDialog({ this.onOpenPositionDialog({
dataSource: activity.SymbolProfile.dataSource, dataSource: activity.SymbolProfile.dataSource,