shish 3 lat temu
rodzic
commit
d9709882d7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      biz-ghs/product/classes/ProductClass.php

+ 1 - 1
biz-ghs/product/classes/ProductClass.php

@@ -626,7 +626,7 @@ class ProductClass extends BaseClass
                 $addPrice = $product['addPrice'] ?? 0;
                 $diff = bcsub($skMore,$addPrice, 2);
                 if ($diff > 0) {
-                    $price = bcsub($discountPrice, $diff, 2);
+                    $price = bcadd($discountPrice, $diff, 2);
                 } else {
                     $price = $discountPrice;
                 }