Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
CREATE OR REPLACE FORCE VIEW V_EXPORT_PAIEMENT_SIHAM AS CREATE
OR REPLACE FORCE VIEW V_EXPORT_PAIEMENT_SIHAM AS
SELECT annee_id, SELECT annee_id,
type_intervenant_id, type_intervenant_id,
structure_id, structure_id,
periode_id, periode_id,
'P' type, 'P' type,
code_rh matricule, 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, ose_paiement.get_format_mois_du() du_mois,
'20' || ose_paiement.get_annee_extraction_paie() annee_de_paye, '20' || ose_paiement.get_annee_extraction_paie() annee_de_paye,
ose_paiement.get_mois_extraction_paie() mois_de_paye, ose_paiement.get_mois_extraction_paie() mois_de_paye,
'01' numero_de_remise,
'N' tg_specifique, 'N' tg_specifique,
'A definir' dossier_de_paye, 'A definir' dossier_de_paye,
'01/' || ose_paiement.get_mois_extraction_paie() || '/20' || '01/' || ose_paiement.get_mois_extraction_paie() || '/20' ||
...@@ -39,7 +41,7 @@ FROM (SELECT i.annee_id ...@@ -39,7 +41,7 @@ FROM (SELECT i.annee_id
t2.code_origine code_origine, 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, CASE WHEN ind <> ceil(t2.nbu / max_nbu) THEN max_nbu ELSE t2.nbu - max_nbu * (ind - 1) END nbu,
t2.nbu tnbu, 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 COALESCE(t2.unite_budgetaire, '') || ' ' || to_char(i.annee_id) || ' ' || to_char(i.annee_id + 1) libelle
FROM (SELECT structure_id, FROM (SELECT structure_id,
periode_paiement_id, periode_paiement_id,
......
...@@ -29,9 +29,9 @@ return [ ...@@ -29,9 +29,9 @@ return [
"MATRICULE": { "MATRICULE": {
"libelle": "Matricule" "libelle": "Matricule"
}, },
"RETENUE": { "CODE_INDEMNITE_RETENU": {
"libelle": "Retenue" "libelle": "Code indemnité/retenue"
}, }
"DU_MOIS": { "DU_MOIS": {
"libelle": "Du mois (AAAA-MM)" "libelle": "Du mois (AAAA-MM)"
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment