diff --git a/assets/pages/Dividends/IndexPage.vue b/assets/pages/Dividends/IndexPage.vue
index 9f9e0c8..62b487f 100644
--- a/assets/pages/Dividends/IndexPage.vue
+++ b/assets/pages/Dividends/IndexPage.vue
@@ -54,6 +54,7 @@ function confirmDelete(item: Dividend) {
Date |
Sum |
Ticker |
+ Stock Market |
Account |
Actions
@@ -68,6 +69,7 @@ function confirmDelete(item: Dividend) {
| {{ dividend.date }} |
{{ formatPrice(dividend.amount) }} |
{{ dividend.ticker }} |
+ {{ dividend.stockMarket }} |
{{ dividend.accountName }} |
diff --git a/assets/types/dividends.ts b/assets/types/dividends.ts
index c4a31e9..8acf00e 100644
--- a/assets/types/dividends.ts
+++ b/assets/types/dividends.ts
@@ -2,6 +2,7 @@ export interface Dividend {
id: number
date: string
ticker: string
+ stockMarket: string
amount: number
accountName: string
}
diff --git a/package-lock.json b/package-lock.json
index d12710b..a6dc41c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4,7 +4,6 @@
"requires": true,
"packages": {
"": {
- "name": "invest-stat-symfony",
"dependencies": {
"@headlessui/vue": "^1.7",
"@heroicons/vue": "^2.0",
@@ -1744,9 +1743,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001551",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001551.tgz",
- "integrity": "sha512-vtBAez47BoGMMzlbYhfXrMV1kvRF2WP/lqiMuDu1Sb4EE4LKEgjopFDSRtZfdVnslNRpOqV/woE+Xgrwj6VQlg==",
+ "version": "1.0.30001647",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001647.tgz",
+ "integrity": "sha512-n83xdNiyeNcHpzWY+1aFbqCK7LuLfBricc4+alSQL2Xb6OR3XpnQAmlDG+pQcdTfiHRuLcQ96VOfrPSGiNJYSg==",
"dev": true,
"funding": [
{
@@ -5702,9 +5701,9 @@
"dev": true
},
"caniuse-lite": {
- "version": "1.0.30001551",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001551.tgz",
- "integrity": "sha512-vtBAez47BoGMMzlbYhfXrMV1kvRF2WP/lqiMuDu1Sb4EE4LKEgjopFDSRtZfdVnslNRpOqV/woE+Xgrwj6VQlg==",
+ "version": "1.0.30001647",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001647.tgz",
+ "integrity": "sha512-n83xdNiyeNcHpzWY+1aFbqCK7LuLfBricc4+alSQL2Xb6OR3XpnQAmlDG+pQcdTfiHRuLcQ96VOfrPSGiNJYSg==",
"dev": true
},
"chalk": {
diff --git a/src/Response/DTO/Dividends/DividendListItemDTO.php b/src/Response/DTO/Dividends/DividendListItemDTO.php
index 081b257..30a3f1d 100644
--- a/src/Response/DTO/Dividends/DividendListItemDTO.php
+++ b/src/Response/DTO/Dividends/DividendListItemDTO.php
@@ -10,6 +10,7 @@ public function __construct(
public int $id,
public string $date,
public string $ticker,
+ public string $stockMarket,
public string $amount,
public string $accountName
) {
diff --git a/src/Services/DividendsService.php b/src/Services/DividendsService.php
index 8b5ad65..9f158da 100644
--- a/src/Services/DividendsService.php
+++ b/src/Services/DividendsService.php
@@ -29,6 +29,7 @@ public function getDividendsForUser(?User $user): array
id: $dividend->getId(),
date: $dividend->getDate()->format('d.m.Y'),
ticker: $dividend->getTicker(),
+ stockMarket: $dividend->getStockMarket(),
amount: $dividend->getAmount(),
accountName: $dividend->getAccount()->getName()
);
|