From cb9be7953f379b36c8b4e76ae900259212066a5a Mon Sep 17 00:00:00 2001 From: marina Date: Wed, 18 Jun 2025 15:51:36 +0300 Subject: [PATCH] =?utf8?q?ERP-360=20=D0=A1=D0=B1=D0=BE=D1=80=D0=BA=D0=B0?= =?utf8?q?=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=B0?= =?utf8?q?=D0=B2=D1=82=D0=BE=D0=BF=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/commands/CronController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index af2924e6..fb8300a0 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -1645,7 +1645,7 @@ class CronController extends Controller $needsUpdate = !$model->isNewRecord && ( $model->calculate !== $quantity || - round((float)$model->total, 2) !== round($total, 2) || + round((float)$model->total, 2) !== ceil($total) || json_encode($model->details, JSON_UNESCAPED_UNICODE) !== json_encode($details, JSON_UNESCAPED_UNICODE) ); @@ -1660,8 +1660,8 @@ class CronController extends Controller 'capacity_type' => 1, 'details' => json_encode($details, JSON_UNESCAPED_UNICODE), 'calculate' => $quantity, - 'modify' => round($total, 2), - 'total' => round($total, 2) + 'modify' => ceil($total), + 'total' => ceil($total) ]); if (!$model->save()) { -- 2.39.5