1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| SELECT
UB,
CR,
SOUS_CR,
TYPE_CREDIT,
CODE_ANALYTIQUE,
CODE_ANALYTIQUE_LIBELLE,
PCO_NUM,
PCO_LIBELLE,
COMMANDE_NUMERO,
ENGAGE_NUMERO,
ENGAGE_DATE,
ENGAGE_LIBELLE,
FOURNISSEUR_CODE,
FOURNISSEUR_NOM,
MONTANT_ENGAGEMENT_GLOBAL,
RESTE_ENGAGE_GLOBAL,
RESTE_ENGAGE_ANALYTIQUE,
RESTE_ENGAGE_IMPUTATION,
0 MONTANT_LIQUIDE_ANALYTIQUE,
0 MONTANT_LIQUIDE_IMPUTATION
FROM jefy_depense.v_enfa_engage_analy_imput
WHERE UPPER(UB || '/' || NVL(CR,'non defini') || '/' || NVL(SOUS_CR, 'non defini')) LIKE UPPER('900')||'/'|| UPPER('EXP_MAA')||'/'|| UPPER('%')
AND TO_CHAR(exe_ordre) = TO_CHAR('2013')
AND cpt_login = 'plemenager'
AND CODE_ANALYTIQUE LIKE 'MAA-code attente'
AND PCO_NUM LIKE '%'
UNION ALL
SELECT
UB,
CR,
SOUS_CR,
TYPE_CREDIT,
CODE_ANALYTIQUE,
CODE_ANALYTIQUE_LIBELLE,
PCO_NUM,
PCO_LIBELLE,
COMMANDE_NUMERO,
ENGAGE_NUMERO,
ENGAGE_DATE,
ENGAGE_LIBELLE,
FOURNISSEUR_CODE,
FOURNISSEUR_NOM,
MONTANT_ENGAGEMENT_GLOBAL,
RESTE_ENGAGE_GLOBAL,
0,
0,
MONTANT_LIQUIDE_ANALYTIQUE,
MONTANT_LIQUIDE_IMPUTATION
FROM jefy_depense.v_enfa_liquide_analy_imput
WHERE UPPER(UB || '/' || NVL(CR,'non defini') || '/' || NVL(SOUS_CR, 'non defini')) LIKE UPPER('900')||'/'|| UPPER('EXP_MAA')||'/'|| UPPER('%')
AND TO_CHAR(exe_ordre) = TO_CHAR('2013')
AND cpt_login = 'plemenager'
AND CODE_ANALYTIQUE LIKE 'MAA-code attente'
AND PCO_NUM LIKE '%'
ORDER BY UB, CR NULLs FIRST, SOUS_CR NULLs FIRST, CODE_ANALYTIQUE, ENGAGE_NUMERO, COMMANDE_NUMERO |
Partager