From: fomichev Date: Fri, 6 Dec 2024 10:39:01 +0000 (+0300) Subject: Приведенгие типов X-Git-Tag: 1.7~93^2~4 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e0aecf547c8890850ce6eb4a1799e38cfedaf727;p=erp24_rep%2Fyii-erp24%2F.git Приведенгие типов --- diff --git a/erp24/controllers/crud/Product1cReplacementController.php b/erp24/controllers/crud/Product1cReplacementController.php index 615d2b8a..e324a194 100644 --- a/erp24/controllers/crud/Product1cReplacementController.php +++ b/erp24/controllers/crud/Product1cReplacementController.php @@ -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) {