]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-305] bug
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 26 Feb 2025 14:46:39 +0000 (17:46 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 26 Feb 2025 14:46:39 +0000 (17:46 +0300)
erp24/controllers/SalesWriteOffsPlanController.php

index 031461fbaa6f54bd30ded28c33db041bd7a55e3d..482e17d7fe4bf58f3334f4209e0ddc7b20644b19 100644 (file)
@@ -33,7 +33,7 @@ class SalesWriteOffsPlanController extends Controller
 
         $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('Y-m-d', strtotime('-1 month', strtotime(date($model->year . '-' . $model->month . '-d')))) > date('Y-m-d')
             ));
 
         $prevPrevMonthStart = date("Y-m-01", strtotime("-2 month", strtotime($model->year . "-" . $model->month . "-01")));