From: Alexander Smirnov Date: Wed, 26 Feb 2025 14:46:39 +0000 (+0300) Subject: [ERP-305] bug X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a428afad9dc05c2b760ae9179e2e28cd10c0d73b;p=erp24_rep%2Fyii-erp24%2F.git [ERP-305] bug --- diff --git a/erp24/controllers/SalesWriteOffsPlanController.php b/erp24/controllers/SalesWriteOffsPlanController.php index 031461fb..482e17d7 100644 --- a/erp24/controllers/SalesWriteOffsPlanController.php +++ b/erp24/controllers/SalesWriteOffsPlanController.php @@ -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")));