From a428afad9dc05c2b760ae9179e2e28cd10c0d73b Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 26 Feb 2025 17:46:39 +0300 Subject: [PATCH] [ERP-305] bug --- erp24/controllers/SalesWriteOffsPlanController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))); -- 2.39.5