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

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