Commit 28cfdbb0 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Possibilité de choisir un domaine fonctionnel par défaut par structure et impact sur tbl_paiement.

parent 847923a9
Loading
Loading
Loading
Loading
+12
Changes for data/ddl/table/STRUCTURE.php: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -213,6 +213,18 @@ return [
            'position'    => 14,
            'commentaire' => NULL,
        ],
        'DOMAINE_FONCTIONNEL_ID'  => [
            'name'        => 'DOMAINE_FONCTIONNEL_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => 38,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 33,
            'commentaire' => NULL,
        ],
        'ENSEIGNEMENT'            => [
            'name'        => 'ENSEIGNEMENT',
            'type'        => 'bool',
+2 −2
Changes for data/ddl/view/V_TBL_PAIEMENT.sql: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ SELECT
  i.id                                        intervenant_id,
  COALESCE( ep.structure_id, i.structure_id ) structure_id,
  COALESCE(thens.id,th.id)                    type_heures_id,
  COALESCE(e.domaine_fonctionnel_id, ose_parametre.get_domaine_fonc_ens_ext) def_domaine_fonctionnel_id,
  COALESCE(e.domaine_fonctionnel_id, str.domaine_fonctionnel_id, ose_parametre.get_domaine_fonc_ens_ext) def_domaine_fonctionnel_id,
  COALESCE(ccep.centre_cout_id,str.centre_cout_id) def_centre_cout_id,
  COALESCE(ep.taux_remu_id, si.taux_remu_id, ose_parametre.get_taux_remu) taux_remu_id,
  1                                           taux_conges_payes,
@@ -228,7 +228,7 @@ SELECT
  tm.intervenant_id                           intervenant_id,
  m.structure_id                              structure_id,
  th.id                                       type_heures_id,
  NULL                                        def_domaine_fonctionnel_id,
  str.domaine_fonctionnel_id                  def_domaine_fonctionnel_id,
  str.centre_cout_id                          def_centre_cout_id,
  CASE WHEN
    TO_CHAR( vhm.horaire_debut, 'HH24:MI' ) >= ose_parametre.get_horaire_nocturne -- horaire nocturne
+2
Changes for data/ddl_columns_pos.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1400,6 +1400,7 @@ return [
        'AUTRE_3',
        'AUTRE_4',
        'AUTRE_5',
        'DOMAINE_FONCTIONNEL_ID',
    ],
    'SYNC_LOG'                       => [
        'ID',
@@ -2561,6 +2562,7 @@ return [
        'HISTO_MODIFICATEUR_ID',
        'HISTO_MODIFICATION',
    ],

];

//@formatter:on
+3
Changes for module/Lieu/src/Entity/Db/Mapping/Lieu.Entity.Db.Structure.dcm.xml: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -61,6 +61,9 @@
        <many-to-one field="centreCoutDefault" target-entity="Paiement\Entity\Db\CentreCout" nullable="true">
            <join-column name="CENTRE_COUT_ID" referenced-column-name="ID"/>
        </many-to-one>
        <many-to-one field="domaineFonctionnelDefault" target-entity="Application\Entity\Db\DomaineFonctionnel" nullable="true">
            <join-column name="DOMAINE_FONCTIONNEL_ID" referenced-column-name="ID"/>
        </many-to-one>
        <one-to-many field="elementPedagogique" target-entity="OffreFormation\Entity\Db\ElementPedagogique" mapped-by="structure"/>
        <one-to-many field="miseEnPaiementIntervenantStructure" target-entity="Paiement\Entity\Db\MiseEnPaiementIntervenantStructure" mapped-by="structure"/>
        <one-to-many field="tblPaiement" target-entity="Paiement\Entity\Db\TblPaiement" mapped-by="structure"/>
+29
Changes for module/Lieu/src/Entity/Db/Structure.php: 29 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@

namespace Lieu\Entity\Db;

use Application\Entity\Db\DomaineFonctionnel;
use Application\Entity\Db\Intervenant;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
@@ -42,6 +43,8 @@ class Structure implements HistoriqueAwareInterface, ResourceInterface, ImportAw

    protected ?CentreCout         $centreCoutDefault         = null;

    protected ?DomaineFonctionnel $domaineFonctionnelDefault = null;

    protected Collection          $miseEnPaiementIntervenantStructure;

    protected Collection          $tblPaiement;
@@ -288,6 +291,32 @@ class Structure implements HistoriqueAwareInterface, ResourceInterface, ImportAw



    /**
     * Get domaineFonctionnelDefault
     *
     * @return ?DomaineFonctionnel
     */
    public function getDomaineFonctionnelDefault (): ?DomaineFonctionnel
    {
        return $this->domaineFonctionnelDefault;
    }



    /**
     * Set domaineFonctionnelDefault
     *
     * @return Structure
     */
    public function setDomaineFonctionnelDefault (?DomaineFonctionnel $domaineFonctionnelDefault): self
    {
        $this->domaineFonctionnelDefault = $domaineFonctionnelDefault;

        return $this;
    }



    /**
     * Get miseEnPaiementIntervenantStructure
     *
Loading