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:
1242
.vscode/ftp-kr.sync.cache.json
vendored
1242
.vscode/ftp-kr.sync.cache.json
vendored
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user