From f87fbd392b5f32eb25f670d0bdcc49ef6049e802 Mon Sep 17 00:00:00 2001 From: fomichev Date: Fri, 6 Dec 2024 13:42:26 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D0=B4=D0=B5=D0=BD?= =?utf8?q?=D0=B8=D0=B5=20=D1=82=D0=B8=D0=BF=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/crud/Product1cReplacementController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5