From 2f0a6f6eaafad38815a76886fcf8786ab1f7db13 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 26 Feb 2025 17:57:21 +0300 Subject: [PATCH] [ERP-305] bug 2 --- erp24/controllers/CategoryPlanController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/controllers/CategoryPlanController.php b/erp24/controllers/CategoryPlanController.php index 85a148fb..3658d954 100644 --- a/erp24/controllers/CategoryPlanController.php +++ b/erp24/controllers/CategoryPlanController.php @@ -42,7 +42,7 @@ class CategoryPlanController extends Controller { $model->load(Yii::$app->request->get()); $isEditable = date($model->year . '-' . $model->month . '-d') > date('Y-m-d') && ( - (date('d') < 25) || (date('Y-m-d', strtotime('-1 month', date($model->year . '-' . $model->month . '-d'))) > date('Y-m-d'))); + (date('d') < 25) || (date('Y-m-d', strtotime('-1 month', strtotime(date($model->year . '-' . $model->month . '-d')))) > date('Y-m-d'))); $categoryPlan = CategoryPlan::find()->where(['year' => $model->year, 'month' => $model->month, 'store_id' => $model->store_id])->indexBy('category')->asArray()->all(); -- 2.39.5