From f9a0dbf53477ac9390e004893bdd77da1894230a Mon Sep 17 00:00:00 2001 From: vladfo Date: Tue, 17 Sep 2024 08:57:14 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB=20?= =?utf8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=BE=20=D0=B2=D0=B0=D0=BB?= =?utf8?q?=D0=B8=D0=B4=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/EmployeePayment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/records/EmployeePayment.php b/erp24/records/EmployeePayment.php index 23a38f42..b519b3cc 100755 --- a/erp24/records/EmployeePayment.php +++ b/erp24/records/EmployeePayment.php @@ -39,13 +39,13 @@ class EmployeePayment extends \yii\db\ActiveRecord [['admin_id', 'monthly_salary', 'daily_payment'], 'required'], [['admin_id', 'admin_group_id', 'creator_id'], 'integer'], [['date'], 'date', 'format' => 'php:Y-m-d'], - [['monthly_salary', 'daily_payment'], 'number', 'min' => 0.01, 'tooSmall'=>'Значение {attribute} должно быть больше нуля.'], + [['monthly_salary', 'daily_payment'], 'compare', 'compareValue' => 0, 'operator' => '>', 'type' => 'number', 'message' => 'Значение {attribute} должно быть больше нуля.'], [['admin_group_id'], 'exist', 'skipOnError' => true, 'targetClass' => AdminGroup::class, 'targetAttribute' => ['admin_group_id' => 'id']], [['admin_id'], 'exist', 'skipOnError' => true, 'targetClass' => Admin::class, 'targetAttribute' => ['admin_id' => 'id']], [['creator_id'], 'exist', 'skipOnError' => true, 'targetClass' => Admin::class, 'targetAttribute' => ['creator_id' => 'id']], [['daily_payment'], 'validateDailyPayment'], [['date', 'admin_id'], 'validateUniqueDate'], -// ['date', 'validateDateForCreate', 'on' => 'create'], + ]; } -- 2.39.5