brook před 3 roky
rodič
revize
263708f851
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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];
     }
 }