From: marina Date: Wed, 18 Jun 2025 12:51:36 +0000 (+0300) Subject: ERP-360 Сборка страницы автопм X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=cb9be7953f379b36c8b4e76ae900259212066a5a;p=erp24_rep%2Fyii-erp24%2F.git ERP-360 Сборка страницы автопм --- 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()) {