Commit 6ec2b2bf authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Merge branch 'b19' of https://git.unicaen.fr/open-source/OSE into b19

parents 41269885 511249e8
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
CREATE OR REPLACE FORCE VIEW V_EXPORT_PAIEMENT_SIHAM AS
CREATE
OR REPLACE FORCE VIEW V_EXPORT_PAIEMENT_SIHAM AS
SELECT annee_id,
       type_intervenant_id,
       structure_id,
       periode_id,
       'P'                                                               type,
       code_rh                                                           matricule,
       CASE WHEN type_intervenant_code = 'P' THEN '200204' ELSE '202251' END retenue,
       CASE WHEN type_intervenant_code = 'P' THEN '0204' ELSE '1578' END code_indemnite_retenu,
       ose_paiement.get_format_mois_du()                                 du_mois,
       '20' || ose_paiement.get_annee_extraction_paie()                  annee_de_paye,
       ose_paiement.get_mois_extraction_paie()                           mois_de_paye,
       '01'                                                              numero_de_remise,
       'N'                                                               tg_specifique,
       'A definir'                                                       dossier_de_paye,
       '01/' || ose_paiement.get_mois_extraction_paie() || '/20' ||
@@ -39,7 +41,7 @@ FROM (SELECT i.annee_id
             t2.code_origine                                                                                   code_origine,
             CASE WHEN ind <> ceil(t2.nbu / max_nbu) THEN max_nbu ELSE t2.nbu - max_nbu * (ind - 1) END        nbu,
             t2.nbu                                                                                            tnbu,
             (select taux_hetd from annee ann where ann.id = i.annee_id)                         montant,
             (SELECT taux_hetd FROM annee ann WHERE ann.id = i.annee_id)                                       montant,
             COALESCE(t2.unite_budgetaire, '') || ' ' || to_char(i.annee_id) || ' ' || to_char(i.annee_id + 1) libelle
      FROM (SELECT structure_id,
                   periode_paiement_id,
+3 −3
Original line number Diff line number Diff line
@@ -29,9 +29,9 @@ return [
    "MATRICULE": {
        "libelle": "Matricule"
    },
     "RETENUE": {
        "libelle": "Retenue"
    },
     "CODE_INDEMNITE_RETENU": {
        "libelle": "Code indemnité/retenue"
    }
     "DU_MOIS": {
        "libelle": "Du mois (AAAA-MM)"
    },