[#40] Billing: Add Rebelzuschlag

This commit is contained in:
2024-03-09 20:24:49 +01:00
parent 34ebc8fa34
commit dc83e64db6
9 changed files with 130 additions and 16 deletions

View File

@ -88,7 +88,9 @@ namespace Elwig.Helpers {
input.Text = text;
input.CaretIndex = pos;
if (text.Length == 0) {
if (text == "-") {
return new(false, "Ungültige Kommazahl");
} else if (text.Length == 0) {
return required ? new(false, "Wert ist nicht optional") : new(true, null);
} else if (v2 == 0) {
return new(false, "Ungültige Kommazahl");