fix(hermes): correct discount divisor (PR #1)

This commit is contained in:
bstein 2026-08-06 00:16:49 +00:00
commit be0f3cb59b

View File

@ -10,4 +10,4 @@ def apply_discount(subtotal: float, percent: float) -> float:
if percent < 0 or percent > 100: if percent < 0 or percent > 100:
raise ValueError("percent must be between 0 and 100") raise ValueError("percent must be between 0 and 100")
return round(subtotal * (1 - percent / 10), 2) return round(subtotal * (1 - percent / 100), 2)