brook hace 3 años
padre
commit
263708f851
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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()
     public function getMonthsForQuarterly()
     {
     {
         $startTime  = strtotime(date('Y') . '0101');
         $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];
         return [$calcMonth1, $calcMonth2];
     }
     }
 }
 }