src: |
  SELECT p_factures_soldes_h.finess,
      p_factures_soldes_h.no_facture,
      p_factures.sejour_id,
      p_factures.oid AS facture_id,
      p_factures.no_sejour,
      p_factures.date_facture,
      p_factures.date_vente,
      p_factures.mois_vente,
      p_factures_soldes_h.date_comptable,
      p_factures_soldes_h.medecin_comptabilise_id AS medecin_adm_comptabilise_id,
      t_medecins_administratifs_c.adm_code AS medecin_adm_comptabilise_code,
      t_medecins_administratifs_c.adm_nom AS medecin_adm_comptabilise_nom,
      t_medecins_administratifs_c.adm_prenom AS medecin_adm_comptabilise_prenom,
      t_medecins_administratifs_c.adm_nom_prenom AS medecin_adm_comptabilise_nom_prenom,
      t_medecins_administratifs_c.section_id AS medecin_adm_comptabilise_section_id,
      t_medecins_administratifs_c.section_code AS medecin_adm_comptabilise_section_code,
      t_medecins_administratifs_c.section_texte AS medecin_adm_comptabilise_section_texte,
      t_medecins_administratifs_c.medecin_id AS medecin_comptabilise_id,
      t_medecins_administratifs_c.medecin_code AS medecin_comptabilise_code,
      t_medecins_administratifs_c.nom AS medecin_comptabilise_nom,
      t_medecins_administratifs_c.prenom AS medecin_comptabilise_prenom,
      t_medecins_administratifs_c.nom_prenom AS medecin_comptabilise_nom_prenom,
      t_medecins_administratifs_c.specialite_id AS medecin_comptabilise_specialite_id,
      t_medecins_administratifs_c.specialite_code AS medecin_comptabilise_specialite_code,
      t_medecins_administratifs_c.specialite_texte AS medecin_comptabilise_specialite_texte,
      p_factures_soldes_h.montant_comptabilise,
      p_factures_soldes_h.montant_regle
     FROM activite.p_factures_soldes_h,
      activite.p_factures,
      activite.t_medecins_administratifs_c
    WHERE p_factures_soldes_h.no_facture = p_factures.no_facture AND p_factures_soldes_h.medecin_comptabilise_id = t_medecins_administratifs_c.oid;