From 27fac41d86a68a4f665b179f7137e4b3be6712f5 Mon Sep 17 00:00:00 2001 From: marina Date: Fri, 13 Dec 2024 12:08:03 +0300 Subject: [PATCH] =?utf8?q?ERP-259=20=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?utf8?q?=D1=82=D0=BA=D0=B0=20=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B3=D0=BE?= =?utf8?q?=20=D1=88=D0=B0=D0=B3=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4?= =?utf8?q?=D0=B0=D1=87=D0=B8=20=D1=81=D0=BC=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/WaybillIncomingProducts.php | 4 ++-- erp24/records/WaybillWriteOffsProducts.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5