]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Меняем разницу цен feature_fomichev_erp-239_replacement_interface
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 6 Dec 2024 12:09:58 +0000 (15:09 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 6 Dec 2024 12:09:58 +0000 (15:09 +0300)
erp24/controllers/crud/Product1cReplacementController.php

index 966edfa7b385579b11f0cb1af4d03f416312f2f0..0d1d5663222baa93290cce60ce6855a792817a3e 100644 (file)
@@ -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) {