Skip to content

Commit f12a3bb

Browse files
committed
Fixed #10306 - cast purchase cost to a float
Signed-off-by: snipe <[email protected]>
1 parent c8a5065 commit f12a3bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Helpers/Helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ public static function formatCurrencyOutput($cost)
123123
if (is_numeric($cost)) {
124124

125125
if (Setting::getSettings()->digit_separator=='1.234,56') {
126-
return number_format($cost, 2, ',', '.');
126+
return (float) number_format($cost, 2, ',', '.');
127127
}
128-
return number_format($cost, 2, '.', ',');
128+
return (float) number_format($cost, 2, '.', ',');
129129
}
130130
// It's already been parsed.
131131
return $cost;

0 commit comments

Comments
 (0)