From: JoySystem_v Date: Wed, 7 Aug 2024 14:53:51 +0000 (+0300) Subject: added form for calculate weeks of custom mounth а fix issues X-Git-Tag: 1.4~35^2~14 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=febfe464f4174959209c52f72fb2eeecc66c616b;p=erp24_rep%2Fyii-erp24%2F.git added form for calculate weeks of custom mounth а fix issues --- diff --git a/erp24/actions/motivation/SumSalaryByMonthAction.php b/erp24/actions/motivation/SumSalaryByMonthAction.php index 4979500e..8936ffaa 100644 --- a/erp24/actions/motivation/SumSalaryByMonthAction.php +++ b/erp24/actions/motivation/SumSalaryByMonthAction.php @@ -46,7 +46,7 @@ class SumSalaryByMonthAction extends Action foreach ($motivations as $motivation) { $store_id = $motivation->store_id; - $records = MotivationService::getRecordsByDateAndStore($startDate, $endDate, $store_id); + $records = MotivationService::getTimetableFactRecordsByDateAndStore($startDate, $endDate, $store_id); $vacationSum = MotivationService::getVacationsSum($startDate, $endDate, $store_id); $totalSalary = 0; diff --git a/erp24/controllers/MotivationController.php b/erp24/controllers/MotivationController.php index df9a3d3f..e5c2b34c 100644 --- a/erp24/controllers/MotivationController.php +++ b/erp24/controllers/MotivationController.php @@ -5,6 +5,7 @@ namespace app\controllers; use yii\filters\AccessControl; use yii\web\Controller; use yii\filters\VerbFilter; +use yii_app\models\SumSalaryForm; class MotivationController extends Controller diff --git a/erp24/models/SumSalaryForm.php b/erp24/models/SumSalaryForm.php index 686eb002..238d0690 100644 --- a/erp24/models/SumSalaryForm.php +++ b/erp24/models/SumSalaryForm.php @@ -1,6 +1,6 @@