From: fomichev Date: Fri, 6 Dec 2024 12:09:58 +0000 (+0300) Subject: Меняем разницу цен X-Git-Tag: 1.7~93^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=2c95cfa86e943e6b5dcff99fc3bb7fe86eb1c1d5;p=erp24_rep%2Fyii-erp24%2F.git Меняем разницу цен --- diff --git a/erp24/controllers/crud/Product1cReplacementController.php b/erp24/controllers/crud/Product1cReplacementController.php index 966edfa7..0d1d5663 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->price) - (int)($productReplacementPrice->price); + $priceDifference = (int)($productReplacementPrice->price) - (int)($productPrice->price); } if ($lastLog) {