Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OlliL committed May 5, 2024
1 parent f6adc40 commit 3382bed
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@
"ISIN_MUST_NOT_BE_EMPTY": "Bitte die ISIN angeben!",
"WKN_MUST_NOT_BE_EMPTY": "Bitte die WKN Angeben!",
"TICKER_MUST_NOT_BE_EMPTY": "Bitte den Ticker angeben!",
"ETF_STILL_REFERENCED": "Der ETF kann nicht gelöscht werden, da er noch in einem Depot verwendet wird oder Vorabpauschalen erfasst sind!"
"ETF_STILL_REFERENCED": "Der ETF kann nicht gelöscht werden, da er noch in einem Depot verwendet wird oder Vorabpauschalen erfasst sind!",
"ETF_PRELIMINARY_LUMP_SUM_PIECE_PRICE_MUST_BE_NULL": "Beim Monatsmodus darf kein Einzelpreis erfasst sein!",
"ETF_PRELIMINARY_LUMP_SUM_MONTHLY_PRICES_MUST_BE_NULL": "Beim Einzelpreismodus dürfen keine Monatspreise erfasst sein!"
}
}
4 changes: 3 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@
"ISIN_MUST_NOT_BE_EMPTY": "ISIN must be set!",
"WKN_MUST_NOT_BE_EMPTY": "WKN must be set!",
"TICKER_MUST_NOT_BE_EMPTY": "Ticker must be set!",
"ETF_STILL_REFERENCED": "The posting account cannot be deleted because it is still referenced inside a depot or has preliminary lump sums recorded!"
"ETF_STILL_REFERENCED": "The posting account cannot be deleted because it is still referenced inside a depot or has preliminary lump sums recorded!",
"ETF_PRELIMINARY_LUMP_SUM_PIECE_PRICE_MUST_BE_NULL": "No piece price must be entered in montly mode!",
"ETF_PRELIMINARY_LUMP_SUM_MONTHLY_PRICES_MUST_BE_NULL": "No monthly prices must be entered in single price mode!"
}
}
9 changes: 9 additions & 0 deletions src/model/ErrorCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export const enum ErrorCode {
WKN_MUST_NOT_BE_EMPTY = 386,
TICKER_MUST_NOT_BE_EMPTY = 387,
ETF_STILL_REFERENCED = 388,
ETF_PRELIMINARY_LUMP_SUM_PIECE_PRICE_MUST_BE_NULL = 389,
ETF_PRELIMINARY_LUMP_SUM_MONTHLY_PRICES_MUST_BE_NULL = 390,
}

export const errorMessages = {
Expand Down Expand Up @@ -224,6 +226,13 @@ export const errorMessages = {
[ErrorCode.ETF_STILL_REFERENCED]: I18nHolder.t()(
"ErrorMessage.ETF_STILL_REFERENCED",
),
[ErrorCode.ETF_PRELIMINARY_LUMP_SUM_PIECE_PRICE_MUST_BE_NULL]: I18nHolder.t()(
"ErrorMessage.ETF_PRELIMINARY_LUMP_SUM_PIECE_PRICE_MUST_BE_NULL",
),
[ErrorCode.ETF_PRELIMINARY_LUMP_SUM_MONTHLY_PRICES_MUST_BE_NULL]:
I18nHolder.t()(
"ErrorMessage.ETF_PRELIMINARY_LUMP_SUM_MONTHLY_PRICES_MUST_BE_NULL",
),
};

export function getErrorMessage(errorCode: number) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/etf/ListPreliminaryLumpSums.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ import type { SelectBoxValue } from "@/model/SelectBoxValue";
import CrudEtfControllerHandler from "@/handler/CrudEtfControllerHandler";
import SelectStandard from "@/components/SelectStandard.vue";
import type { Etf } from "@/model/etf/Etf";
import { ref, onMounted, watch, nextTick } from "vue";
import { ref, onMounted, watch } from "vue";
import type { EtfPreliminaryLumpSum } from "@/model/etf/EtfPreliminaryLumpSum";
import router, { Routes } from "@/router";
Expand Down

0 comments on commit 3382bed

Please sign in to comment.