Browse Source

Add support for stock splits

pull/7251/head
Thomas Kaul 2 weeks ago
parent
commit
1045c070a1
  1. 20
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

20
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

@ -489,6 +489,7 @@
</div> </div>
</div> </div>
</mat-tab> </mat-tab>
@if (user?.settings?.isExperimentalFeatures) {
<mat-tab> <mat-tab>
<ng-template mat-tab-label> <ng-template mat-tab-label>
<ion-icon name="git-compare-outline" /> <ion-icon name="git-compare-outline" />
@ -499,15 +500,18 @@
<div class="col-12"> <div class="col-12">
<p class="text-muted" i18n> <p class="text-muted" i18n>
Activities dated before a split are adjusted at calculation Activities dated before a split are adjusted at calculation
time. After adding a split, gather the historical market data of time. After adding a split, gather the historical market data
this asset profile again. of this asset profile again.
</p> </p>
@if (splits.length > 0) { @if (splits.length > 0) {
<table class="gf-table mb-3 w-100"> <table class="gf-table mb-3 w-100">
<thead> <thead>
<tr class="mat-mdc-header-row"> <tr class="mat-mdc-header-row">
<th class="mat-mdc-header-cell px-1 py-2" i18n>Date</th> <th class="mat-mdc-header-cell px-1 py-2" i18n>Date</th>
<th class="mat-mdc-header-cell px-1 py-2 text-right" i18n> <th
class="mat-mdc-header-cell px-1 py-2 text-right"
i18n
>
Split Factor Split Factor
</th> </th>
<th class="mat-mdc-header-cell px-1 py-2"></th> <th class="mat-mdc-header-cell px-1 py-2"></th>
@ -542,7 +546,10 @@
[formGroup]="assetProfileSplitForm" [formGroup]="assetProfileSplitForm"
(ngSubmit)="onAddSplit()" (ngSubmit)="onAddSplit()"
> >
<mat-form-field appearance="outline" class="mr-3 without-hint"> <mat-form-field
appearance="outline"
class="mr-3 without-hint"
>
<mat-label i18n>Date</mat-label> <mat-label i18n>Date</mat-label>
<input <input
formControlName="date" formControlName="date"
@ -571,8 +578,8 @@
type="number" type="number"
/> />
<mat-hint i18n <mat-hint i18n
>Shares after per 1 share before, e.g. 4 for a 4:1 split or >Shares after per 1 share before, e.g. 4 for a 4:1 split
0.1 for a 1:10 reverse split</mat-hint or 0.1 for a 1:10 reverse split</mat-hint
> >
</mat-form-field> </mat-form-field>
<button <button
@ -590,6 +597,7 @@
</div> </div>
</div> </div>
</mat-tab> </mat-tab>
}
@if (assetProfile?.dataSource === 'MANUAL') { @if (assetProfile?.dataSource === 'MANUAL') {
<mat-tab> <mat-tab>
<ng-template mat-tab-label> <ng-template mat-tab-label>

Loading…
Cancel
Save