Browse Source

Feature/handle activities of excluded accounts (#3697)

* Handle activities of excluded accounts
pull/3699/head
Thomas Kaul 1 month ago
committed by GitHub
parent
commit
e4074f95c9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      libs/ui/src/lib/activities-table/activities-table.component.html
  2. 8
      libs/ui/src/lib/activities-table/activities-table.component.ts

8
libs/ui/src/lib/activities-table/activities-table.component.html

@ -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>

8
libs/ui/src/lib/activities-table/activities-table.component.ts

@ -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,

Loading…
Cancel
Save