From: fomichev Date: Fri, 6 Dec 2024 10:42:26 +0000 (+0300) Subject: Приведение типов X-Git-Tag: 1.7~93^2~3 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f87fbd392b5f32eb25f670d0bdcc49ef6049e802;p=erp24_rep%2Fyii-erp24%2F.git Приведение типов --- diff --git a/erp24/controllers/crud/Product1cReplacementController.php b/erp24/controllers/crud/Product1cReplacementController.php index e324a194..966edfa7 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 = (int)$productPrice - (int)$productReplacementPrice->price; + $priceDifference = (int)($productPrice->price) - (int)($productReplacementPrice->price); } if ($lastLog) {