]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Приведение типов
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 6 Dec 2024 10:42:26 +0000 (13:42 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 6 Dec 2024 10:42:26 +0000 (13:42 +0300)
erp24/controllers/crud/Product1cReplacementController.php

index e324a1942e6b4bff9ba86fe360567e5ba54daefe..966edfa7b385579b11f0cb1af4d03f416312f2f0 100644 (file)
@@ -113,7 +113,7 @@ class Product1cReplacementController extends Controller
 
             $priceDifference = null;
             if ($productPrice !== null && $productReplacementPrice !== null) {
-                $priceDifference = (int)$productPrice - (int)$productReplacementPrice->price;
+                $priceDifference = (int)($productPrice->price) - (int)($productReplacementPrice->price);
             }
 
             if ($lastLog) {