1 Commits

Author SHA1 Message Date
agentd
77ac4823f1 Bug: Rabatt wird als Betrag statt in Prozent abgezogen
agentd task adbfeac498c8433bb0a2b3f40ed4b30c
2026-08-04 22:43:15 +00:00

View File

@@ -16,6 +16,6 @@ public static class PriceCalculator
throw new ArgumentOutOfRangeException(nameof(discountPercent), "A discount is between 0 and 100 percent.");
}
return price - discountPercent;
return price * (100m - discountPercent) / 100m;
}
}