Browse Source

Add business logic and tests for stock splits

pull/7568/head
Thomas Kaul 2 weeks ago
parent
commit
03ec5c0392
  1. 4
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
  2. 2
      prisma/migrations/20260815120000_added_symbol_profile_id_index_to_order/migration.sql
  3. 1
      prisma/schema.prisma

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

@ -511,9 +511,7 @@
</div>
</div>
</mat-tab>
<!-- Splits are not applied to the portfolio calculation yet, hence the
tab to manage them is disabled -->
@if (false && user?.settings?.isExperimentalFeatures) {
@if (user?.settings?.isExperimentalFeatures) {
<mat-tab>
<ng-template mat-tab-label>
<ion-icon name="git-compare-outline" />

2
prisma/migrations/20260815120000_added_symbol_profile_id_index_to_order/migration.sql

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "Order_symbolProfileId_idx" ON "Order"("symbolProfileId");

1
prisma/schema.prisma

@ -195,6 +195,7 @@ model Order {
@@index([accountId])
@@index([date])
@@index([symbolProfileId])
@@index([type])
@@index([userId])
}

Loading…
Cancel
Save