From: marina Date: Fri, 13 Dec 2024 09:08:03 +0000 (+0300) Subject: ERP-259 Доработка второго шага передачи смен X-Git-Tag: 1.7~169^2~2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=27fac41d86a68a4f665b179f7137e4b3be6712f5;p=erp24_rep%2Fyii-erp24%2F.git ERP-259 Доработка второго шага передачи смен --- diff --git a/erp24/records/WaybillIncomingProducts.php b/erp24/records/WaybillIncomingProducts.php index 7b6cf5e8..8ee8c107 100644 --- a/erp24/records/WaybillIncomingProducts.php +++ b/erp24/records/WaybillIncomingProducts.php @@ -80,8 +80,8 @@ class WaybillIncomingProducts extends \yii\db\ActiveRecord return; } - $count = $er->product_count < $itemCount - ? $itemCount - $er->product_count + $count = $er->product_count > $itemCount + ? $er->product_count - $itemCount : $er->product_count; } else { $count = $itemCount; diff --git a/erp24/records/WaybillWriteOffsProducts.php b/erp24/records/WaybillWriteOffsProducts.php index c755cd20..6f9bec60 100644 --- a/erp24/records/WaybillWriteOffsProducts.php +++ b/erp24/records/WaybillWriteOffsProducts.php @@ -82,8 +82,8 @@ class WaybillWriteOffsProducts extends \yii\db\ActiveRecord return; } - $count = $er->product_count < $itemCount - ? $itemCount - $er->product_count + $count = $er->product_count > $itemCount + ? $er->product_count - $itemCount : $er->product_count; } else { $count = $itemCount;