MotivationService::calculateMonthAccauntingAndTax($model->year, $model->month);
MotivationService::calculateMonthLegalServices($model->year, $model->month);
+
+ MotivationService::calculateMonthPersonalAdministrationLaborProtection($model->year, $model->month);
+
+ MotivationService::calculateMonthAdministrationOfItInfrastructureConnectionsToDatabasesSoftwareMailInternet($model->year, $model->month);
+
+ MotivationService::calculateMonthSoftwareLicenseErpSystem($model->year, $model->month);
+
+ MotivationService::calculateMonthCeoAndSaleOfWebsiteGoods($model->year, $model->month);
}
return $this->controller->render('test-fact', compact('model', 'years', 'months'));
MotivationService::calculateMonthLegalServices($year, $month);
+ MotivationService::calculateMonthPersonalAdministrationLaborProtection($year, $month);
+
+ MotivationService::calculateMonthAdministrationOfItInfrastructureConnectionsToDatabasesSoftwareMailInternet($year, $month);
+
+ MotivationService::calculateMonthSoftwareLicenseErpSystem($year, $month);
+
+ MotivationService::calculateMonthCeoAndSaleOfWebsiteGoods($year, $month);
//////////////////////////////////////////////
6, 28, "float", $plan);
}
}
+
+ public static function calculateMonthPersonalAdministrationLaborProtection($year, $month) {
+
+ }
+
+ public static function calculateMonthAdministrationOfItInfrastructureConnectionsToDatabasesSoftwareMailInternet($year, $month) {
+ $motivations = Motivation::find()
+ ->where(['year' => $year, 'month' => $month])
+ ->all();
+
+ foreach ($motivations as $motivation) {
+ $plan = self::getMotivationValue($motivation->id, 7, 31);
+ self::saveOrUpdateMotivationValue($motivation->id,
+ 6, 31, "float", $plan);
+ }
+ }
+
+ public static function calculateMonthSoftwareLicenseErpSystem($year, $month) {
+ $motivations = Motivation::find()
+ ->where(['year' => $year, 'month' => $month])
+ ->all();
+
+ foreach ($motivations as $motivation) {
+ $plan = self::getMotivationValue($motivation->id, 7, 32);
+ self::saveOrUpdateMotivationValue($motivation->id,
+ 6, 32, "float", $plan);
+ }
+ }
+
+ public static function calculateMonthCeoAndSaleOfWebsiteGoods($year, $month) {
+ $motivations = Motivation::find()
+ ->where(['year' => $year, 'month' => $month])
+ ->all();
+
+ foreach ($motivations as $motivation) {
+ $correction = self::getMotivationValue($motivation->id, 8, 33);
+ self::saveOrUpdateMotivationValue($motivation->id,
+ 6, 33, "float", $correction);
+ }
+ }
}