Loading admin/actions/update.php +3 −4 Original line number Diff line number Diff line Loading @@ -7,11 +7,10 @@ if ($c->getOption('maintenance') != 'no') { $c->getInput(); } // Mise à jour du code source $oa->run('update-code', false); // Mise à jour de la base de données à partir d'un nouveau processus $oa->run('update-bdd', true); $bin = getcwd()."/bin/ose"; passthru("$bin update-code"); passthru("$bin update-bdd"); //Conclusion $c->println("\nFin de la mise à jour."); Loading bin/install +3 −2 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ $c->setInputOptions([ $od = new OseDeploy($c); unlink(__FILE__); $c->printMainTitle("Installation de OSE", 13); $c->check([ 'git' => 'Gestionnaire de versions', Loading Loading @@ -163,8 +165,7 @@ copy($configFile, $osedir . '/config.local.php'); $c->println("\nGénération des proxies pour l'ORM Doctrine", $c::COLOR_LIGHT_CYAN); $c->exec([ "cd $osedir", "php vendor/bin/doctrine-module orm:generate-proxies", "chmod -R 777 cache/DoctrineProxy", "php bin/ose clear-cache" ]); // Mise en place des tâches CRON ?? Loading data/ddl/view/V_EXPORT_PAIEMENT_INDEMNITES_SIHAM.sql +5 −2 Original line number Diff line number Diff line Loading @@ -36,7 +36,8 @@ SELECT '1' code_origine, i.id intervenant_id, i.nom_usuel || ',' || i.prenom nom, t.prime_id prime_id t.prime_id prime_id, t.date_declaration date_declaration FROM ( SELECT Loading @@ -50,7 +51,8 @@ FROM SUM(hpm.total_paie) paie_mission, SUM(hpm.total_heures_a_payer) total_heures_a_payer, SUM(hpm.total_heures_payees) total_heures_payees, SUM(round(hpm.total_paie * 0.1, 2)) montant_prime SUM(round(hpm.total_paie * 0.1, 2)) montant_prime, MAX(f.histo_creation) date_declaration FROM mission_prime mp JOIN mission m ON Loading @@ -68,6 +70,7 @@ FROM JOIN periode p ON p.ecart_mois = ROUND(MONTHS_BETWEEN(m.date_fin, a.date_debut)+ 0.5) AND p.enseignement = 0 JOIN fichier f ON f.id = mp.declaration_id and f.histo_destruction IS NULL WHERE --Il faut impérativement une prime validée mp.declaration_id IS NOT NULL Loading data/ddl/view/V_EXPORT_SERVICE.sql +2 −1 Original line number Diff line number Diff line Loading @@ -115,7 +115,8 @@ SELECT 0 heures, vhr.heures heures_ref, 0 heures_non_payees, CASE WHEN mnp.id IS NOT NULL THEN 1 ELSE 0 END heures_non_payees, mnp.libelle_court motif_non_paiement, t.libelle_court tag, 0 service_fi, Loading module/ExportRh/src/Connecteur/Siham/SihamConnecteur.php +2 −2 Original line number Diff line number Diff line Loading @@ -460,8 +460,8 @@ class SihamConnecteur implements ConnecteurRhInterface $infos['totalHeure'] = str_replace(',', '.', $mission->getHeures()); //On va chercher la valeur du taux de la mission $dateDebutMission = $mission->getDateDebut(); $idTauxRemu = $mission->getTauxRemu()->getId(); $valeurTaux = $this->getServiceTauxRemu()->getTauxRemuValeur($idTauxRemu)->getValeur(); $tauxRemu = $mission->getTauxRemu(); $valeurTaux = $this->getServiceTauxRemu()->tauxValeur($tauxRemu, $dateDebutMission); $infos['taux'] = str_replace(',', '.', $valeurTaux); } Loading Loading
admin/actions/update.php +3 −4 Original line number Diff line number Diff line Loading @@ -7,11 +7,10 @@ if ($c->getOption('maintenance') != 'no') { $c->getInput(); } // Mise à jour du code source $oa->run('update-code', false); // Mise à jour de la base de données à partir d'un nouveau processus $oa->run('update-bdd', true); $bin = getcwd()."/bin/ose"; passthru("$bin update-code"); passthru("$bin update-bdd"); //Conclusion $c->println("\nFin de la mise à jour."); Loading
bin/install +3 −2 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ $c->setInputOptions([ $od = new OseDeploy($c); unlink(__FILE__); $c->printMainTitle("Installation de OSE", 13); $c->check([ 'git' => 'Gestionnaire de versions', Loading Loading @@ -163,8 +165,7 @@ copy($configFile, $osedir . '/config.local.php'); $c->println("\nGénération des proxies pour l'ORM Doctrine", $c::COLOR_LIGHT_CYAN); $c->exec([ "cd $osedir", "php vendor/bin/doctrine-module orm:generate-proxies", "chmod -R 777 cache/DoctrineProxy", "php bin/ose clear-cache" ]); // Mise en place des tâches CRON ?? Loading
data/ddl/view/V_EXPORT_PAIEMENT_INDEMNITES_SIHAM.sql +5 −2 Original line number Diff line number Diff line Loading @@ -36,7 +36,8 @@ SELECT '1' code_origine, i.id intervenant_id, i.nom_usuel || ',' || i.prenom nom, t.prime_id prime_id t.prime_id prime_id, t.date_declaration date_declaration FROM ( SELECT Loading @@ -50,7 +51,8 @@ FROM SUM(hpm.total_paie) paie_mission, SUM(hpm.total_heures_a_payer) total_heures_a_payer, SUM(hpm.total_heures_payees) total_heures_payees, SUM(round(hpm.total_paie * 0.1, 2)) montant_prime SUM(round(hpm.total_paie * 0.1, 2)) montant_prime, MAX(f.histo_creation) date_declaration FROM mission_prime mp JOIN mission m ON Loading @@ -68,6 +70,7 @@ FROM JOIN periode p ON p.ecart_mois = ROUND(MONTHS_BETWEEN(m.date_fin, a.date_debut)+ 0.5) AND p.enseignement = 0 JOIN fichier f ON f.id = mp.declaration_id and f.histo_destruction IS NULL WHERE --Il faut impérativement une prime validée mp.declaration_id IS NOT NULL Loading
data/ddl/view/V_EXPORT_SERVICE.sql +2 −1 Original line number Diff line number Diff line Loading @@ -115,7 +115,8 @@ SELECT 0 heures, vhr.heures heures_ref, 0 heures_non_payees, CASE WHEN mnp.id IS NOT NULL THEN 1 ELSE 0 END heures_non_payees, mnp.libelle_court motif_non_paiement, t.libelle_court tag, 0 service_fi, Loading
module/ExportRh/src/Connecteur/Siham/SihamConnecteur.php +2 −2 Original line number Diff line number Diff line Loading @@ -460,8 +460,8 @@ class SihamConnecteur implements ConnecteurRhInterface $infos['totalHeure'] = str_replace(',', '.', $mission->getHeures()); //On va chercher la valeur du taux de la mission $dateDebutMission = $mission->getDateDebut(); $idTauxRemu = $mission->getTauxRemu()->getId(); $valeurTaux = $this->getServiceTauxRemu()->getTauxRemuValeur($idTauxRemu)->getValeur(); $tauxRemu = $mission->getTauxRemu(); $valeurTaux = $this->getServiceTauxRemu()->tauxValeur($tauxRemu, $dateDebutMission); $infos['taux'] = str_replace(',', '.', $valeurTaux); } Loading