is_option_dossier_commune_enabled()) {
$champAffiche_debut_num_dossier[] = "commune.libelle as \""._("commune")."\"";
}
// Modifie la méthode de récupération de la nature des travaux
$champAffiche_debut_commun = array(
$case_demandeur.' as "'._("petitionnaire").'"',
$trim_concat_terrain,
'dossier_autorisation_type_detaille.libelle as "'._("nature_dossier").'"',
'nature_des_travaux as "'._("nature des travaux").'"',
'to_char(dossier.date_depot ,\'DD/MM/YYYY\') as "'._("date_depot").'"',
'to_char(dossier.date_complet ,\'DD/MM/YYYY\') as "'._("date_complet").'"',
'CASE WHEN dossier.incomplet_notifie IS TRUE AND dossier.incompletude IS TRUE
THEN to_char(dossier.date_limite_incompletude ,\'DD/MM/YYYY\')
ELSE to_char(dossier.date_limite ,\'DD/MM/YYYY\')
END as "'._("date_limite").'"',
);
$champAffiche_demat = array(
'dossier_platau.external_uid as "dossier Plat\'AU"',
'consultation_platau.external_uid as "consultation Plat\'AU"',
'pieces_platau.external_uid as "pièce(s) Plat\'AU"',
'autres_platau.external_uid as "autres objets Plat\'AU"',
);
// Redéfinit la liste des champs à afficher
$champAffiche = array_merge(
$champAffiche_debut_num_dossier,
$champAffiche_debut_commun,
array('instructeur.nom as "'._("instructeur").'"',
'division.code as "'._("division").'"',
),
$champAffiche_fin_commun,
$champAffiche_demat
);
?>