Fix rounding method for specific price reductions in Product class

Updated the rounding method for prices with specific reductions from Tools::ceilf to Tools::ps_round to ensure consistent pricing behavior across the application.
This commit is contained in:
2025-04-16 22:35:55 +02:00
parent d8ec8b9dd3
commit 66b8b0c58a
2 changed files with 596 additions and 648 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -3957,7 +3957,7 @@ class ProductCore extends ObjectModel
// Zaokrąglanie w górę tylko gdy mamy redukcję // Zaokrąglanie w górę tylko gdy mamy redukcję
if ($specific_price && $specific_price['reduction'] > 0) { if ($specific_price && $specific_price['reduction'] > 0) {
$price = Tools::ceilf($price); $price = Tools::ps_round($price);
} }
// Group reduction // Group reduction