--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY nbsp " ">
+<!ENTITY egrave "è">
+<!ENTITY euro "€">
+<!ENTITY agrave "à">
+<!ENTITY eacute "é">
+]>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.xemelios.org/namespaces#cg-1.0" xmlns:n="http://www.xemelios.org/namespaces#cg-1.0" xmlns:added="http://projets.admisource.gouv.fr/xemelios/namespaces#added" version="2.0">
+ <!-- Paramètres de sortie -->
+ <xsl:character-map name="accents">
+ <xsl:output-character character="à" string="&#224;"/>
+ <xsl:output-character character="é" string="&#233;"/>
+ <xsl:output-character character="è" string="&#232;"/>
+ <xsl:output-character character="ê" string="&#234;"/>
+ <xsl:output-character character="ë" string="&#235;"/>
+ <xsl:output-character character="î" string="&#238;"/>
+ <xsl:output-character character="ï" string="&#239;"/>
+ <xsl:output-character character="ô" string="&#244;"/>
+ <xsl:output-character character="ù" string="&#249;"/>
+ <xsl:output-character character="°" string="&#176;"/>
+ </xsl:character-map>
+ <xsl:output method="xhtml" indent="yes" use-character-maps="accents" encoding="ISO-8859-1"/>
+ <xsl:decimal-format name="decformat" decimal-separator="," grouping-separator=" " digit="#" pattern-separator=";" NaN="NaN" minus-sign="-"/>
+
+ <!-- Inclusion des XSL externes -->
+ <xsl:include href="../../common-xsl/Title.xsl"/>
+ <xsl:include href="../../common-xsl/Style.xsl"/>
+ <xsl:include href="../../common-xsl/Error.xsl"/>
+ <xsl:include href="../../common-xsl/Navigate.xsl"/>
+ <xsl:include href="./common-xsl/Header.xsl"/>
+ <xsl:include href="../../common-xsl/Number.xsl"/><xsl:include href="../../common-xsl/Footer.xsl"/>
+
+ <!-- Paramètres Web -->
+ <xsl:param name="is.web">-1</xsl:param>
+ <xsl:param name="context.path"/>
+
+ <!-- Paramètres d'entrée -->
+ <xsl:param name="show.formulaire"/>
+ <xsl:param name="browser-destination"/>
+
+ <!-- Paramètres d'entrée de la liste de résultat -->
+ <xsl:param name="refPiece">0</xsl:param>
+
+ <!-- Paramètres d'erreur -->
+ <xsl:param name="error.message">nomessage</xsl:param>
+
+ <!-- Variables -->
+ <xsl:variable name="page-format" select="paysage"/>
+ <xsl:variable name="NumPage" select="/n:CompteGestion/n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:Pied/@NumPage"/>
+ <xsl:variable name="isLastPage" select="/n:CompteGestion/n:LivreAuxiliaire/n:PageLivreAuxiliaire/@added:isLastPage"/>
+ <xsl:variable name="Entete">
+ <xsl:copy-of select="/n:CompteGestion/n:Entete"/>
+ </xsl:variable>
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"/>
+
+ <xsl:template match="/n:CompteGestion">
+ <html>
+ <head>
+ <!--title>Livre Auxiliaire des Comptes de Tiers et des Comptes Financiers</title-->
+ <xsl:call-template name="title"><xsl:with-param name="Entete" select="//n:Entete"/><xsl:with-param name="etat">Livre Auxiliaire des Comptes de Tiers et des Comptes Financiers</xsl:with-param></xsl:call-template>
+ <xsl:call-template name="style"/>
+ </head>
+ <body width="100%">
+ <xsl:if test="$error.message!='nomessage'">
+ <xsl:attribute name="onload">javascript:showDialog('<xsl:value-of select="$error.message"/>');</xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="Error"><!--xsl:with-param name="error.message" select="$error.message"/--></xsl:call-template>
+ <xsl:call-template name="navigate">
+ <xsl:with-param name="docId">cg-colloc</xsl:with-param>
+ <xsl:with-param name="etatId">LivreAuxiliaire</xsl:with-param>
+ <xsl:with-param name="elementId">PageLivreAuxiliaire</xsl:with-param>
+ <xsl:with-param name="NumPage" select="$NumPage"/>
+ <xsl:with-param name="isLastPage" select="$isLastPage"/>
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="show.formulaire" select="$show.formulaire"/>
+ <xsl:with-param name="show.depense.recette" select="0"/>
+ <xsl:with-param name="element.path">n:EnteteLivreAuxiliaire</xsl:with-param>
+ <xsl:with-param name="is.web" select="$is.web"/>
+ <xsl:with-param name="context.path" select="$context.path"/>
+ </xsl:call-template>
+ <xsl:call-template name="header">
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="Titre"></xsl:with-param>
+ <xsl:with-param name="Titre.Plus">
+ <h1>Livre Auxiliaire des Comptes de Tiers et des comptes Financiers</h1>
+ <h2>Compte <xsl:value-of select="//n:EnteteLivreAuxiliaire/@NumCompte"/></h2>
+ <!--h3>Arrêté au <xsl:choose><xsl:when test="string-length(//n:EnteteLivreAuxiliaire/@Date) > 0"><xsl:call-template name="iso-date"><xsl:with-param name="datebrute" select="//n:EnteteLivreAuxiliaire/@Date"/></xsl:call-template></xsl:when><xsl:otherwise>31/12/<xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice"/></xsl:otherwise></xsl:choose></h3-->
+ <h3>Arrêté au 31/12/<xsl:value-of select="$Entete//n:Collectivite/@Exercice"/></h3>
+ </xsl:with-param>
+ </xsl:call-template>
+ <xsl:if test="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire">
+ <br/>
+ <div style="position:relative;left:55%;width:40%;">
+ <table style="cell-padding:0px;cell-spacing:0px;border-style:none;" width="100%">
+ <colgroup><col width="20%" /><col width="30%" align="right"/><col width="50%"/></colgroup>
+ <tr>
+ <td><b>Balance d'entrée</b></td>
+ <td><tt>:
+ <xsl:choose>
+ <xsl:when test="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire/@SoldeBalanceEntree">
+ <xsl:call-template name="number"><xsl:with-param name="num" select="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire/@SoldeBalanceEntree"/></xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="0"/></xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tt></td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td><tt><b>Débits de l'exercice</b></tt></td>
+ <td><tt>:
+ <xsl:choose>
+ <xsl:when test="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire/@MontantDebitExe">
+ <xsl:call-template name="number"><xsl:with-param name="num" select="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire/@MontantDebitExe"/></xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="0"/></xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tt></td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td><tt><b>Crédits de l'exercice</b></tt></td>
+ <td><tt>:
+ <xsl:choose>
+ <xsl:when test="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire/@MontantCreditExe">
+ <xsl:call-template name="number"><xsl:with-param name="num" select="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire/@MontantCreditExe"/></xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="0"/></xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tt></td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td><tt><b>Solde de l'exercice</b></tt></td>
+ <td><tt>:
+ <xsl:choose>
+ <xsl:when test="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire/@MontantSoldeExe">
+ <xsl:call-template name="number"><xsl:with-param name="num" select="n:LivreAuxiliaire/n:PageLivreAuxiliaire/n:LigneEnteteLivreAuxiliaire/@MontantSoldeExe"/></xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="0"/></xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tt></td>
+ <td> </td>
+ </tr>
+ </table>
+ </div>
+ </xsl:if>
+ <xsl:call-template name="mainTable">
+ <xsl:with-param name="el" select="n:LivreAuxiliaire/n:PageLivreAuxiliaire"/>
+ </xsl:call-template>
+ <p>
+ <center>Page <xsl:choose><xsl:when test="//@added:LastPageEtat"><xsl:value-of select="//n:Pied/@NumPage"/> / <xsl:value-of select="//@added:LastPageEtat"/></xsl:when><xsl:otherwise>- <xsl:value-of select="//n:Pied/@NumPage"/></xsl:otherwise></xsl:choose></center>
+ </p>
+
+ <xsl:call-template name="navigate">
+ <xsl:with-param name="docId">cg-colloc</xsl:with-param>
+ <xsl:with-param name="etatId">LivreAuxiliaire</xsl:with-param>
+ <xsl:with-param name="elementId">PageLivreAuxiliaire</xsl:with-param>
+ <xsl:with-param name="NumPage" select="$NumPage"/>
+ <xsl:with-param name="isLastPage" select="$isLastPage"/>
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="show.formulaire" select="$show.formulaire"/>
+ <xsl:with-param name="show.depense.recette" select="0"/>
+ <xsl:with-param name="element.path">n:EnteteLivreAuxiliaire</xsl:with-param>
+ <xsl:with-param name="is.web" select="$is.web"/>
+ <xsl:with-param name="context.path" select="$context.path"/>
+ </xsl:call-template>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="mainTable">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="LigneReport" select="$el/n:LigneReportLivreAuxiliaire"/>
+ <xsl:variable name="LignePied" select="$el/n:LignePiedLivreAuxiliaire"/>
+
+ <table width="100%" class="bordered" id="main">
+ <colgroup>
+ <col width="12%"/>
+ <col width="40%"/>
+ <col width="13%"/>
+ <col width="13%"/>
+ <col width="13%"/>
+ <col width="13%"/>
+ </colgroup>
+ <thead>
+ <tr>
+ <td class="titre bold center bordered">Date de<br/>l'écriture</td>
+ <td class="titre bold center bordered">Références des pièces</td>
+ <td class="titre bold center bordered">Montant en débit</td>
+ <td class="titre bold center bordered">Montant en crédit</td>
+ <td class="titre bold center bordered">Solde à la date<br/>du <!--xsl:call-template name="iso-date"><xsl:with-param name="datebrute" select="$el/n:EnteteLivreAuxiliaire/@Date"/></xsl:call-template-->31/12/<xsl:value-of select="$Entete//n:Collectivite/@Exercice"/></td>
+ <td class="titre bold center bordered">Observations</td>
+ </tr>
+ </thead>
+ <tfoot>
+ <xsl:if test="count($LignePied)>0">
+ <tr>
+ <td colspan="2" class="libelleLigne bordered"><b><xsl:value-of select="$el/n:LignePiedLivreAuxiliaire/@LibelleTotal"/></b></td>
+ <td class="montant bordered"><xsl:call-template name="number"><xsl:with-param name="num" select="$LignePied/@SommeMtDebit"/></xsl:call-template></td>
+ <td class="montant bordered"><xsl:call-template name="number"><xsl:with-param name="num" select="$LignePied/@SommeMtCredit"/></xsl:call-template></td>
+ <td class="montant bordered"><xsl:call-template name="number"><xsl:with-param name="num" select="$LignePied/@SommeMtSolde3"/></xsl:call-template></td>
+ <td class="montant bordered"><xsl:call-template name="number"><xsl:with-param name="num" select="$LignePied/@SommeMtSolde4"/></xsl:call-template></td>
+ </tr>
+ </xsl:if>
+ </tfoot>
+ <tbody>
+ <xsl:if test="count($LigneReport)>0">
+ <tr style="font-weight:bold;">
+ <td colspan="2" class="libelleLigne bordered">Report</td>
+ <td class="montant bordered"><xsl:call-template name="number"><xsl:with-param name="num" select="$LigneReport/@SommeMtDebit1"/></xsl:call-template></td>
+ <td class="montant bordered"><xsl:call-template name="number"><xsl:with-param name="num" select="$LigneReport/@SommeMtCredit1"/></xsl:call-template></td>
+ <td class="montant bordered"><xsl:call-template name="number"><xsl:with-param name="num" select="$LigneReport/@SommeMtSolde1"/></xsl:call-template></td>
+ <td class="montant bordered"><xsl:call-template name="number"><xsl:with-param name="num" select="$LigneReport/@SommeMtSolde2"/></xsl:call-template></td>
+ </tr>
+ </xsl:if>
+ <xsl:for-each select="$el/n:LigneLivreAuxiliaire">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$refPiece != '0' and @TypeNumeroPiece=$refPiece">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordureRight"><xsl:call-template name="iso-date"><xsl:with-param name="datebrute" select="@DateEcr"/></xsl:call-template></td>
+ <td class="libelleLigne bordureRight"><xsl:value-of select="@TypeNumeroPiece"/></td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="@MontantDebit"/></xsl:call-template></td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="@MontantCredit"/></xsl:call-template></td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="@MontantSolde3"/></xsl:call-template></td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="@MontantSolde4"/></xsl:call-template></td>
+ </tr>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ <br/><xsl:value-of select="$el/VilleDate"/>
+ <br/><xsl:value-of select="$el/Tresorier"/>
+ </xsl:template>
+
+ <xsl:template name="iso-date">
+ <xsl:param name="datebrute"/>
+ <xsl:choose>
+ <xsl:when test="string-length($datebrute)>0">
+ <xsl:value-of select="substring($datebrute, 9, 2)"/>
+ <xsl:text>/</xsl:text>
+ <xsl:value-of select="substring($datebrute,6,2)"/>
+ <xsl:text>/</xsl:text>
+ <xsl:value-of select="substring($datebrute, 1, 4)"/>
+ </xsl:when>
+ <xsl:otherwise>-</xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file