brook 3 lat temu
rodzic
commit
263708f851
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      common/helpers/bonus/Calc/BaseBusiness.php

+ 2 - 2
common/helpers/bonus/Calc/BaseBusiness.php

@@ -73,8 +73,8 @@ class BaseBusiness
     public function getMonthsForQuarterly()
     {
         $startTime  = strtotime(date('Y') . '0101');
-        $calcMonth1 = date("Y-m", strtotime('+' . ($this->_calcMonth - 1) . ' month', $startTime));
-        $calcMonth2 = date("Y-m", strtotime('+' . ($this->_calcMonth - 2) . ' month', $startTime));
+        $calcMonth1 = date("Ym", strtotime('+' . ($this->_calcMonth - 1) . ' month', $startTime));
+        $calcMonth2 = date("Ym", strtotime('+' . ($this->_calcMonth - 2) . ' month', $startTime));
         return [$calcMonth1, $calcMonth2];
     }
 }