[#40] Billing: Add Rebelzuschlag

This commit is contained in:
lorenz.stechauner committed 2024-03-09 20:24:49 +01:00
1 parent 34ebc8fa34
commit dc83e64db6
9 files changed
+130 -16

No files matched your search

+3 -1
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");