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

Loading…
Cancel
Save