--- /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="DOC_PES_Facture"
+ extension="xml"
+ id="pes-facture"
+ referentiel="Nomenclatures"
+ import-class="fr.gouv.finances.dgfip.xemelios.importers.ImporterWithXSLBeforeSplitFile"
+ libelle-extension="de l'Etat de PES Facture (XML)"
+ schema="FacturePES.xsd"
+ titre="PES Facture"
+ genre-titre="F"
+ persistence-config="PES_Facture/pes-facture-persist.xml"
+ menu-grouping="group"
+ isControlable="false"
+ displayInMenuIf="do.not.set.this.property"
+ natIdColl="SIRET">
+ <namespaces>
+ <!--ns prefix="" uri="http://www.minefi.gouv.fr/cp/helios/pes_v2/facture"/-->
+ <ns prefix="n" uri="http://www.minefi.gouv.fr/cp/helios/pes_v2/facture"/>
+ <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>
+ <default-budget value="00">Budget Principal</default-budget>
+ <collectivite-path id="cp1">
+ <path>/DOC_PES_Facture/PESFacture</path>
+ <code-path>/DOC_PES_Facture/PESFacture/@collectivite</code-path>
+ <libelle-path>/DOC_PES_Facture/PESFacture/@collectivite</libelle-path>
+ </collectivite-path>
+ <budget-path id="bp1">
+ <path>/PES_Aller/EnTetePES</path>
+ <code-path>/PES_Aller/EnTetePES/CodBud/@V</code-path>
+ <libelle-path>/PES_Aller/EnTetePES/LibBud/@V</libelle-path>
+ </budget-path>
+ <parameters>
+ <parameter name="attribute.collectivite.location"><![CDATA[/DOC_PES_Facture/PESFacture]]></parameter>
+ <parameter name="attribute.collectivite.value"><![CDATA[/PESFacture/Emetteur/InfoTiers/RefTiers/@V]]></parameter>
+ <parameter name="attribute.collectivite.name" value="added:collectivite"/>
+ <parameter name="stop.parsing" value="PESFacture/FactureIndiv"/>
+ </parameters>
+ <entete id="e1">IdVer</entete>
+ <entete id="e2">Annee</entete>
+ <entete id="e3">NumSequence</entete>
+ <entete id="e4">Date</entete>
+ <entete id="e5">Emetteur</entete>
+ <etat
+ balise="PESFacture"
+ balise-namespace="http://www.minefi.gouv.fr/cp/helios/pes_v2/facture"
+ id="PESFacture"
+ titre="PES Facture"
+ use-external-browser="false"
+ importable-element="FactureIndiv"
+ xslt-file="PES_Facture/PES-Facture.xsl">
+ <help>Cet état contient l'ensemble des factures du flux.</help>
+ <element balise="FactureIndiv" id="FactureIndiv" max-display="500" titre="Facture">
+ <path>/n:DOC_PES_Facture/n:PESFacture/n:FactureIndiv</path>
+<!--
+ <liste-resultat ordre="ASC" tri-defaut="lr1">
+ <hidden name="xsl-param:numeroFacture">
+ <valeur>NumeroFacture/@V</valeur>
+ </hidden>
+ <champ id="lr1" datatype="date" libelle="Date d'émission" aggregate="false">
+ <valeur>DateEmission/@V</valeur>
+ </champ>
+ <champ id="lr2" libelle="Nom fournisseur" datatype="string" aggregate="false">
+ <valeur>@added:fournisseur</valeur>
+ </champ>
+ <champ id="lr3" datatype="string" libelle="N° Marché" aggregate="false">
+ <valeur>NumeroMarche/@V</valeur>
+ </champ>
+ <champ id="lr4" datatype="string" libelle="N° Facture" aggregate="false">
+ <valeur>NumeroFacture/@V</valeur>
+ </champ>
+ <champ id="lr5" datatype="string" libelle="Libellé produit" aggregate="false">
+ <valeur>Object/@V</valeur>
+ </champ>
+ <champ id="lr6" datatype="amount" libelle="Montant HT" aggregate="true">
+ <valeur>TotalAPayer/MtTotalHT/@V</valeur>
+ </champ>
+ <champ id="lr7" datatype="amount" libelle="Montant TVA" aggregate="true">
+ <valeur>TotalAPayer/MtTotalTVA/@V</valeur>
+ </champ>
+ <champ id="lr8" datatype="amount" libelle="Montant TTC" aggregate="true">
+ <valeur>TotalAPayer/MtTotalTTC/@V</valeur>
+ </champ>
+
+ </liste-resultat>
+ <critere id="_CRI_PES_FACTURE_FOURNISSEUR" libelle="Fournisseur">
+ <path>{##OPERATEUR:fournisseur##(@added:fournisseur,"##VALEUR:fournisseur##")}</path>
+ <input id="fournisseur" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="_CRI_PES_FACTURE_PRIXUNITAIRE" libelle="Prix HT">
+ <path>{n:LigneFacture/n:MtUnitaire/@V##OPERATEUR:prixht####VALEUR:prixht##}</path>
+ <input id="prixht" datatype="numeric"/>
+ </critere>
+ <critere id="_CRI_PES_FACTURE_QUANTITE" libelle="Quantité">
+ <path>{n:LigneFacture/n:MtUnitaire/@V##OPERATEUR:quantite####VALEUR:quantite##}</path>
+ <input id="quantite" datatype="numeric"/>
+ </critere>
+ <critere id="_CRI_PES_FACTURE_MONTANT_HT" libelle="Total HT des factures du relevé">
+ <path>{../@added:montantHT##OPERATEUR:montantHT####VALEUR:montantHT##}</path>
+ <input id="montantHT" datatype="numeric"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_PESFACTURE_FACTUREINDIV_MTTOTALHT" libelle="Montant HT d'une facture">
+ <path>{n:TotalAPayer/n:MtTotalHT/@V##OPERATEUR:MtTotalHT####VALEUR:MtTotalHT##}</path>
+ <input id="MtTotalHT" datatype="numeric"/>
+ </critere>
+ <critere id="_CRI_PES_FACTURE_MONTANT_TTC" libelle="Total TTC des factures du relevé">
+ <path>{../@added:montantTTC##OPERATEUR:montantTTC####VALEUR:montantTTC##}</path>
+ <input id="montantTTC" datatype="numeric"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_PESFACTURE_FACTUREINDIV_MTTOTALTTC" libelle="Montant TTC d'une facture">
+ <path>{n:TotalAPayer/n:MtTotalTTC/@V##OPERATEUR:MtTotalTTC####VALEUR:MtTotalTTC##}</path>
+ <input id="MtTotalTTC" datatype="numeric"/>
+ </critere>
+ <critere id="_CRI_PES_FACTURE_NUMERO_CARTE" libelle="N° Carte">
+ <path>{##OPERATEUR:IdTiers##(@added:numero_carteachat,"##VALEUR:IdTiers##")}</path>
+ <input id="IdTiers" datatype="string" help="/DOC_PES_Facture/PESFacture/FactureIndiv/@added:numero_carteachat"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_PESFACTURE_FACTUREINDIV_NUMEROMARCHE" libelle="N° Marché">
+ <path>{##OPERATEUR:NumeroMarche##(n:NumeroMarche/@V,"##VALEUR:NumeroMarche##")}</path>
+ <input id="NumeroMarche" datatype="string" help="/DOC_PES_Facture/PESFacture/FactureIndiv/NumeroMarche/@V"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_PESFACTURE_FACTUREINDIV_NUMEROFACTURE" libelle="N° Facture">
+ <path>{##OPERATEUR:NumeroFacture##(n:NumeroFacture/@V,"##VALEUR:NumeroFacture##")}</path>
+ <input id="NumeroFacture" datatype="string" help="/DOC_PES_Facture/PESFacture/FactureIndiv/NumeroFacture/@V"/>
+ </critere>
+ <critere id="_CRI_PES_FACTURE_NUMERO_COMMANDE" libelle="N° Commande">
+ <path>{##OPERATEUR:NumeroCommande##(@added:numero_commande,"##VALEUR:NumeroCommande##")}</path>
+ <input id="NumeroCommande" datatype="string" help="/DOC_PES_Facture/PESFacture/FactureIndiv/@added:numero_commande"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_CODEPRODUIT" libelle="Produit">
+ <path>{n:LigneFacture/n:CodeProduit/@V="##VALEUR:CodeProduit##"}</path>
+ <select id="CodeProduit">
+ <recherche-paire id="rp1">
+ <path>/n:DOC_PES_Facture/n:Nomenclatures/n:NomenclatureProduit/n:Correspondance</path>
+ <code-path>Code/@V</code-path>
+ <libelle-path>Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_CODENATURE" libelle="Nature">
+ <path>{n:LigneFacture/n:CodeNature/@V="##VALEUR:CodeNature##"}</path>
+ <select id="CodeNature">
+ <recherche-paire id="rp1">
+ <path>/n:DOC_PES_Facture/n:Nomenclatures/n:NomenclatureNature/n:Correspondance</path>
+ <code-path>Code/@V</code-path>
+ <libelle-path>Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+-->
+ </element>
+ <element balise="LigneFacture" id="LigneFacture" max-display="500" titre="LigneFacture">
+ <path>/n:DOC_PES_Facture/n:PESFacture/n:FactureIndiv/n:LigneFacture</path>
+ <liste-resultat ordre="ASC" tri-defaut="lrCodeProduit">
+ <hidden name="xsl-param:numeroFacture">
+ <valeur>../n:NumeroFacture/@V</valeur>
+ </hidden>
+ <hidden name="xsl-param:IdLigne">
+ <valeur>@added:generated-id</valeur>
+ </hidden>
+ <champ id="lrNumFacture" exportable="false" datatype="string" default-display="false" libelle="Facture">
+ <help>Numéro de la facture</help>
+ <valeur>n:NumeroFacture/@V</valeur>
+ </champ>
+ <champ id="lrCodeProduit" libelle="Code Produit" exportable="true">
+ <help>Code produit</help>
+ <valeur>n:CodeProduit/@V</valeur>
+ </champ>
+ <champ id="lrLibelle" exportable="true" datatype="string" libelle="Libellé">
+ <help>Libellé du produit</help>
+ <valeur>n:Libelle/@V</valeur>
+ </champ>
+ <champ id="lrCodeNature" datatype="string" exportable="true" default-display="false" libelle="Code Nature">
+ <help>Compte d'imputation nature</help>
+ <valeur>n:CodeNature/@V</valeur>
+ </champ>
+ <champ id="lrCodeFonction" libelle="Code Fonction" datatype="string" exportable="true" default-display="false">
+ <help>Compte d'imputation fonction</help>
+ <valeur>n:CodeFonction/@V</valeur>
+ </champ>
+ </liste-resultat>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_CODEPRODUIT" libelle="Code Produit">
+ <help>Permet de filtrer par code produit</help>
+ <path>{n:CodeProduit/@V="##VALEUR:CodeProduit##"}</path>
+ <select id="CodeProduit">
+ <recherche-paire id="rp1">
+ <path>/n:DOC_PES_Facture/n:Nomenclatures/n:NomenclatureProduit/n:Correspondance</path>
+ <code-path>Code/@V</code-path>
+ <libelle-path>Libelle/@V</libelle-path>
+ </recherche-paire>
+ </select>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_LIBELLE" libelle="Libellé">
+ <help>Permet de filtrer par libellé de produit</help>
+ <path>{##OPERATEUR:Libelle##(n:Libelle/@V,"##VALEUR:Libelle##")}</path>
+ <input id="Libelle" datatype="string" uppercase="true"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_CODENATURE2" libelle="Code Nature" optional-display-id="lrCodeNature">
+ <help>Permet de filtrer par compte d'imputation nature</help>
+ <path>{##OPERATEUR:CodeNature##(n:CodeNature/@V,"##VALEUR:CodeNature##")}</path>
+ <input id="CodeNature" datatype="string"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_CODEFONCTION" libelle="Code Fonction" optional-display-id="lrCodeFonction">
+ <help>Permet de filtrer par compte d'imputation fonction</help>
+ <path>{##OPERATEUR:CodeFonction##(n:CodeFonction/@V,"##VALEUR:CodeFonction##")}</path>
+ <input id="CodeFonction" datatype="string"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_MTTTC" libelle="Mt TTC">
+ <help>Permet de filtrer par montatnt TTC de ligne</help>
+ <path>{n:MtTTC/@V##OPERATEUR:MtTTC####VALEUR:MtTTC##}</path>
+ <input id="MtTTC" datatype="numeric"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_MTHT" libelle="Mt HT">
+ <help>Permet de filtrer par montant HT de ligne</help>
+ <path>{n:MtHT/@V##OPERATEUR:MtHT####VALEUR:MtHT##}</path>
+ <input id="MtHT" datatype="numeric"/>
+ </critere>
+
+ <!--
+ <liste-resultat ordre="ASC" tri-defaut="lr1">
+ <champ id="lr1" datatype="integer" libelle="Ordre">
+ <valeur>Ordre/@V</valeur>
+ </champ>
+ <champ id="lr2" libelle="CodeFonction">
+ <valeur>CodeFonction/@V</valeur>
+ </champ>
+ <champ id="lr3" datatype="decimal" libelle="MtTTC">
+ <valeur>MtTTC/@V</valeur>
+ </champ>
+ <champ id="lr4" datatype="decimal" libelle="Taux">
+ <valeur>Taux/@V</valeur>
+ </champ>
+ <champ id="lr5" datatype="decimal" libelle="MtRemise">
+ <valeur>MtRemise/@V</valeur>
+ </champ>
+ <champ id="lr6" datatype="decimal" libelle="MtHT">
+ <valeur>MtHT/@V</valeur>
+ </champ>
+ <champ id="lr7" datatype="decimal" libelle="TauxTVA">
+ <valeur>TauxTVA/@V</valeur>
+ </champ>
+ <champ id="lr8" datatype="decimal" libelle="MtTVA">
+ <valeur>MtTVA/@V</valeur>
+ </champ>
+ <champ id="lr9" datatype="integer" libelle="OrdreEdition">
+ <valeur>OrdreEdition/@V</valeur>
+ </champ>
+ <champ id="lr10" libelle="CodeProduit">
+ <valeur>CodeProduit/@V</valeur>
+ </champ>
+ <champ id="lr11" datatype="decimal" libelle="TauxRemise">
+ <valeur>TauxRemise/@V</valeur>
+ </champ>
+ <champ id="lr12" libelle="CodeNature">
+ <valeur>CodeNature/@V</valeur>
+ </champ>
+ <champ id="lr13" libelle="Libelle">
+ <valeur>Libelle/@V</valeur>
+ </champ>
+ </liste-resultat>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_CODEFONCTION" libelle="CodeFonction">
+ <path>{##OPERATEUR:CodeFonction##(n:CodeFonction/@V,"##VALEUR:CodeFonction##")}</path>
+ <input id="CodeFonction" datatype="string"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_CODEPRODUIT" libelle="CodeProduit">
+ <path>{##OPERATEUR:CodeProduit##(n:CodeProduit/@V,"##VALEUR:CodeProduit##")}</path>
+ <input id="CodeProduit" datatype="string"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_CODENATURE" libelle="CodeNature">
+ <path>{##OPERATEUR:CodeNature##(n:CodeNature/@V,"##VALEUR:CodeNature##")}</path>
+ <input id="CodeNature" datatype="string"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_MTTTC" libelle="MtTTC">
+ <path>{n:MtTTC/@V##OPERATEUR:MtTTC####VALEUR:MtTTC##}</path>
+ <input id="MtTTC" datatype="numeric"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_MTHT" libelle="MtHT">
+ <path>{n:MtHT/@V##OPERATEUR:MtHT####VALEUR:MtHT##}</path>
+ <input id="MtHT" datatype="numeric"/>
+ </critere>
+ <critere id="CRI_PES_FACTURE_FACTUREINDIV_LIGNEFACTURE_LIBELLE" libelle="Libelle">
+ <path>{##OPERATEUR:Libelle##(n:Libelle/@V,"##VALEUR:Libelle##")}</path>
+ <input id="Libelle" datatype="string"/>
+ </critere>
+-->
+ </element>
+ </etat>
+ </document>
+</documents>