--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<documents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="../../../defs/config-metier/documents-def.xsd">
+ <document
+ balise="EtatVersement"
+ extension="xml"
+ id="versement-aea"
+ import-class="fr.gouv.finances.dgfip.xemelios.versement-aea.importer.VersementImporter"
+ libelle-extension="de versement AEA (XML)"
+ referentiel="Nomenclatures"
+ referentiel-xslt-file="versement-aea/nomenclature-versement.xsl"
+ schema="EtatVersement.xsd"
+ titre="Aide aux Employeurs d'Apprentis"
+ persistence-config="versement-aea/versement-persistence.xml"
+ isControlable="true"
+ pj-namespace-uri="http://www.minefi.gouv.fr/cp/helios/pes/versement/1.0"
+ ordre-presentation="2"
+ natIdColl="SIRET">
+ <namespaces>
+ <!--ns prefix="" uri="http://www.minefi.gouv.fr/cp/helios/pes/versement/1.0"/-->
+ <ns prefix="n" uri="http://www.minefi.gouv.fr/cp/helios/pes/versement/1.0"/>
+ <ns prefix="added" uri="http://projets.admisource.gouv.fr/xemelios/namespaces#added"/>
+ <ns prefix="ano" uri="http://projets.admisource.gouv.fr/xemelios/namespaces#anomally"/>
+ </namespaces>
+ <special-key path="/EtatVersement/Annee/@V" pos="1" id="annee" libelle="Année"/>
+ <default-budget value="00">Budget Principal</default-budget>
+ <collectivite-path id="c1">
+ <path>/EtatVersement/Emetteur</path>
+ <code-path>/EtatVersement/Emetteur/Siret/@V</code-path>
+ <libelle-path>/EtatVersement/Emetteur/Nom/@V</libelle-path>
+ </collectivite-path>
+ <budget-path id="b1">
+ <path>/EtatVersement/Budget</path>
+ <code-path>Code/@V</code-path>
+ <libelle-path>Libelle/@V</libelle-path>
+ </budget-path>
+ <reference-nomenclature-path id="rn1">
+ <path>/EtatVersement/ReferenceNomenclature</path>
+ <code-path>/EtatVersement/ReferenceNomenclature/Code/@V</code-path>
+ <libelle-path>/EtatVersement/ReferenceNomenclature/Libelle/@V</libelle-path>
+ </reference-nomenclature-path>
+ <entete id="e1">IdVer</entete>
+ <entete id="e2">Annee</entete>
+ <entete id="e3">Date</entete>
+ <entete id="e4">Emetteur</entete>
+ <entete id="e5">Sequence</entete>
+ <entete id="e6">Prestation</entete>
+ <entete id="e7">ReferenceNomenclature</entete>
+ <etat
+ balise="DonneesVersement"
+ balise-namespace="http://www.minefi.gouv.fr/cp/helios/pes/versement/1.0"
+ id="etatVersement"
+ titre="Versements"
+ xslt-file="versement-aea/etatVersement.xsl"
+ use-external-browser="false"
+ exportable="true">
+ <help>Cet état regroupe tous les versements d'Aide aux Employeurs d'Apprentis effectués. Un versement d'Aide aux Employeurs d'Apprentis est effectué pour un bénéficiaire, mais peut être payé à un destinataire différent du bénéficiaire.</help>
+ <element
+ balise="Versement"
+ id="versement-aea"
+ max-display="500"
+ titre="Données de versement par bénéficiaire">
+ <help>L'état des versements effectués.</help>
+ <path>/n:EtatVersement/n:DonneesVersement/n:Versement</path>
+ <environment>
+ <variable name="max-display" domain="element" type="integer">
+ <libelle>Nombre de versements affichés</libelle>
+ <reference name="@max-display"/>
+ <input id="max-display"/>
+ </variable>
+ <variable name="max-display" domain="documents" type="integer">
+ <libelle>Nombre de versements affichés</libelle>
+ <reference name="/documents/document[@id='versement-aea']/etat[@id='etatVersement']/element[@id='versement-aea']/@max-display"/>
+ <input id="max-display"/>
+ </variable>
+ </environment>
+ <liste-resultat ordre="ASC" tri-defaut="lr2">
+ <champ datatype="integer" id="lr1" libelle="Année" affichable="true" exportable="true" identifiant="true">
+ <help>L'année du versement</help>
+ <valeur>n:Annee/@V</valeur>
+ </champ>
+ <champ id="lrCodePrestation" libelle="Prestation" datatype="string" exportable="true">
+ <help>Le code de la prestation d'Aide aux Employeurs d'Apprentis </help>
+ <valeur>n:Prestation/@V</valeur>
+ </champ>
+ <champ id="lrCodePrestationPrincipale" libelle="Prestation Principale" datatype="string" exportable="true">
+ <help>Le code de la prestation principale, dans le cas de flux multi-prestations</help>
+ <valeur>n:Prestation-principale/n:Code/@V</valeur>
+ </champ>
+ <champ id="lr2" libelle="Beneficiaire Nom" affichable="true" exportable="true" identifiant="false">
+ <help>LE nom du bénéficiaire</help>
+ <valeur>n:Beneficiaire[1]/n:InfoTiers/n:Nom/@V</valeur>
+ </champ>
+ <champ id="lr3" libelle="Beneficiaire Prénom" affichable="true" exportable="true" identifiant="false">
+ <help>Le prénom du bénéficiaire</help>
+ <valeur>n:Beneficiaire[1]/n:InfoTiers/n:Prenom/@V</valeur>
+ </champ>
+ <champ id="lr4" libelle="Destinataire Nom" affichable="true" exportable="true" identifiant="false">
+ <help>Le nom du destinataire du paiement</help>
+ <valeur>n:Destinataire/n:InfoTiers/n:Nom/@V</valeur>
+ </champ>
+ <champ id="lr5" libelle="Destinataire Prénom" affichable="true" exportable="true" identifiant="false">
+ <help>Le prénom du destinataire du paiement</help>
+ <valeur>n:Destinataire/n:InfoTiers/n:Prenom/@V</valeur>
+ </champ>
+ <champ id="lr12" libelle="Montant Versement" datatype="amount" exportable="true" aggregate="true">
+ <help>Montant du versement</help>
+ <valeur>n:Mt/@V</valeur>
+ </champ>
+ <champ id="lr6" libelle="Date Versement" datatype="date" affichable="true" exportable="true" identifiant="false">
+ <help>Date de versement</help>
+ <valeur>n:Date/@V</valeur>
+ </champ>
+ <champ id="lr7" libelle="Nature Decision" affichable="true" exportable="true" identifiant="false">
+ <help>Nature de la décision</help>
+ <valeur>n:Decision/n:Nature/@V</valeur>
+ </champ>
+ <champ id="lr8" libelle="PJs" datatype="pj-list" affichable="true" exportable="false" identifiant="false">
+ <help>Liste des pièces justificatives de la décision</help>
+ <valeur>n:Decision/n:PJRef</valeur>
+ </champ>
+ <champ id="mois" libelle="Mois" datatype="string" default-display="false" exportable="true">
+ <help>Mois du versement</help>
+ <valeur>n:Mois/@V</valeur>
+ </champ>
+ <champ id="lrIdDest" libelle="Destinataire (id)" default-display="false" exportable="true" datatype="string">
+ <help>Identifiant du destinataire</help>
+ <valeur>n:Destinataire/n:InfoTiers/n:IdTiers/@V</valeur>
+ </champ>
+ <champ id="lrDestCP" libelle="Destinataire (CP)" default-display="false" exportable="true" datatype="string">
+ <help>Code postal du destinataire</help>
+ <valeur>n:Destinataire/n:Adresse/n:CP/@V</valeur>
+ </champ>
+ <champ id="lrDestVille" libelle="Destinataire (ville)" default-display="false" exportable="true" datatype="string">
+ <help>Ville du destinataire</help>
+ <valeur>n:Destinataire/n:Adresse/n:Ville/@V</valeur>
+ </champ>
+ <champ id="lrBenefId" libelle="Bénéficiare (id)" default-display="false" exportable="true" datatype="string">
+ <help>Identifiant du bénéficiaire</help>
+ <valeur>n:Beneficiaire/n:InfoTiers/n:IdTiers/@V</valeur>
+ </champ>
+ <champ id="lrBenefCP" libelle="Bénéficiaire (CP)" default-display="false" exportable="true" datatype="string">
+ <help>Code postal du bénéficiaire</help>
+ <valeur>n:Beneficiaire/n:Adresse/n:CP/@V</valeur>
+ </champ>
+ <champ id="lrBenefVille" libelle="Bénéficiaire (Ville)" default-display="false" exportable="true" datatype="string">
+ <help>Ville du bénéficiaire</help>
+ <valeur>n:Beneficiaire/n:Adresse/n:Ville/@V</valeur>
+ </champ>
+ <champ id="lrBenefFamille" libelle="Bénéficiaire (famille)" default-display="false" exportable="true" datatype="string">
+ <help>Identifiant de famille du bénéficiaire</help>
+ <valeur>n:Beneficiaire/n:IdFamille/@V</valeur>
+ </champ>
+ <champ id="lrIdVerst" libelle="Versement (SEPA)" default-display="false" exportable="true" datatype="string">
+ <help>Identifiant du versement</help>
+ <valeur>n:IdVerst/@V</valeur>
+ </champ>
+ <champ id="lrIdDossier" libelle="Dossier (id)" default-display="false" exportable="true" datatype="string" identifiant="true">
+ <help>Identifiant du dossier d'Aide aux Employeurs d'Apprentis </help>
+ <valeur>n:IdDossier/@V</valeur>
+ </champ>
+ <champ id="lrDecisionNat" libelle="Décision (nature)" default-display="false" datatype="string" exportable="true">
+ <help>Nature de la décision</help>
+ <valeur>n:Decision/n:Nature/@V</valeur>
+ </champ>
+ <champ id="lrDecisionDateEffet" libelle="Décision (date effet)" default-display="false" datatype="date" exportable="true">
+ <help>Date d'effet de la décision</help>
+ <valeur>n:Decision/n:DateEffet/@V</valeur>
+ </champ>
+ <champ id="lrDecisionDateFin" libelle="Décision (date fin)" default-display="false" datatype="date" exportable="true">
+ <help>Date de fin de la décision</help>
+ <valeur>n:Decision/n:DateFin/@V</valeur>
+ </champ>
+ <champ id="lrDecisionId" libelle="Décision (id.)" default-display="false" affichable="true" exportable="true" identifiant="false">
+ <help>Identifiant de la décision</help>
+ <valeur>n:Decision/n:IdDecision/@V</valeur>
+ </champ>
+ <champ id="lrNumMandat" libelle="Mandat (num)" default-display="false" datatype="string" exportable="true">
+ <help>Numéro du mandat, si connu</help>
+ <valeur>n:NumMandat/@V</valeur>
+ </champ>
+ </liste-resultat>
+
+ <critere id="annee" libelle="Année">
+ <help>Permet de filtrer les versements par année</help>
+ <path>{../../n:Annee/@V=##VALEUR:annee##}</path>
+ <select id="annee" libelle="Année">
+ <special-key-entry distinct="true" pos="1" id="annee"/>
+ </select>
+ </critere>
+ <critere id="mois" libelle="Mois" optional-display-id="mois">
+ <help>Permet de filtrer les versements par mois</help>
+ <path>{n:Mois/@V='##VALEUR:mois##'}</path>
+ <select id="mois" sort="key">
+ <option value="01">Janvier</option>
+ <option value="02">Février</option>
+ <option value="03">Mars</option>
+ <option value="04">Avril</option>
+ <option value="05">Mai</option>
+ <option value="06">Juin</option>
+ <option value="07">Juillet</option>
+ <option value="08">Août</option>
+ <option value="09">Septembre</option>
+ <option value="10">Octobre</option>
+ <option value="11">Novembre</option>
+ <option value="12">Décembre</option>
+ </select>
+ </critere>
+ <critere id="prestation-principale" libelle="Prestation principale">
+ <help>Permet de filtrer les versements par prestation principale. XéMéLios affiche les informations en provenance de la nomenclature associée.</help>
+ <path>{n:Prestation-principale/n:Code/@V="##VALEUR:prestation-principale##"}</path>
+ <select id="prestation-principale" sort="lib">
+ <recherche-paire id="rp1">
+ <path>/n:EtatVersement/n:Nomenclatures/n:NomenclaturePrestation/n:Correspondance</path>
+ <code-path>n:Code/@V</code-path>
+ <libelle-path>n:Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <critere id="prestation" libelle="Prestation">
+ <help>Permet de filtrer les versements par prestation. XéMéLios affiche les onnées en provenance de la nomenclature associée.</help>
+ <path>{n:Prestation/@V="##VALEUR:prestation##"}</path>
+ <select id="prestation">
+ <recherche-paire id="rp2">
+ <path>/n:EtatVersement/n:Nomenclatures/n:NomenclaturePrestation/n:Correspondance</path>
+ <code-path>n:Code/@V</code-path>
+ <libelle-path>n:Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <critere id="code_prestation" libelle="Code Prestation">
+ <help>Permet de filtrer les versements par code de prestation (lorsque la nomenclature des versements n'est pas utilisée)</help>
+ <path>{##OPERATEUR:code_prestation##(upper-case(n:Prestation/@V),"##VALEUR:code_prestation##")}</path>
+ <input datatype="string" id="code_prestation" help="/n:EtatVersement/n:DonneesVersement/n:Versement/n:Prestation/@V" uppercase="true"/>
+ </critere>
+ <critere id="code_prestation_principale" libelle="Code Prestation Principale">
+ <help>Permet de filtrer les versements par code de prestation principale (lorsque la nomenclature des versements n'est pas utilisée)</help>
+ <path>{##OPERATEUR:code_prestation_principale##(upper-case(n:Prestation-principale/n:Code/@V),"##VALEUR:code_prestation_principale##")}</path>
+ <input datatype="string" id="code_prestation_principale" help="/n:EtatVersement/n:DonneesVersement/n:Versement/n:Prestation-principale/n:Code/@V" uppercase="true"/>
+ </critere>
+ <critere id="sequence_num_ordre" libelle="Numéro d'ordre">
+ <help>Permet de filtrer les versement par numéro d'ordre (cas des versements récurents)</help>
+ <path>{../../n:Sequence/n:NumOrdre/@V##OPERATEUR:sequence_num_ordre####VALEUR:sequence_num_ordre##}</path>
+ <input datatype="numeric" id="sequence_num_ordre"/>
+ </critere>
+ <critere id="id_tiers_dest" libelle="Destinataire (identifiant)" optional-display-id="lrIdDest">
+ <help>Permet de filtrer les versements par identifiant de destinataire de paiement</help>
+ <path>{##OPERATEUR:id_tiers_dest##(upper-case(n:Destinataire/n:InfoTiers/n:IdTiers/@V),"##VALEUR:id_tiers_dest##")}</path>
+ <input datatype="string" id="id_tiers_dest" uppercase="true"/>
+ </critere>
+ <critere id="type_tiers_dest" libelle="Destinataire (type)" optional-display-id="lrTypeDest">
+ <help>Permet de filtrer les versements par type de destinataire de paiement</help>
+ <path>{##OPERATEUR:type_tiers_dest##(upper-case(n:Destinataire/n:InfoTiers/n:TypTiers/@V),"##VALEUR:type_tiers_dest##")}</path>
+ <input datatype="string" uppercase="true" id="type_tiers_dest" help="/n:EtatVersement/n:DonneesVersement/n:Versement/n:Destinataire/n:InfoTiers/n:TypTiers/@V"/>
+ </critere>
+ <critere id="cat_tiers_dest" libelle="Destinataire (catégorie)" optional-display-id="lrCatDest">
+ <help>Permet de filtrer les versements par catégorie de destinataire</help>
+ <path>{n:Destinataire/n:InfoTiers/n:CatTiers/@V="##VALEUR:cat_tiers_value##"}</path>
+ <!--input datatype="string" id="cat_tiers_dest" help="/EtatVersement/DonneesVersement/Versement/Destinataire/InfoTiers/CatTiers/@V" uppercase="true"/-->
+ <select id="cat_tiers_value">
+ <option value="01">Personne Physique</option>
+ <option value="20">État et établissements publics nationaux</option>
+ <option value="21">Régions</option>
+ <option value="22">Départements</option>
+ <option value="23">Communes</option>
+ <option value="24">Groupements de collectivités</option>
+ <option value="25">Caisses des écoles</option>
+ <option value="26">CCAS</option>
+ <option value="27">Établissements publics de santé</option>
+ <option value="28">École nationale de la santé publique</option>
+ <option value="29">Autres établissements publics et organismes internationaux</option>
+ <option value="50">Personnes morales de droit privé autres qu'organismes sociaux</option>
+ <option value="60">Caisses de sécurité sociale régime général</option>
+ <option value="61">Caisses de sécurité sociale régime agricole</option>
+ <option value="62">Sécurité sociale des travailleurs non salariés et professions non agricoles</option>
+ <option value="63">Autres régimes obligatoires de sécurité sociale</option>
+ <option value="64">Mutuelles et organismes d'assurance</option>
+ <option value="65">Divers autres tiers payants</option>
+ <option value="70">CNRACL</option>
+ <option value="71">IRCANTEC</option>
+ <option value="72">ASSEDIC</option>
+ <option value="73">Caisses mutualistes de retraite complémentaires</option>
+ <option value="74">Autres organismes sociaux</option>
+ </select>
+ </critere>
+ <critere id="cp_dest" libelle="Destinataire (code postal)" optional-display-id="lrDestCP">
+ <help>Permet de filtrer les versements par code postal de destinataire de paiement</help>
+ <path>{##OPERATEUR:cp_dest##(n:Destinataire/n:Adresse/n:CP/@V,"##VALEUR:cp_dest##")}</path>
+ <input datatype="string" id="cp_dest"/>
+ </critere>
+ <critere id="ville_dest" libelle="Destinataire (ville)" optional-display-id="lrDestVille">
+ <help>Permet de filtrer les versements par ville de destinataire de paiement</help>
+ <path>{##OPERATEUR:ville_dest##(upper-case(n:Destinataire/n:Adresse/n:Ville/@V),"##VALEUR:ville_dest##")}</path>
+ <input datatype="string" id="ville_dest" uppercase="true"/>
+ </critere>
+ <critere id="nom_dest" libelle="Destinataire (nom)">
+ <help>Permet de filtrer les versements par nom de destinataire de paiement</help>
+ <path>{##OPERATEUR:nom_dest##(upper-case(n:Destinataire/n:InfoTiers/n:Nom/@V),"##VALEUR:nom_dest##")}</path>
+ <input datatype="string" id="nom_dest" uppercase="true"/>
+ </critere>
+ <critere id="id_tiers_benef" libelle="Bénéficiaire (identifiant)" optional-display-id="lrBenefId">
+ <help>Permet de filtrer les versements par identifiant de bénéficiaire</help>
+ <path>{n:Beneficiaire/n:InfoTiers{##OPERATEUR:id_tiers_benef##(upper-case(n:IdTiers/@V),"##VALEUR:id_tiers_benef##")}}</path>
+ <input datatype="string" id="id_tiers_benef" uppercase="true"/>
+ </critere>
+ <critere id="type_tiers_benef" libelle="Bénéficiaire (type)" optional-display-id="lrBenefType">
+ <help>Permet de filtrer les versements par type de bénéficiaire</help>
+ <path>{n:Beneficiaire/n:InfoTiers{##OPERATEUR:type_tiers_benef##(upper-case(n:TypTiers/@V),"##VALEUR:type_tiers_benef##")}}</path>
+ <input datatype="string" id="type_tiers_benef" uppercase="true"/>
+ </critere>
+ <critere id="cat_tiers_benef" libelle="Bénéficiaire (catégorie)" optional-display-id="lrBenefCat">
+ <help>Permet de filtrer les versements par catégorie de bénéficiaire</help>
+ <path>{n:Beneficiaire/n:InfoTiers{n:CatTiers/@V="##VALEUR:cat_tiers_value##"}}</path>
+ <!--input datatype="string" id="cat_tiers_benef" help="/EtatVersement/DonneesVersement/Versement/Beneficiaire/InfoTiers/CatTiers/@V" uppercase="true"/-->
+ <select id="cat_tiers_value">
+ <option value="01">Personne Physique</option>
+ <option value="20">État et établissements publics nationaux</option>
+ <option value="21">Régions</option>
+ <option value="22">Départements</option>
+ <option value="23">Communes</option>
+ <option value="24">Groupements de collectivités</option>
+ <option value="25">Caisses des écoles</option>
+ <option value="26">CCAS</option>
+ <option value="27">Établissements publics de santé</option>
+ <option value="28">École nationale de la santé publique</option>
+ <option value="29">Autres établissements publics et organismes internationaux</option>
+ <option value="50">Personnes morales de droit privé autres qu'organismes sociaux</option>
+ <option value="60">Caisses de sécurité sociale régime général</option>
+ <option value="61">Caisses de sécurité sociale régime agricole</option>
+ <option value="62">Sécurité sociale des travailleurs non salariés et professions non agricoles</option>
+ <option value="63">Autres régimes obligatoires de sécurité sociale</option>
+ <option value="64">Mutuelles et organismes d'assurance</option>
+ <option value="65">Divers autres tiers payants</option>
+ <option value="70">CNRACL</option>
+ <option value="71">IRCANTEC</option>
+ <option value="72">ASSEDIC</option>
+ <option value="73">Caisses mutualistes de retraite complémentaires</option>
+ <option value="74">Autres organismes sociaux</option>
+ </select>
+ </critere>
+ <critere id="cp_benef" libelle="Bénéficiaire (code postal)" optional-display-id="lrBenefCP">
+ <help>Permet de filtrer les versements par code postal de bénéficiaire</help>
+ <path>{n:Beneficiaire/n:Adresse{##OPERATEUR:cp_benef##(n:CP/@V,"##VALEUR:cp_benef##")}}</path>
+ <input datatype="string" id="cp_benef"/>
+ </critere>
+ <critere id="ville_benef" libelle="Bénéficiaire (ville)" optional-display-id="lrBenefVille">
+ <help>Permet de filtrer les versements par ville de bénéficiaire</help>
+ <path>{n:Beneficiaire/n:Adresse{##OPERATEUR:ville_benef##(upper-case(n:Ville/@V),"##VALEUR:ville_benef##")}}</path>
+ <input datatype="string" id="ville_benef" uppercase="true"/>
+ </critere>
+ <critere id="nom_benef" libelle="Bénéficiaire (nom)">
+ <help>Permet de filtrer les versements par nom de bénéficiaire</help>
+ <path>{n:Beneficiaire/n:InfoTiers{##OPERATEUR:nom_benef##(upper-case(n:Nom/@V),"##VALEUR:nom_benef##")}}</path>
+ <input datatype="string" id="nom_benef" uppercase="true"/>
+ </critere>
+ <critere id="benef_famille" libelle="Bénéficiaire (famille)" optional-display-id="lrBenefFamille">
+ <help>Permet de filtrer les versements par identifiant de famille de bénéficiaire</help>
+ <path>{n:Beneficiaire{##OPERATEUR:benef_famille##(upper-case(n:IdFamille/@V),"##VALEUR:benef_famille##")}}</path>
+ <input id="benef_famille" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="benef_date_naiss" libelle="Bénéficiaire (date naissance)" optional-display-id="lrBenefNaiss">
+ <help>Permet de filtrer les versements par date de naissance de bénéficiaire</help>
+ <path>{n:Beneficiaire{##OPERATEUR:naissance##(n:DateNaissance/@V,"##VALEUR:naissance##")}}</path>
+ <input id="naissance" datatype="date"/>
+ </critere>
+ <critere id="id_verst" libelle="Versement (identifiant)" optional-display-id="lrIdVerst">
+ <help>Permet de filtrer les versements par identifiant</help>
+ <path>{##OPERATEUR:id_verst##(n:IdVerst/@V,"##VALEUR:id_verst##")}</path>
+ <input datatype="string" id="id_verst"/>
+ </critere>
+ <critere id="rib_verst" libelle="Versement (rib)" optional-display-id="lr17">
+ <help>Permet de filtrer les versements par coordonnées bancaires</help>
+ <path>{##OPERATEUR:rib_verst##(n:CpteBancaire/@rib,"##VALEUR:rib_verst##")}</path>
+ <input id="rib_verst" datatype="string"/>
+ </critere>
+ <critere id="date_verst" libelle="Versement (date)">
+ <help>Permet de filtrer les versements par date de versement</help>
+ <path>{##OPERATEUR:date_verst##(n:Date/@V,"##VALEUR:date_verst##")}</path>
+ <input id="date_verst" datatype="date"/> <!-- xml-format="yyyy-MM-dd" -->
+ </critere>
+ <critere id="mt_verst" libelle="Versement (montant)">
+ <help>Permet de filtrer les versements par montant</help>
+ <path>{n:Mt/@V##OPERATEUR:mt####VALEUR:mt##}</path>
+ <input id="mt" datatype="numeric"/>
+ </critere>
+ <critere id="id_doss" libelle="Dossier (identifiant)" optional-display-id="lrIdDossier">
+ <help>Permet de filtrer les versements par numéro de dossier</help>
+ <path>{##OPERATEUR:id_doss##(upper-case(n:IdDossier/@V),"##VALEUR:id_doss##")}</path>
+ <input datatype="string" id="id_doss" uppercase="true"/>
+ </critere>
+ <critere id="nature_decision" libelle="Décision (nature)" optional-display-id="lrDecisionNat">
+ <help>Permet de filtrer les versements par nature de décision</help>
+ <path>{##OPERATEUR:nature_decision##(upper-case(n:Decision/n:Nature/@V),"##VALEUR:nature_decision##")}</path>
+ <input datatype="string" id="nature_decision" uppercase="true" help="/n:EtatVersement/n:DonneesVersement/n:Versement/n:Decision/n:Nature/@V"/>
+ </critere>
+ <critere id="date_decision" libelle="Décision (date)">
+ <help>Permet de filtrer les versements par date de décision</help>
+ <path>{##OPERATEUR:date_decision##(n:Decision/n:Date/@V,"##VALEUR:date_decision##")}</path>
+ <input datatype="date" id="date_decision"/>
+ </critere>
+ <critere id="date_effet_decision" libelle="Décision (date effet)" optional-display-id="lrDecisionDateEffet">
+ <help>Permet de filtrer les versements par date d'effet de décision</help>
+ <path>{##OPERATEUR:date_effet_decision##(n:Decision/n:DateEffet/@V,"##VALEUR:date_effet_decision##")}</path>
+ <input datatype="date" id="date_effet_decision"/>
+ </critere>
+ <critere id="date_fin_decision" libelle="Décision (date fin)" optional-display-id="lrDecisionDateFin">
+ <help>Permet de filtrer les versements par date de fin de décision</help>
+ <path>{##OPERATEUR:date_fin_decision##(n:Decision/n:DateFin/@V,"##VALEUR:date_fin_decision##")}</path>
+ <input datatype="date" id="date_fin_decision"/>
+ </critere>
+ <critere id="decision_id" libelle="Décision (identifiant)" optional-display-id="lrDecisionId">
+ <help>Permet de filtrer les versements par identifiant de décision</help>
+ <path>{##OPERATEUR:decision_id##(upper-case(n:Decision/n:IdDecision/@V),"##VALEUR:decision_id##")}</path>
+ <input id="decision_id" uppercase="true" datatype="string"/>
+ </critere>
+ <critere id="existence_pj" libelle="Décision (PJ)">
+ <help>Permet de ne chercher que les versements qui ont une pièce justificative attachée à la décision</help>
+ <path>{n:Decision/n:PJRef}</path>
+ <blank/>
+ </critere>
+ <critere id="service" libelle="Service" optional-display-id="lrService">
+ <help>Permet de filtrer les versements par service</help>
+ <path>{##OPERATEUR:service##(upper-case(n:Service/@V),"##VALEUR:service##")}</path>
+ <input datatype="string" id="service" uppercase="true"/>
+ </critere>
+ <critere id="mandat" libelle="Mandat (num)" optional-display-id="lrNumMandat">
+ <help>Permet de filtrer les versements par numéro de mandat. Attention, il est rare que cette information soit présente, le mandattement étant en général réalisé après la constitution des flux justificatifs.</help>
+ <path>{##OPERATEUR:mandat##(upper-case(n:NumMandat/@V),"##VALEUR:mandat##")}</path>
+ <input id="mandat" datatype="string" uppercase="true" help="/n:EtatVersement/n:DonneesVersement/n:Versement/n:NumMandat/@V"/>
+ </critere>
+ <critere id="nature" libelle="Code Nature" optional-display-id="lrCodeNature">
+ <help>Permet de filtrer les versements par article nature de l'imputation budgétaire</help>
+ <path>{n:CodeNature/@V="##VALEUR:nature##"}</path>
+ <select id="nature">
+ <recherche-paire id="rp4">
+ <path>/n:EtatVersement/n:Nomenclatures/n:NomenclatureNature/n:Correspondance</path>
+ <code-path>n:Code/@V</code-path>
+ <libelle-path>n:Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <critere id="budget" libelle="Code Budget" optional-display-id="lrCodeBudget">
+ <help>Permet de filtrer les versements par code budget de l'imputation</help>
+ <path>{n:CodeBuget/@V="##VALEUR:budget##"}</path>
+ <select id="budget">
+ <recherche-paire id="rp3">
+ <path>/n:EtatVersement/n:Nomenclatures/n:NomenclatureBudget/n:Correspondance</path>
+ <code-path>n:Code/@V</code-path>
+ <libelle-path>n:Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <critere id="fonction" libelle="Code Fonction" optional-display-id="lrCodeFonction">
+ <help>Permet de filtrer les versements par article fonction de l'imputation budgétaire</help>
+ <path>{##OPERATEUR:fonction##(upper-case(n:CodeFonction/@V),"##VALEUR:fonction##")}</path>
+ <input id="fonction" datatype="string" uppercase="true" help="/n:EtatVersement/n:DonneesVersement/n:Versement/n:CodeFonction/@V"/>
+ </critere>
+ <critere id="comment" libelle="Commentaire">
+ <help>Permet de filtrer par commentaire</help>
+ <path>{##OPERATEUR:comment##(upper-case(n:Commentaire/@V),"##VALEUR:comment##")}</path>
+ <input id="comment" datatype="string" uppercase="true"/>
+ </critere>
+ </element>
+ </etat>
+ <etat
+ balise="RepartitionParNature"
+ balise-namespace="http://www.minefi.gouv.fr/cp/helios/pes/versement/1.0"
+ id="RepartitionNature"
+ titre="Répartitions par nature"
+ use-external-browser="false"
+ exportable="true">
+ <help>Représente la répartition des versements par Nature, et éventuellement par fonction lorsque la collectivité vote son budget par fonction ou par nature avec références fonctionnelles.</help>
+ <element
+ balise="Repartition"
+ id="DetailRepartitionNature"
+ max-display="1000"
+ titre="Répartitions par nature">
+ <help>La ligne de répartition par nature</help>
+ <path>/n:EtatVersement/n:RepartitionParNature/n:Repartition</path>
+ <environment>
+ <variable name="max-display" domain="element" type="integer">
+ <libelle>Nombre de répartitions affichées</libelle>
+ <reference name="@max-display"/>
+ </variable>
+ <variable name="max-display" domain="documents" type="integer">
+ <libelle>Nombre de répartitions affichées</libelle>
+ <reference name="/documents/document[@id='versement']/etat[@id='RepartitionNature']/element[@id='DetailRepartitionNature']/@max-display"/>
+ </variable>
+ </environment>
+ <liste-resultat ordre="ASC" tri-defaut="lrx1">
+ <champ id="lrx1" libelle="Année" affichable="true" exportable="true" identifiant="false">
+ <help>L'année</help>
+ <valeur>n:Annee/@V</valeur>
+ </champ>
+ <champ id="lrx2" libelle="Libellé" affichable="true" exportable="true" identifiant="false">
+ <help>Le libellé</help>
+ <valeur>n:Libelle/@V</valeur>
+ </champ>
+ <champ id="lrx3" libelle="Code" affichable="true" exportable="true" identifiant="false">
+ <help>L'article nature</help>
+ <valeur>n:Code/@V</valeur>
+ </champ>
+ <champ datatype="amount" id="lrx4" libelle="Montant" affichable="true" exportable="true" identifiant="false">
+ <help>Le montant</help>
+ <valeur>n:Mt/@V</valeur>
+ </champ>
+ <champ id="lrx5" libelle="Code Budget" affichable="true" exportable="true" identifiant="false">
+ <help>Le code du budget</help>
+ <valeur>n:CodeBudget/@V</valeur>
+ </champ>
+ <champ id="lrx6" libelle="Code Fonction" affichable="true" exportable="true" identifiant="false">
+ <help>L'article fonction</help>
+ <valeur>n:CodeFonction/@V</valeur>
+ </champ>
+ </liste-resultat>
+ <critere id="annee" libelle="Année">
+ <help>Permet de filtrer par année</help>
+ <path>{../../n:Annee/@V=##VALEUR:annee##}</path>
+ <select id="annee" libelle="Année">
+ <special-key-entry distinct="true" pos="1" id="annee"/>
+ </select>
+ </critere>
+ <critere id="code-fonction" libelle="Fonction">
+ <help>Permet de filtrer par article fonction</help>
+ <path>{##OPERATEUR:code-fonction##(upper-case(n:CodeFonction/@V),"##VALEUR:code-fonction##")}</path>
+ <input id="code-fonction" datatype="string" help="/n:EtatVersement/n:RepartitionParNature/n:Repartition/n:CodeFonction/@V" uppercase="true"/>
+ </critere>
+ <critere id="code-budget" libelle="Budget">
+ <help>Permet de filtrer par code budget</help>
+ <path>{n:CodeBudget/@V="##VALEUR:code-budget##"}</path>
+ <select id="code-budget" sort="lib">
+ <recherche-paire id="rp5">
+ <path>/n:EtatVersement/n:Nomenclatures/n:NomenclatureBudget/n:Correspondance</path>
+ <code-path>n:Code/@V</code-path>
+ <libelle-path>n:Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <!--critere id="annee" libelle="Année">
+ <path>{../../Annee/@V##OPERATEUR:annee##"##VALEUR:annee##"}</path>
+ <input datatype="numeric" id="annee"/>
+ </critere-->
+ </element>
+ </etat>
+ <etat
+ balise="TotalisationsDestinataires"
+ balise-namespace="http://www.minefi.gouv.fr/cp/helios/pes/versement/1.0"
+ id="totalisation"
+ titre="Totalisations par destinataire"
+ cardinalite-titre="P"
+ genre-titre="F"
+ use-external-browser="false"
+ displayInMenuIf="versement.totalisation.visible">
+ <help>Cette état regroupe les totalisations des montants versés par prestation et par destinataire de paiement. L'usage de cet état implique la présence d'une nomenclature des prestations.</help>
+ <element
+ balise="Totalisation"
+ id="total"
+ max-display="200"
+ titre="Totalisations par destinataires">
+ <help>Une ligne de totalisation pour une prestation et un destinataire de paiement.</help>
+ <path>/n:EtatVersement/n:TotalisationsDestinataires/n:Totalisation</path>
+ <environment>
+ <variable name="max-display" domain="element" type="integer">
+ <libelle>Nombre de totalisations affichées</libelle>
+ <reference name="@max-display"/>
+ </variable>
+ <variable name="max-display" domain="documents" type="integer">
+ <libelle>Nombre de totalisations affichées</libelle>
+ <reference name="/documents/document[@id='versement']/etat[@id='totalisation']/element[@id='total']/@max-display"/>
+ </variable>
+ </environment>
+ <liste-resultat ordre="ASC,ASC" tri-defaut="code.prestation,RefTiers">
+ <!-- champ id="prestation" libelle="Prestation">
+ <valeur>n:Prestation/@added:libelle</valeur>
+ </champ -->
+ <champ id="code.prestation" libelle="Code prestation">
+ <valeur>n:Prestation/@V</valeur>
+ </champ>
+ <champ id="idTiers" libelle="Id Destinataire">
+ <valeur>n:Destinataire/n:InfoTiers/n:IdTiers/@V</valeur>
+ </champ>
+ <champ id="TypTiers" libelle="Type Destinataire">
+ <valeur>n:Destinataire/n:InfoTiers/n:TypTiers/@V</valeur>
+ </champ>
+ <champ id="NatIdTiers" libelle="Nature Id. Destinataire">
+ <valeur>n:Destinataire/n:InfoTiers/n:NatIdTiers/@V</valeur>
+ </champ>
+ <champ id="RefTiers" libelle="Réf. Destinataire">
+ <help>Référence du destinataire chez l'ordonnateur</help>
+ <valeur>n:Destinataire/n:InfoTiers/n:IdTiers/@V</valeur>
+ </champ>
+ <champ id="CatTiers" libelle="Catégorie Destinataire">
+ <valeur>n:Destinataire/n:InfoTiers/n:CatTiers/@V</valeur>
+ </champ>
+ <champ id="NatJur" libelle="Nature Juridique">
+ <help>La nature juridique du destinataire</help>
+ <valeur>n:Destinataire/n:InfoTiers/n:NatJur/@V</valeur>
+ </champ>
+ <champ id="Nom" libelle="Nom">
+ <valeur>n:Destinataire/n:InfoTiers/n:Nom/@V</valeur>
+ </champ>
+ <champ id="Typologie" libelle="Typologie Destinataire">
+ <valeur>n:Destinataire/n:InfoTiers/n:Typologie/@V</valeur>
+ </champ>
+ <champ id="CP" libelle="Code Postal">
+ <valeur>n:Destinataire/n:Adresse/n:CP/@V</valeur>
+ </champ>
+ <champ id="Ville" libelle="Ville">
+ <valeur>n:Destinataire/n:Adresse/n:Ville/@V</valeur>
+ </champ>
+ <champ id="CpteBancaire" libelle="Compte Bancaire">
+ <valeur>n:Destinataire/n:CpteBancaire/@rib</valeur>
+ </champ>
+ <champ id="Montant" libelle="Montant" datatype="amount">
+ <valeur>n:Montant/@V</valeur>
+ </champ>
+ </liste-resultat>
+ <critere id="tot.annee" libelle="Année">
+ <help>Permet de filtrer les totalisations par année</help>
+ <path>{../../n:Annee/@V=##VALEUR:annee##}</path>
+ <select id="annee" libelle="Année">
+ <special-key-entry distinct="true" pos="1" id="annee"/>
+ </select>
+ </critere>
+ <critere id="tot.prestation" libelle="Prestation">
+ <help>Permet de filtrer les totalisations par prestations</help>
+ <path>{n:Prestation/@V='##VALEUR:prestation##'}</path>
+ <select id="prestation">
+ <recherche-paire id="rp">
+ <path>/n:EtatVersement/n:Nomenclatures/n:NomenclaturePrestation/n:Correspondance</path>
+ <code-path>n:Code/@V</code-path>
+ <libelle-path>n:Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <critere id="tot.id.tiers" libelle="Id. Destinataire">
+ <help>Permet de filtrer par identifiant de destiantaire de paiement.</help>
+ <path>{##OPERATEUR:idtiers##(upper-case(n:Destinataire/n:InfoTiers/n:IdTiers/@V),'##VALEUR:idtiers##')}</path>
+ <input id="idtiers" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="tot.type.tiers" libelle="Type Destinataire">
+ <help>Permet de filtrer par type de destinataire</help>
+ <path>{n:Destinataire/n:InfoTiers/n:TypTiers/@V='##VALEUR:typTiers##'}</path>
+ <select id="typTiers">
+ <option value="01">Débiteur principal</option>
+ <option value="02">Débiteur appliquant des règles particulières</option>
+ <option value="03">Débiteur solidaire</option>
+ <option value="04">Co-débiteur</option>
+ <option value="05">Employeur</option>
+ <option value="06">Malade</option>
+ <option value="07">Assuré</option>
+ </select>
+ </critere>
+ <critere id="tot.natIdTiers" libelle="Nature d'identifiant de destinataire">
+ <help>Permet de filtrer par nature d'identifiant de destinataire</help>
+ <path>{n:Destinataire/n:InfoTiers/n:NatIdTiers/@V='##VALEUR:natIdTiers##'}</path>
+ <select id="natIdTiers">
+ <option value="01">SIRET</option>
+ <option value="O2">SIREN</option>
+ <option value="03">FINESS</option>
+ <option value="04">NIR</option>
+ </select>
+ </critere>
+ <critere id="tot.refTiers" libelle="Référence du destinataire">
+ <help>Permet de filtrer par référence (ordonnateur) du destinataire</help>
+ <path>{##OPERATEUR:refTiers##(upper-case(n:Destinataire/n:InfoTiers/n:RefTiers/@V),'##VALEUR:refTiers##')}</path>
+ <input id="refTiers" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="tot.catTiers" libelle="Catégorie destinataire">
+ <help>Permet de filtrer par catégorie de destinataire</help>
+ <path>{n:Destinataire/n:InfoTiers/n:CatTiers/@V='##VALEUR:catTiers##'}</path>
+ <select id="catTiers">
+ <option value="01">Personne Physique</option>
+ <option value="20">État et établissements publics nationaux</option>
+ <option value="21">Régions</option>
+ <option value="22">Départements</option>
+ <option value="23">Communes</option>
+ <option value="24">Groupements de collectivités</option>
+ <option value="25">Caisses des écoles</option>
+ <option value="26">CCAS</option>
+ <option value="27">Établissements publics de santé</option>
+ <option value="28">École nationale de la santé publique</option>
+ <option value="29">Autres établissements publics et organismes internationaux</option>
+ <option value="50">Personnes morales de droit privé autres qu'organismes sociaux</option>
+ <option value="60">Caisses de sécurité sociale régime général</option>
+ <option value="61">Caisses de sécurité sociale régime agricole</option>
+ <option value="62">Sécurité sociale des travailleurs non salariés et professions non agricoles</option>
+ <option value="63">Autres régimes obligatoires de sécurité sociale</option>
+ <option value="64">Mutuelles et organismes d'assurance</option>
+ <option value="65">Divers autres tiers payants</option>
+ <option value="70">CNRACL</option>
+ <option value="71">IRCANTEC</option>
+ <option value="72">ASSEDIC</option>
+ <option value="73">Caisses mutualistes de retraite complémentaires</option>
+ <option value="74">Autres organismes sociaux</option>
+ </select>
+ </critere>
+ <critere id="tot.natJur" libelle="Nature juridique du destinataire">
+ <help>Permet de filtrer par nature jurdique du destinataire</help>
+ <path>n:Destinataire/n:InfoTiers/n:NatJur/@V='##VALEUR:natJur##'</path>
+ <select id="natJur">
+ <option value="01">Particuliers</option>
+ <option value="02">Artisan / Commerçant / Agriculteur</option>
+ <option value="03">Société</option>
+ <option value="04">CAM</option>
+ <option value="05">Caisse complémentaire</option>
+ <option value="06">Association</option>
+ <option value="07">Etat ou organisme d'état</option>
+ <option value="08">Etablissement public national</option>
+ <option value="09">CEPL / CEPS</option>
+ <option value="10">Etat étranger / Ambassade</option>
+ <option value="11">CAF</option>
+ </select>
+ </critere>
+ <critere id="tot.nom" libelle="Nom du destinataire">
+ <help>Permet de filtrer par nom de destinataire.</help>
+ <path>{##OPERATEUR:nom##(upper-case(n:Destinataire/n:InfoTiers/n:Nom/@V),'##VALEUR:nom##')}</path>
+ <input id="nom" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="tot.typologie" libelle="Typologie destinataire">
+ <help>Permet de filtrer par typologie de destinataire.</help>
+ <path>{n:Destinataire/n:InfoTiers/n:Typologie='##VALEUR:typologie##'}</path>
+ <select id="typologie">
+ <recherche-paire id="rp1">
+ <path>/n:EtatVersement/n:Nomenclatures/n:NomenclatureTypologie/n:Correspondance</path>
+ <code-path>n:Code/@V</code-path>
+ <libelle-path>n:Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <critere id="tot.cp" libelle="Code Postal Destinataire">
+ <help>Permet de filtrer par code postal de destinataire.</help>
+ <path>{##OPERATEUR:cp##(upper-case(n:Destinataire/n:Adresse/n:CP/@V),'##VALEUR:cp##')}</path>
+ <input id="cp" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="tot.ville" libelle="Ville Destinataire">
+ <help>Permet de filtrer par ville de destinataire.</help>
+ <path>{##OPERATEUR:ville##(upper-case(n:Destinataire/n:Adresse/n:Ville/@V),'##VALEUR:ville##')}</path>
+ <input id="ville" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="tot.rib" libelle="RIB Destinataire">
+ <help>Permet de filtrer par compte bancaire.</help>
+ <path>{##OPERATEUR:rib##(upper-case(n:Destinataire/n:CpteBancaire/@rib),'##VALEUR:rib##')}</path>
+ <input id="rib" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="tot.montant" libelle="Montant">
+ <help>Permet de filtrer par montant.</help>
+ <path>{n:Montant/@V##OPERATEUR:mt####VALEUR:mt##}</path>
+ </critere>
+ </element>
+ </etat>
+
+ </document>
+</documents>