openstamanager/plugins/xml/asso-invoice.xsl

3120 lines
109 KiB
XML
Raw Normal View History

2019-02-20 16:07:42 +01:00
<?xml version="1.0"?>
<xsl:stylesheet
2019-09-13 12:27:29 +02:00
version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:b="http://www.fatturapa.gov.it/sdi/fatturapa/v1.1"
xmlns:c="http://www.fatturapa.gov.it/sdi/fatturapa/v1.0"
xmlns:a="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2"
xmlns:d="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.0">
<xsl:output method="html" />
<xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>
<xsl:template name="FormatDateIta">
<xsl:param name="DateTime" />
<xsl:variable name="year" select="substring($DateTime,1,4)" />
<xsl:variable name="month" select="substring($DateTime,6,2)" />
<xsl:variable name="day" select="substring($DateTime,9,2)" />
<xsl:value-of select="$day" />
<xsl:value-of select="'-'" />
<xsl:value-of select="$month" />
<xsl:value-of select="'-'" />
<xsl:value-of select="$year" />
</xsl:template>
<xsl:template name="FormatIVA">
<xsl:param name="Natura" />
<xsl:param name="IVA" />
<xsl:choose>
<xsl:when test="$Natura">
<xsl:value-of select="$Natura" />
</xsl:when>
<xsl:otherwise>
<xsl:if test="$IVA">
<xsl:value-of select="format-number($IVA, '###.###.##0,00', 'euro')" />
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="FormatSconto">
<xsl:param name="tipo" />
<xsl:param name="percentuale" />
<xsl:param name="importo" />
<xsl:choose>
<xsl:when test="$tipo = 'SC' ">
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:when test="$tipo = 'MG'">
<xsl:text>+</xsl:text>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$percentuale">
<xsl:value-of select="$percentuale" />
<xsl:text>%</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$importo">
<xsl:value-of select="format-number($importo, '###.###.##0,00######', 'euro')" />
2019-09-13 12:27:29 +02:00
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template name="FormatColSconto">
<xsl:param name="tipo" />
<xsl:param name="percentuale" />
<xsl:param name="importo" />
<xsl:choose>
<xsl:when test="$tipo = 'SC' ">
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:when test="$tipo = 'MG'">
<xsl:text>+</xsl:text>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$percentuale">
<xsl:value-of select="$percentuale" />
<xsl:text>%</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$importo">
<xsl:value-of select="format-number($importo, '###.###.##0,00######', 'euro')" />
2019-09-13 12:27:29 +02:00
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--DatiOrdineAcquisto Vs.Ord. XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ-->
<!--DatiContratto Contratto XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ -->
<!--DatiConvenzione Convenzione XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ -->
<!--DatiRicezione Ricezione XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ -->
<!--Fatture collegate Fatt.coll. XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ -->
<xsl:template name="DatiCorrelati">
<xsl:param name="Prefix" />
<xsl:param name="IdDocumento" />
<xsl:param name="Data" />
<xsl:param name="CodiceCUP" />
<xsl:param name="CodiceCIG" />
<xsl:variable name="descrizione" >
<xsl:value-of select="$Prefix" />
<xsl:value-of select="$IdDocumento" />
<xsl:if test="$Data">
<xsl:text> del </xsl:text>
<xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="$Data" />
</xsl:call-template>
</xsl:if>
<xsl:if test="$CodiceCUP">
<xsl:text> CUP: </xsl:text>
<xsl:value-of select="$CodiceCUP" />
</xsl:if>
<xsl:if test="$CodiceCIG">
<xsl:text> CIG: </xsl:text>
<xsl:value-of select="$CodiceCIG" />
</xsl:if>
</xsl:variable>
<xsl:if test="$descrizione">
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "$descrizione" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template match="DatiDDT">
2019-09-13 12:27:29 +02:00
<xsl:variable name="descri_DAO" >
2019-09-13 12:27:29 +02:00
<xsl:text>DDT </xsl:text>
<xsl:value-of select="NumeroDDT" />
<xsl:if test="DataDDT">
<xsl:text> del </xsl:text>
<xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="DataDDT" />
</xsl:call-template>
</xsl:if>
2019-09-13 12:27:29 +02:00
</xsl:variable>
<xsl:if test="$descri_DAO">
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "$descri_DAO" />
</xsl:call-template>
</xsl:if>
</xsl:template>
2019-09-13 12:27:29 +02:00
<xsl:template match="DettaglioLinee">
<xsl:param name="r" />
<xsl:param name="posASWRELSTD" />
<xsl:param name="TipoFattura" />
<xsl:param name="IndiceBody" />
<!--Numero Linea -->
<xsl:variable name="valNumeroLinea" >
<xsl:value-of select="number(NumeroLinea)" />
</xsl:variable>
2019-09-13 12:27:29 +02:00
<!--Pre LINEA OpzPreLineaDatiDDT -->
2019-09-13 12:27:29 +02:00
<xsl:choose>
<xsl:when test="OpzPreLineaDatiDDT">
<!--Pre LINEA OpzPreLineaDatiDDT -->
<xsl:for-each select="OpzPreLineaDatiDDT" >
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "." />
</xsl:call-template>
</xsl:for-each>
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiDDT[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] ">
2019-09-13 12:27:29 +02:00
<xsl:apply-templates select="."/> <!-- apply DatiDDT template -->
</xsl:for-each>
</xsl:otherwise>
2019-09-13 12:27:29 +02:00
</xsl:choose>
<!--DatiOrdineAcquisto -->
<xsl:choose>
<!--Pre LINEA OpzPreLineaDatiOrdineAcquisto -->
<xsl:when test="OpzPreLineaDatiOrdineAcquisto ">
<xsl:for-each select="OpzPreLineaDatiOrdineAcquisto" >
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "." />
</xsl:call-template>
</xsl:for-each>
</xsl:when>
2019-09-13 12:27:29 +02:00
<xsl:otherwise>
<xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiOrdineAcquisto[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] ">
2019-09-13 12:27:29 +02:00
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Vs.Ord. "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
</xsl:for-each>
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
</xsl:choose>
<!--DatiContratto -->
<xsl:choose>
<!--Pre LINEA OpzPreLineaDatiContratto -->
<xsl:when test="OpzPreLineaDatiContratto ">
<xsl:for-each select="OpzPreLineaDatiContratto" >
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "." />
</xsl:call-template>
</xsl:for-each>
</xsl:when>
2019-09-13 12:27:29 +02:00
<xsl:otherwise>
<xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiContratto[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] ">
2019-09-13 12:27:29 +02:00
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Contratto "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
</xsl:for-each>
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
</xsl:choose>
<!--DatiConvenzione -->
<xsl:choose>
<!--Pre LINEA OpzPreLineaDatiConvenzione -->
<xsl:when test="OpzPreLineaDatiConvenzione ">
<xsl:for-each select="OpzPreLineaDatiConvenzione" >
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "." />
</xsl:call-template>
</xsl:for-each>
</xsl:when>
2019-09-13 12:27:29 +02:00
<xsl:otherwise>
<xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiConvenzione[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] ">
2019-09-13 12:27:29 +02:00
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Convenzione "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
</xsl:for-each>
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
</xsl:choose>
<!--DatiRicezione -->
<xsl:choose>
<!--Pre LINEA OpzPreLineaDatiRicezione -->
<xsl:when test="OpzPreLineaDatiRicezione ">
<xsl:for-each select="OpzPreLineaDatiRicezione" >
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "." />
</xsl:call-template>
</xsl:for-each>
</xsl:when>
2019-09-13 12:27:29 +02:00
<xsl:otherwise>
2019-09-13 12:27:29 +02:00
<xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiRicezione[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] ">
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Ricezione "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
</xsl:for-each>
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
</xsl:choose>
<!--DatiFattureCollegate-->
<xsl:choose>
<!--Pre LINEA OpzPreLineaDatiFattureCollegate-->
<xsl:when test="OpzPreLineaDatiFattureCollegate ">
<xsl:for-each select="OpzPreLineaDatiFattureCollegate" >
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "." />
</xsl:call-template>
</xsl:for-each>
</xsl:when>
2019-09-13 12:27:29 +02:00
<xsl:otherwise>
2019-09-13 12:27:29 +02:00
<xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiFattureCollegate[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] ">
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Fatt.coll. "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
</xsl:for-each>
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
</xsl:choose>
<!--DETTAGLIO LINEE -->
<xsl:choose>
<xsl:when test="$posASWRELSTD = $r">
<xsl:call-template name="DettaglioLineeASW"/>
</xsl:when>
<xsl:otherwise>
<tr>
<td>
<xsl:for-each select="CodiceArticolo" >
<div class="tx-xsmall">
<xsl:if test="CodiceValore">
<xsl:text> </xsl:text>
<xsl:value-of select="CodiceValore" />
2019-02-20 16:07:42 +01:00
</xsl:if>
2019-09-13 12:27:29 +02:00
<xsl:if test="CodiceTipo">
(<xsl:value-of select="CodiceTipo" />)
</xsl:if>
</div>
</xsl:for-each>
</td>
<td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Descrizione">
<xsl:value-of select="Descrizione" />
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="TipoCessionePrestazione">
(<xsl:value-of select="TipoCessionePrestazione" />)
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DataInizioPeriodo or DataFinePeriodo">
<div class="tx-xsmall">
<xsl:text>Periodo</xsl:text>
<xsl:if test="DataInizioPeriodo">
<xsl:text> da </xsl:text>
<xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="DataInizioPeriodo" />
</xsl:call-template>
</xsl:if>
<xsl:if test="DataFinePeriodo">
<xsl:text> a </xsl:text>
<xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="DataFinePeriodo" />
</xsl:call-template>
</xsl:if>
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="AltriDatiGestionali" >
<xsl:if test=" translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) != 'aswrelstd'
and
2019-09-13 12:27:29 +02:00
translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) != 'aswswhouse' ">
2019-09-13 12:27:29 +02:00
<div class="tx-xsmall">
<xsl:text>Tipo dato: </xsl:text>
<xsl:value-of select="TipoDato" />
<xsl:if test=" translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) = 'aswlottsca' ">
<xsl:text> (dati relativi a lotti e scadenze) </xsl:text>
</xsl:if>
</div>
<xsl:if test="RiferimentoTesto">
<div class="tx-xsmall">
<xsl:choose>
<xsl:when test=" translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) = 'aswlottsca' ">
<xsl:text>Lotto: </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Rif. testo: </xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="RiferimentoTesto" />
</div>
2019-02-20 16:07:42 +01:00
</xsl:if>
2019-09-13 12:27:29 +02:00
<xsl:if test="RiferimentoData">
<div class="tx-xsmall">
<xsl:choose>
<xsl:when test=" translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) = 'aswlottsca' ">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:text>Scadenza: </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Rif. data: </xsl:text>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="RiferimentoData" />
</xsl:call-template>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="RiferimentoNumero">
<div class="tx-xsmall">
<xsl:choose>
<xsl:when test=" translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) = 'aswlottsca' ">
<xsl:text>Quantità del suddetto lotto: </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Rif. numero: </xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="format-number(RiferimentoNumero, '###.###.##0,00######', 'euro')" />
</div>
2019-02-20 16:07:42 +01:00
</xsl:if>
2019-09-13 12:27:29 +02:00
</xsl:if>
</xsl:for-each>
<xsl:if test="RiferimentoAmministrazione">
<div class="tx-xsmall">
RIF.AMM. <xsl:value-of select="RiferimentoAmministrazione" />
</div>
</xsl:if>
</td>
<td class="import2" >
<xsl:if test="Quantita">
<xsl:if test="number(Quantita)">
<xsl:value-of select="format-number(Quantita, '###.###.##0,00######', 'euro')" />
</xsl:if>
</xsl:if>
</td>
<td class="import" >
<xsl:if test="PrezzoUnitario">
<xsl:if test="number(PrezzoTotale)">
<xsl:value-of select="format-number(PrezzoUnitario, '###.###.##0,00######', 'euro')" />
</xsl:if>
</xsl:if>
</td>
<td class="textCenter" >
<xsl:if test="UnitaMisura">
<xsl:value-of select="UnitaMisura" />
</xsl:if>
</td>
<td class="import" >
<xsl:for-each select="ScontoMaggiorazione" >
<div>
<xsl:call-template name="FormatColSconto" >
<xsl:with-param name="tipo" select="Tipo" />
<xsl:with-param name="percentuale" select="Percentuale" />
<xsl:with-param name="importo" select="Importo" />
2019-02-20 16:07:42 +01:00
</xsl:call-template>
2019-09-13 12:27:29 +02:00
</div>
</xsl:for-each>
</td>
<td class="import" >
<xsl:if test="number(PrezzoTotale)">
<xsl:call-template name="FormatIVA">
<xsl:with-param name="Natura" select="Natura" />
<xsl:with-param name="IVA" select="AliquotaIVA" />
</xsl:call-template>
2019-02-20 16:07:42 +01:00
</xsl:if>
2019-09-13 12:27:29 +02:00
</td>
<td>
<xsl:if test="PrezzoTotale">
<xsl:if test="number(PrezzoTotale)">
<div class="import">
<xsl:value-of select="format-number(PrezzoTotale, '###.###.##0,00######', 'euro')" />
</div>
</xsl:if>
<xsl:if test="OpzPrezzoTotale">
<div class="tx-xsmall">
<xsl:value-of select="OpzPrezzoTotale" />
</div>
</xsl:if>
2019-02-20 16:07:42 +01:00
</xsl:if>
2019-09-13 12:27:29 +02:00
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
<!--POST LINEA -->
<xsl:for-each select="OpzPostLinea" >
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = "." />
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<!-- Nel caso in cui ho un AltriDatiGestionali con aswrelstd o aswswhouse, mi permette
di stampare tutti alti dati ma non aswrelstd e aswswhouse -->
<xsl:template name="DettaglioLineeASW">
<tr >
<td>
</td>
<td >
<xsl:text>------------------------</xsl:text>
<xsl:for-each select="AltriDatiGestionali" >
<xsl:if test=" translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) != 'aswrelstd'
and
2019-09-13 12:27:29 +02:00
translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) != 'aswswhouse' ">
<div class="tx-xsmall">
<xsl:value-of select="RiferimentoTesto" />
<xsl:text> </xsl:text>
<xsl:value-of select="TipoDato" />
</div>
</xsl:if>
</xsl:for-each>
</td>
<td >
</td>
<td >
</td>
<td >
</td>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
</xsl:template>
<xsl:template name="AltraDescrizioneLinea">
<xsl:param name = "textDescrizione" />
<!-- testo della descrizione -->
<tr>
<td >
</td>
<td >
<div class="tx-xsmall">
<xsl:value-of select="$textDescrizione" />
</div>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</xsl:template>
<xsl:template match="DatiRitenuta">
2019-09-13 12:27:29 +02:00
<tr>
<td >
<xsl:if test="TipoRitenuta">
<span>
<xsl:value-of select="TipoRitenuta" />
</span>
<xsl:variable name="TR">
<xsl:value-of select="TipoRitenuta" />
</xsl:variable>
<xsl:choose>
<xsl:when test="$TR='RT01'">
Ritenuta persone fisiche
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TR='RT02'">
Ritenuta persone giuridiche
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TR='RT03'">
Contributo INPS
</xsl:when>
<xsl:when test="$TR='RT04'">
Contributo ENASARCO
</xsl:when>
<xsl:when test="$TR='RT05'">
Contributo ENPAM
</xsl:when>
<xsl:when test="$TR='RT06'">
Altro contributo previdenziale
</xsl:when>
2019-09-13 12:27:29 +02:00
<xsl:when test="$TR=''">
</xsl:when>
<xsl:otherwise>
<span>(!!! codice non previsto !!!)</span>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
</xsl:if>
2019-09-13 12:27:29 +02:00
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import" >
<xsl:if test="AliquotaRitenuta">
<xsl:value-of select="format-number(AliquotaRitenuta, '###.###.##0,00', 'euro')" />
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td >
<xsl:if test="CausalePagamento">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<span>
<xsl:value-of select="CausalePagamento" />
</span>
<xsl:variable name="CP">
<xsl:value-of select="CausalePagamento" />
</xsl:variable>
<xsl:if test="$CP!=''">
(decodifica come da modello CU)
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import" >
<xsl:if test="ImportoRitenuta">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="format-number(ImportoRitenuta, '###.###.##0,00', 'euro')" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
2019-09-13 12:27:29 +02:00
</xsl:template>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:template match="DettaglioPagamento">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Beneficiario">
Beneficiario <xsl:value-of select="Beneficiario" /> <br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="IBAN">
IBAN
<xsl:value-of select="IBAN" /> <br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="ABI or CAB or BIC ">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="ABI">
ABI <xsl:value-of select="ABI" />
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="CAB">
CAB <xsl:value-of select="CAB" />
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="BIC">
BIC <xsl:value-of select="BIC" />
</xsl:if>
<br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="IstitutoFinanziario">
<xsl:value-of select="IstitutoFinanziario" />
<br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="CodUfficioPostale">
Codice ufficio postale
<xsl:value-of select="CodUfficioPostale" />
<br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="TitoloQuietanzante or CognomeQuietanzante or NomeQuietanzante or CFQuietanzante">
Quietanzante
<xsl:value-of select="concat(TitoloQuietanzante , ' ',CognomeQuietanzante, ' ', NomeQuietanzante, ' ', CFQuietanzante )"/>
<br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DataLimitePagamentoAnticipato or ScontoPagamentoAnticipato">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DataLimitePagamentoAnticipato">
Data limite pagamento anticipato <xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="DataLimitePagamentoAnticipato" />
</xsl:call-template>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="ScontoPagamentoAnticipato">
Sconto anticipato
<xsl:value-of select="format-number(ScontoPagamentoAnticipato, '###.###.##0,00', 'euro')" />
</xsl:if>
<br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DataDecorrenzaPenale or PenalitaPagamentiRitardati">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DataDecorrenzaPenale">
Data penale <xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="DataDecorrenzaPenale" />
</xsl:call-template>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="PenalitaPagamentiRitardati">
Importo penale
<xsl:value-of select="format-number(PenalitaPagamentiRitardati, '###.###.##0,00', 'euro')" />
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="CodicePagamento">
Codice pagamento <xsl:value-of select="CodicePagamento" />
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:template>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:template name="FatturaElettronica">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:param name="TipoFattura" />
<xsl:param name="IsFPRS" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="$TipoFattura">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!--Variabile che contiene il codice destinatario dall'HEADER perchè viene visualizzato nella sezione BODY -->
<!--<xsl:variable name="CodiceDestinatario" select="$TipoFattura/FatturaElettronicaHeader/DatiTrasmissione/CodiceDestinatario"/>-->
<xsl:variable name="PecDestinatario" select="$TipoFattura/FatturaElettronicaHeader/DatiTrasmissione/PECDestinatario"/>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!--Variabile che contiene il codice destinatario dall'HEADER perchè viene visualizzato nella sezione BODY -->
<xsl:variable name="CodiceDestinatario" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:choose>
<xsl:when test="$TipoFattura/FatturaElettronicaHeader/DatiTrasmissione/CodiceDestinatario='0000000'">
<xsl:value-of select="$TipoFattura/FatturaElettronicaHeader/DatiTrasmissione/PECDestinatario" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$TipoFattura/FatturaElettronicaHeader/DatiTrasmissione/CodiceDestinatario" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div id="fattura-elettronica" class="page">
2019-09-13 12:27:29 +02:00
<!-- FatturaElettronicaHeader -->
<xsl:if test="$TipoFattura/FatturaElettronicaHeader">
2019-09-13 12:27:29 +02:00
<xsl:if test="$TipoFattura/FatturaElettronicaHeader/NomeDocumento">
<table class="tbNoBorder">
<tr >
<td>
<xsl:value-of select="$TipoFattura/FatturaElettronicaHeader/NomeDocumento"/>
</td>
</tr>
</table>
</xsl:if>
2019-09-13 12:27:29 +02:00
<table id="tbHeader" class="tbHeader">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<tr >
<td class="tdHead">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<table class="tableHead">
<tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!--INIZIO CEDENTE PRESTATORE-->
<div class="headBorder" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<label class= "headerLabel">Cedente/prestatore (fornitore) </label>
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:choose>
<xsl:when test="DatiAnagrafici">
<!--DatiAnagrafici FPA\FPR-->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/DatiAnagrafici">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent mt5">
<xsl:if test="IdFiscaleIVA">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Identificativo fiscale ai fini IVA:
<span>
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="CodiceFiscale">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Codice fiscale:
<span>
<xsl:value-of select="CodiceFiscale" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Denominazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Denominazione:
<span>
<xsl:value-of select="Anagrafica/Denominazione" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Nome | Anagrafica/Cognome">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Cognome nome:
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Cognome">
<span>
<xsl:value-of select="Anagrafica/Cognome" />
<xsl:text> </xsl:text>
</span>
</xsl:if>
<xsl:if test="Anagrafica/Nome">
<span>
<xsl:value-of select="Anagrafica/Nome" />
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="RegimeFiscale">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Regime fiscale:
<span>
<xsl:value-of select="RegimeFiscale" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:variable name="RF">
<xsl:value-of select="RegimeFiscale" />
</xsl:variable>
<xsl:choose>
<xsl:when test="$RF='RF01'">
ordinario
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF02'">
contribuenti minimi
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF03'">
nuove iniziative produttive - Non più valido in quanto abrogato dalla legge di stabilità 2015
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF04'">
agricoltura e attività connesse e pesca
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF05'">
vendita sali e tabacchi
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF06'">
commercio fiammiferi
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF07'">
editoria
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF08'">
gestione servizi telefonia pubblica
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF09'">
rivendita documenti di trasporto pubblico e di sosta
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF10'">
intrattenimenti, giochi e altre attività di cui alla tariffa allegata al DPR 640/72
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF11'">
agenzie viaggi e turismo
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF12'">
agriturismo
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF13'">
vendite a domicilio
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF14'">
rivendita beni usati, oggetti darte, dantiquariato o da collezione
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF15'">
agenzie di vendite allasta di oggetti darte, antiquariato o da collezione
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF16'">
IVA per cassa P.A.
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF17'">
IVA per cassa - art. 32-bis, D.L. 83/2012
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF19'">
Regime forfettario
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF18'">
altro
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF=''">
</xsl:when>
<xsl:otherwise>
<span>(!!! codice non previsto !!!)</span>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
</xsl:for-each>
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/Sede">
<div class="headContent" >
<xsl:if test="Indirizzo">
Indirizzo:
<span>
<xsl:value-of select="Indirizzo" />
<xsl:text> </xsl:text>
<xsl:value-of select="NumeroCivico" />
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
</div>
2019-09-13 12:27:29 +02:00
<div class="headContent" >
<span>
<xsl:if test="Comune">
Comune:
<span>
<xsl:value-of select="Comune" />
</span>
</xsl:if>
<xsl:if test="Provincia">
Provincia:
<span>
<xsl:value-of select="Provincia" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<span>
<xsl:if test="CAP">
Cap:
<span>
<xsl:value-of select="CAP" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Nazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Nazione:
<span>
<xsl:value-of select="Nazione" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
</xsl:for-each>
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/Contatti/Telefono">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Telefono:
<span>
<xsl:value-of select="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/Contatti/Telefono" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/Contatti/Email">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Email:
<span>
<xsl:value-of select="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/Contatti/Email" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/RiferimentoAmministrazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Riferimento Amministrazione:
<span>
<xsl:value-of select="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/RiferimentoAmministrazione" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:otherwise>
<!--Anagrafica FPRS-->
<div class="headContent mt5">
<xsl:if test="IdFiscaleIVA">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Identificativo fiscale ai fini IVA:
<span>
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="CodiceFiscale">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Codice fiscale:
<span>
<xsl:value-of select="CodiceFiscale" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
<xsl:if test="Denominazione">
2019-09-13 12:27:29 +02:00
<div class="headContent">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Denominazione:
<span>
<xsl:value-of select="Denominazione" />
</span>
</div>
</xsl:if>
<xsl:if test="Nome | Cognome">
<div class="headContent" >
Cognome nome:
<xsl:if test="Cognome">
<span>
<xsl:value-of select="Cognome" />
<xsl:text> </xsl:text>
</span>
</xsl:if>
<xsl:if test="Nome">
<span>
<xsl:value-of select="Nome" />
</span>
</xsl:if>
</div>
</xsl:if>
<div class="headContent" >
<xsl:if test="RegimeFiscale">
Regime fiscale:
<span>
<xsl:value-of select="RegimeFiscale" />
</span>
<xsl:variable name="RF">
<xsl:value-of select="RegimeFiscale" />
</xsl:variable>
<xsl:choose>
<xsl:when test="$RF='RF01'">
ordinario
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF02'">
contribuenti minimi
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF03'">
nuove iniziative produttive - Non più valido in quanto abrogato dalla legge di stabilità 2015
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF04'">
agricoltura e attività connesse e pesca
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF05'">
vendita sali e tabacchi
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF06'">
commercio fiammiferi
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF07'">
editoria
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF08'">
gestione servizi telefonia pubblica
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF09'">
rivendita documenti di trasporto pubblico e di sosta
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF10'">
intrattenimenti, giochi e altre attività di cui alla tariffa allegata al DPR 640/72
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF11'">
agenzie viaggi e turismo
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF12'">
agriturismo
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF13'">
vendite a domicilio
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF14'">
rivendita beni usati, oggetti darte, dantiquariato o da collezione
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF15'">
agenzie di vendite allasta di oggetti darte, antiquariato o da collezione
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF16'">
IVA per cassa P.A.
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF17'">
IVA per cassa - art. 32-bis, D.L. 83/2012
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF19'">
Regime forfettario
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF='RF18'">
altro
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$RF=''">
</xsl:when>
<xsl:otherwise>
<span>!!! codice non previsto !!!</span>
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/CedentePrestatore/Sede">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Indirizzo">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Indirizzo:
<span>
<xsl:value-of select="Indirizzo" />
<xsl:text> </xsl:text>
<xsl:value-of select="NumeroCivico" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
<span>
<xsl:if test="Comune">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Comune:
<span>
<xsl:value-of select="Comune" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
<xsl:if test="Provincia">
Provincia:
<span>
<xsl:value-of select="Provincia" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<span>
<xsl:if test="CAP">
Cap:
<span>
<xsl:value-of select="CAP" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Nazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Nazione:
<span>
<xsl:value-of select="Nazione" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-09-13 12:27:29 +02:00
<!--INIZIO TerzoIntermediarioOSoggettoEmittente-->
<xsl:if test="$TipoFattura/FatturaElettronicaHeader/TerzoIntermediarioOSoggettoEmittente">
<br/>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:choose>
<xsl:when test="$TipoFattura/FatturaElettronicaHeader/SoggettoEmittente='CC'">
<label class= "headerLabel">Soggetto Emittente (cessionario committente) </label>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TipoFattura/FatturaElettronicaHeader/SoggettoEmittente='TZ'">
<label class= "headerLabel">Terzo Intermediario </label>
</xsl:when>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:otherwise>
<label class= "headerLabel">Terzo Intermediario o Soggetto Emittente </label>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/TerzoIntermediarioOSoggettoEmittente/DatiAnagrafici">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent mt5">
<xsl:if test="IdFiscaleIVA">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Identificativo fiscale ai fini IVA:
<span>
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="CodiceFiscale">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Codice fiscale:
<span>
<xsl:value-of select="CodiceFiscale" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Denominazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Denominazione:
<span>
<xsl:value-of select="Anagrafica/Denominazione" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Nome | Anagrafica/Cognome">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Cognome nome:
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Cognome">
<span>
<xsl:value-of select="Anagrafica/Cognome" />
<xsl:text> </xsl:text>
</span>
</xsl:if>
<xsl:if test="Anagrafica/Nome">
<span>
<xsl:value-of select="Anagrafica/Nome" />
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
<!--FINE TerzoIntermediarioOSoggettoEmittente-->
2019-09-13 12:27:29 +02:00
</div>
<!--FINE CEDENTE PRESTATORE-->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</table>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
<td class="tdHead">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!--INIZIO CESSIONARIO COMMITTENTE-->
<table class="tableHead">
<tr>
<td >
2019-09-13 12:27:29 +02:00
<div class="headBorder" >
<label class= "headerLabel" >Cessionario/committente (cliente) </label>
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/CessionarioCommittente">
<xsl:choose>
<xsl:when test="DatiAnagrafici">
<!--DatiAnagrafici FPA\FPR-->
<xsl:for-each select="DatiAnagrafici">
<div class="headContent mt5" >
<xsl:if test="IdFiscaleIVA">
Identificativo fiscale ai fini IVA:
<span>
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
</span>
</xsl:if>
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="CodiceFiscale">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Codice fiscale:
<span>
<xsl:value-of select="CodiceFiscale" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Denominazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Denominazione:
<span>
<xsl:value-of select="Anagrafica/Denominazione" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Nome | Anagrafica/Cognome">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Cognome nome:
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Anagrafica/Cognome">
<span>
<xsl:value-of select="Anagrafica/Cognome" />
<xsl:text> </xsl:text>
</span>
</xsl:if>
<xsl:if test="Anagrafica/Nome">
<span>
<xsl:value-of select="Anagrafica/Nome" />
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="Sede">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Indirizzo">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Indirizzo:
<span>
<xsl:value-of select="Indirizzo" />
<xsl:text> </xsl:text>
<xsl:value-of select="NumeroCivico" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
<span>
<xsl:if test="Comune">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Comune:
<span>
<xsl:value-of select="Comune" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
<xsl:if test="Provincia">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Provincia:
<span>
<xsl:value-of select="Provincia" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<span>
<xsl:if test="CAP">
Cap:
<span>
<xsl:value-of select="CAP" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Nazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Nazione:
<span>
<xsl:value-of select="Nazione" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="$PecDestinatario">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Pec: <span>
<xsl:value-of select="$PecDestinatario" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<!--Anagrafica FPRS-->
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/CessionarioCommittente/IdentificativiFiscali">
<div class="headContent mt5" >
<xsl:if test="IdFiscaleIVA">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Identificativo fiscale ai fini IVA:
<span>
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="CodiceFiscale">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Codice fiscale:
<span>
<xsl:value-of select="CodiceFiscale" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
</xsl:for-each>
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/CessionarioCommittente/AltriDatiIdentificativi">
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Denominazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Denominazione:
<span>
<xsl:value-of select="Denominazione" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Nome | Cognome">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Cognome nome:
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Cognome">
<span>
<xsl:value-of select="Cognome" />
<xsl:text> </xsl:text>
</span>
</xsl:if>
<xsl:if test="Nome">
<span>
<xsl:value-of select="Nome" />
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="$TipoFattura/FatturaElettronicaHeader/CessionarioCommittente/AltriDatiIdentificativi/Sede">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Indirizzo">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Indirizzo:
<span>
<xsl:value-of select="Indirizzo" />
<xsl:text> </xsl:text>
<xsl:value-of select="NumeroCivico" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="headContent" >
<span>
<xsl:if test="Comune">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Comune:
<span>
<xsl:value-of select="Comune" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
<xsl:if test="Provincia">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Provincia:
<span>
<xsl:value-of select="Provincia" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<span>
<xsl:if test="CAP">
Cap:
<span>
<xsl:value-of select="CAP" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Nazione">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Nazione:
<span>
<xsl:value-of select="Nazione" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
<div class="headContent" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="$PecDestinatario">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
Pec: <span>
<xsl:value-of select="$PecDestinatario" />
</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</table>
<!--FINE CESSIONARIO COMMITTENTE-->
</td>
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</table>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
<div style="height:10px" > </div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- FINE FatturaElettronicaHeader -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!--INIZIO BODY-->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="$TipoFattura/FatturaElettronicaBody" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:variable name="BodyIndex" select="position()"/>
2019-09-13 12:27:29 +02:00
<!-- Conforme Standard AssoSoftware se altridatigestionali presenta ASWRELSTD -->
<xsl:variable name="posASWRELSTD" >
<xsl:for-each select="DatiBeniServizi/DettaglioLinee">
<xsl:variable name="DettaglioLinee" select="."/>
2019-09-13 12:27:29 +02:00
<xsl:variable name="posDettaglioLinee" select="position()"/>
<xsl:for-each select="AltriDatiGestionali">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test=" translate( TipoDato,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz'
) = 'aswrelstd'">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="number($posDettaglioLinee)"/>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
</xsl:variable>
<!-- FINE conforme AssoSoftware -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<table class="tbFoglio">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- TIPOLOGIA DOCUMENTO TESTATA-->
<thead>
<tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<th>Tipologia documento</th>
<xsl:if test="$IsFPRS='0'">
<th class="perc">Art. 73</th>
</xsl:if>
<xsl:if test="$IsFPRS='1'">
<th class="perc">Imposta bollo</th>
</xsl:if>
2019-09-13 12:27:29 +02:00
<th >Numero documento</th>
<th class="data">Data documento</th>
<th >Codice destinatario</th>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
</thead>
<tbody>
<tr>
<td>
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/TipoDocumento">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="DatiGenerali/DatiGeneraliDocumento/TipoDocumento" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:variable name="TD">
<xsl:value-of select="DatiGenerali/DatiGeneraliDocumento/TipoDocumento" />
</xsl:variable>
<xsl:choose>
<xsl:when test="$TD='TD01'">
fattura
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD='TD02'">
acconto/anticipo su fattura
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD='TD03'">
acconto/anticipo su parcella
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD='TD04'">
nota di credito
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD='TD05'">
nota di debito
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD='TD06'">
parcella
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD='TD16'">
integrazione fattura reverse charge interno
</xsl:when>
<xsl:when test="$TD='TD17'">
integrazione/autofattura per acquisto servizi da estero
</xsl:when>
<xsl:when test="$TD='TD18'">
integrazione per acquisto beni intracomunitari
</xsl:when>
<xsl:when test="$TD='TD19'">
integrazione/autofattura per acquisto beni ex art.17 c.2 DPR 633/72
</xsl:when>
<xsl:when test="$TD='TD20'">
autofattura per regolarizzazione e integrazione delle fatture - art.6 c.8 d.lgs.471/97 o art.46 c.5 D.L.331/93
</xsl:when>
<xsl:when test="$TD='TD21'">
autofattura per splafonamento
</xsl:when>
<xsl:when test="$TD='TD22'">
estrazione beni da Deposito IVA
</xsl:when>
<xsl:when test="$TD='TD23'">
estrazione beni da Deposito IVA con versamento IVA
</xsl:when>
<xsl:when test="$TD='TD24'">
fattura differita - art.21 c.4 lett. a)
</xsl:when>
<xsl:when test="$TD='TD25'">
fattura differita - art.21 c.4 terzo periodo lett. b)
</xsl:when>
<xsl:when test="$TD='TD26'">
cessione di beni ammortizzabili e per passaggi interni - art.36 DPR 633/72
</xsl:when>
<xsl:when test="$TD='TD27'">
fattura per autoconsumo o per cessioni gratuite senza rivalsa
</xsl:when>
2022-10-26 15:35:57 +02:00
<xsl:when test="$TD='TD28'">
fattura per acquisti da San Marino
</xsl:when>
2019-09-13 12:27:29 +02:00
<!--FPRS-->
<xsl:when test="$TD='TD07'">
fattura semplificata
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD='TD08'">
nota di credito semplificata
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD='TD09'">
nota di debito semplificata
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:when test="$TD=''">
</xsl:when>
<xsl:otherwise>
<span>(!!! codice non previsto !!!)</span>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
<xsl:if test="$IsFPRS='0'">
<td class="ritenuta" >
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/Art73">
<xsl:value-of select="DatiGenerali/DatiGeneraliDocumento/Art73" />
</xsl:if>
</td>
</xsl:if>
<xsl:if test="$IsFPRS='1'">
<td class="textCenter">
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/BolloVirtuale">
<xsl:value-of select="DatiGenerali/DatiGeneraliDocumento/BolloVirtuale" />
</xsl:if>
</td>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="textCenter" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/Numero">
<xsl:value-of select="DatiGenerali/DatiGeneraliDocumento/Numero" />
</xsl:if>
</td>
<td class="data" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/Data">
<xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="DatiGenerali/DatiGeneraliDocumento/Data" />
</xsl:call-template>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="textCenter" >
<xsl:choose>
<xsl:when test="$PecDestinatario">
Indicata PEC
</xsl:when>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:otherwise>
<xsl:if test="$CodiceDestinatario">
<xsl:value-of select="$CodiceDestinatario" />
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!--FINE TIPOLOGIA Documento TESTATA-->
</tbody>
</table>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/Causale">
<div class="separa"> </div>
<table class="tbFoglio">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- TIPOLOGIA DOCUMENTO TESTATA - parte causale-->
<thead>
<tr>
<th>Causale</th>
</tr>
</thead>
<tbody>
<tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td >
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/Causale">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DatiGenerali/DatiGeneraliDocumento/Causale" >
<xsl:value-of select="." />
<br/>
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!--FINE TIPOLOGIA Documento TESTATA - parte causale -->
</tbody>
</table>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="separa"> </div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:choose>
<xsl:when test="$IsFPRS='1'">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Dettaglio Linee -->
<table class="tbFoglio" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<thead>
<tr>
<th>Descrizione</th>
<th class="perc">Imposta</th>
<th class="perc2">%IVA</th>
<th class="ximport">Prezzo totale</th>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
</thead>
<tbody>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DatiBeniServizi" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<tr>
<td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Descrizione">
<xsl:value-of select="Descrizione" />
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="RiferimentoNormativo">
<div class="tx-xsmall">
RIF.NORM. <xsl:value-of select="RiferimentoNormativo" />
</div>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
<td class="import" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DatiIVA/Imposta">
<xsl:value-of select="format-number(DatiIVA/Imposta, '###.###.##0,00', 'euro')" />
</xsl:if>
</td>
<td class="import" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:call-template name="FormatIVA">
<xsl:with-param name="Natura" select="Natura" />
<xsl:with-param name="IVA" select="DatiIVA/Aliquota" />
</xsl:call-template>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
<td class="import" >
<xsl:if test="Importo">
<xsl:value-of select="format-number(Importo, '###.###.##0,00', 'euro')" />
</xsl:if>
</td>
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tbody>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</table>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:otherwise>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Dettaglio Linee -->
<table class="tbFoglio" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<thead>
<tr>
<th width="80px">Cod. articolo</th>
<th>Descrizione</th>
<th class="import2" >Quantità</th>
<th class="import2">Prezzo unitario</th>
<th class="perc2">UM</th>
<th class="perc">Sconto o magg.</th>
<th class="perc2">%IVA</th>
<th class="ximport">Prezzo totale</th>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
</thead>
<tbody>
2019-02-20 16:07:42 +01:00
<xsl:if test="count(DatiGenerali/DatiOrdineAcquisto[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)='']) +
2019-09-13 12:27:29 +02:00
count(DatiGenerali/DatiContratto[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)='']) +
count(DatiGenerali/DatiDDT[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)='']) +
count(DatiGenerali/DatiFattureCollegate[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)='']) +
count(DatiGenerali/DatiConvenzione[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''])+
count(DatiGenerali/DatiRicezione[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)='']) > 0 " >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Verifica che DatiOrdineAcquisto non siano senza riferimento numero linea in questo modo bisogna creare la linea di info -->
<xsl:for-each select="DatiGenerali/DatiOrdineAcquisto[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Vs.Ord. "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Verifica che DatiContratto non siano senza riferimento numero linea in questo modo bisogna creare la linea di info -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DatiGenerali/DatiContratto[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " >
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Contratto "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Verifica che DatiConvenzione non siano senza riferimento numero linea in questo modo bisogna creare la linea di info -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DatiGenerali/DatiConvenzione[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " >
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Convenzione "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Verifica che DatiRicezione non siano senza riferimento numero linea in questo modo bisogna creare la linea di info -->
<xsl:for-each select="DatiGenerali/DatiRicezione[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " >
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Ricezione "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Verifica che DatiFattureCollegate non siano senza riferimento numero linea in questo modo bisogna creare la linea di info -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DatiGenerali/DatiFattureCollegate[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:call-template name="DatiCorrelati" >
<xsl:with-param name="Prefix" select='"Fatt.Coll. "'/>
<xsl:with-param name="IdDocumento" select="IdDocumento"/>
<xsl:with-param name="Data" select="Data"/>
<xsl:with-param name="CodiceCUP" select="CodiceCUP"/>
<xsl:with-param name="CodiceCIG" select="CodiceCIG"/>
</xsl:call-template >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DatiGenerali/DatiDDT[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] ">
<xsl:apply-templates select="."/> <!-- apply DatiDDT template -->
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:call-template name="AltraDescrizioneLinea">
<xsl:with-param name="textDescrizione" select = '"------------------------"' />
</xsl:call-template>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DatiBeniServizi/DettaglioLinee" >
<xsl:apply-templates select=".">
<xsl:with-param name="r" select="position()"/>
<xsl:with-param name="posASWRELSTD" select="$posASWRELSTD"/>
<xsl:with-param name="TipoFattura" select="$TipoFattura"/>
<xsl:with-param name="IndiceBody" select="$BodyIndex"/>
</xsl:apply-templates>
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tbody>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</table>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Dati Cassa Prevvidenziale -->
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale">
<div class="separa"> </div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<table class="tbFoglio">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<thead>
<tr>
<th class="title">Dati Cassa Previdenziale</th>
<th>Imponibile</th>
<th class="perc">%Contr.</th>
<th class="perc">Ritenuta</th>
<th class="perc">%IVA</th>
<th >Importo</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<tr>
<td>
<xsl:if test="TipoCassa">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<span>
<xsl:value-of select="TipoCassa" />
</span>
<xsl:variable name="TC">
<xsl:value-of select="TipoCassa" />
</xsl:variable>
<xsl:choose>
<xsl:when test="$TC='TC01'">
(Cassa Nazionale Previdenza e Assistenza Avvocati
e Procuratori legali)
</xsl:when>
<xsl:when test="$TC='TC02'">
(Cassa Previdenza Dottori Commercialisti)
</xsl:when>
<xsl:when test="$TC='TC03'">
(Cassa Previdenza e Assistenza Geometri)
</xsl:when>
<xsl:when test="$TC='TC04'">
(Cassa Nazionale Previdenza e Assistenza
Ingegneri e Architetti liberi profess.)
</xsl:when>
<xsl:when test="$TC='TC05'">
(Cassa Nazionale del Notariato)
</xsl:when>
<xsl:when test="$TC='TC06'">
(Cassa Nazionale Previdenza e Assistenza
Ragionieri e Periti commerciali)
</xsl:when>
<xsl:when test="$TC='TC07'">
(Ente Nazionale Assistenza Agenti e Rappresentanti
di Commercio-ENASARCO)
</xsl:when>
<xsl:when test="$TC='TC08'">
(Ente Nazionale Previdenza e Assistenza Consulenti
del Lavoro-ENPACL)
</xsl:when>
<xsl:when test="$TC='TC09'">
(Ente Nazionale Previdenza e Assistenza
Medici-ENPAM)
</xsl:when>
<xsl:when test="$TC='TC10'">
(Ente Nazionale Previdenza e Assistenza
Farmacisti-ENPAF)
</xsl:when>
<xsl:when test="$TC='TC11'">
(Ente Nazionale Previdenza e Assistenza
Veterinari-ENPAV)
</xsl:when>
<xsl:when test="$TC='TC12'">
(Ente Nazionale Previdenza e Assistenza Impiegati
dell'Agricoltura-ENPAIA)
</xsl:when>
<xsl:when test="$TC='TC13'">
(Fondo Previdenza Impiegati Imprese di Spedizione
e Agenzie Marittime)
</xsl:when>
<xsl:when test="$TC='TC14'">
(Istituto Nazionale Previdenza Giornalisti
Italiani-INPGI)
</xsl:when>
<xsl:when test="$TC='TC15'">
(Opera Nazionale Assistenza Orfani Sanitari
Italiani-ONAOSI)
</xsl:when>
<xsl:when test="$TC='TC16'">
(Cassa Autonoma Assistenza Integrativa
Giornalisti Italiani-CASAGIT)
</xsl:when>
<xsl:when test="$TC='TC17'">
(Ente Previdenza Periti Industriali e Periti
Industriali Laureati-EPPI)
</xsl:when>
<xsl:when test="$TC='TC18'">
(Ente Previdenza e Assistenza
Pluricategoriale-EPAP)
</xsl:when>
<xsl:when test="$TC='TC19'">
(Ente Nazionale Previdenza e Assistenza
Biologi-ENPAB)
</xsl:when>
<xsl:when test="$TC='TC20'">
(Ente Nazionale Previdenza e Assistenza
Professione Infermieristica-ENPAPI)
</xsl:when>
<xsl:when test="$TC='TC21'">
(Ente Nazionale Previdenza e Assistenza
Psicologi-ENPAP)
</xsl:when>
<xsl:when test="$TC='TC22'">
(INPS)
</xsl:when>
<xsl:when test="$TC=''">
</xsl:when>
<xsl:otherwise>
<span>(!!! codice non previsto !!!)</span>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
<td class="import">
<xsl:if test="ImponibileCassa">
<xsl:value-of select="format-number(ImponibileCassa, '###.###.##0,00', 'euro')" />
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import">
<xsl:if test="AlCassa">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="format-number(AlCassa, '###.###.##0,00', 'euro')" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="Ritenuta" >
<xsl:if test="Ritenuta">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="Ritenuta" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:choose>
<xsl:when test="Natura">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="Natura" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:when>
<xsl:otherwise>
<xsl:if test="AliquotaIVA">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="format-number(AliquotaIVA, '###.###.##0,00', 'euro')" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import">
<xsl:if test="ImportoContributoCassa">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="format-number(ImportoContributoCassa, '###.###.##0,00', 'euro')" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tbody>
</table>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
<!-- Fine Cassa Prevvidenziale -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="separa" > </div>
<!-- Dati RIEPILOGO-->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<table class="tbTitolo">
<thead>
<tr>
<th>RIEPILOGHI IVA E TOTALI</th>
</tr>
</thead>
</table>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<table class="tbFoglio">
<thead>
<tr >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<th colspan="3" >esigibilità iva / riferimenti normativi</th>
<th class="perc">%IVA</th>
<th>Spese accessorie</th>
<th class="perc">Arr.</th>
<th colspan="2" >Totale imponibile</th>
<th colspan="2" >Totale imposta</th>
</tr>
</thead>
<tbody>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DatiBeniServizi/DatiRiepilogo" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="number(ImponibileImporto)">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<tr>
<td colspan="3" >
<xsl:choose>
<xsl:when test="EsigibilitaIVA">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<span>
<xsl:value-of select="EsigibilitaIVA" />
</span>
<xsl:variable name="EI">
<xsl:value-of select="EsigibilitaIVA" />
</xsl:variable>
<xsl:choose>
<xsl:when test="$EI='I'">
(esigibilità immediata)
</xsl:when>
<xsl:when test="$EI='D'">
(esigibilità differita)
</xsl:when>
<xsl:when test="$EI='S'">
(scissione dei pagamenti)
</xsl:when>
<xsl:otherwise>
<span>(!!! codice non previsto !!!)</span>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:otherwise>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<span>Esigib. non dich. (si presume immediata)</span>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="RiferimentoNormativo">
<div class="tx-xsmall">
<xsl:value-of select="RiferimentoNormativo" />
</div>
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:call-template name="FormatIVA">
<xsl:with-param name="Natura" select="Natura" />
<xsl:with-param name="IVA" select="AliquotaIVA" />
</xsl:call-template>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="SpeseAccessorie">
<xsl:value-of select="format-number(SpeseAccessorie, '###.###.##0,00', 'euro')" />
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Arrotondamento">
<xsl:value-of select="format-number(Arrotondamento, '###.###.##0,00', 'euro')" />
</xsl:if>
</td>
<td colspan="2" class="import" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="ImponibileImporto">
<xsl:value-of select="format-number(ImponibileImporto, '###.###.##0,00', 'euro')" />
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td colspan="2" class="import" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="Imposta">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:choose>
<xsl:when test="Imposta = 0">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="format-number(Imposta, '###.###.##0,00', 'euro')" />
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Importo Totale -->
<tr >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<th colspan="2">
Imposta bollo
2019-09-13 12:27:29 +02:00
</th>
<th colspan="3">
Sconto/Maggiorazione
</th>
2019-02-20 16:07:42 +01:00
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<th class="perc">Arr.</th>
<th colspan="4" >
Totale documento
</th>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<tr >
<td colspan="2" class="import" >
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/DatiBollo">
<xsl:choose>
<xsl:when test="DatiGenerali/DatiGeneraliDocumento/DatiBollo/ImportoBollo">
<xsl:value-of select="format-number(DatiGenerali/DatiGeneraliDocumento/DatiBollo/ImportoBollo, '###.###.##0,00', 'euro')" />
</xsl:when>
<xsl:when test="DatiGenerali/DatiGeneraliDocumento/DatiBollo/BolloVirtuale">
<xsl:value-of select="DatiGenerali/DatiGeneraliDocumento/DatiBollo/BolloVirtuale" />
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:if>
2019-09-13 12:27:29 +02:00
</td>
<td colspan="3" class="import">
<xsl:for-each select="DatiGenerali/DatiGeneraliDocumento/ScontoMaggiorazione" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:call-template name="FormatSconto" >
<xsl:with-param name="tipo" select="Tipo" />
<xsl:with-param name="percentuale" select="Percentuale" />
<xsl:with-param name="importo" select="Importo" />
</xsl:call-template>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td class="import">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/Arrotondamento">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="format-number(DatiGenerali/DatiGeneraliDocumento/Arrotondamento, '###.###.##0,00', 'euro')" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<td colspan="4" class="import">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/ImportoTotaleDocumento">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="format-number(DatiGenerali/DatiGeneraliDocumento/ImportoTotaleDocumento, '###.###.##0,00', 'euro')" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</tr>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- FINE Importo Totale -->
</tbody>
</table>
<!-- FINE Dettaglio Linee -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Dati Ritenuta Acconto -->
<xsl:if test="DatiGenerali/DatiGeneraliDocumento/DatiRitenuta">
<div class="separa"> </div>
<table class="tbFoglio">
<thead>
<tr>
<th class="title"> Dati ritenuta d'acconto</th>
<th class="perc">Aliquota ritenuta</th>
<th>Causale </th>
<th width="15%">Importo </th>
</tr>
</thead>
<tbody>
<xsl:for-each select="DatiGenerali/DatiGeneraliDocumento/DatiRitenuta" >
<xsl:apply-templates select="." />
</xsl:for-each>
</tbody>
</table>
2019-09-13 12:27:29 +02:00
</xsl:if>
<!-- Fine Dati Ritenuta -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="separa"> </div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Dati Pagamento -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<table class="tbFoglio" >
<thead>
<tr>
<th style="width:200px">Modalità pagamento</th>
<th>Dettagli</th>
<th style="width:180px">Scadenze</th>
<th class="ximport">Importo</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="DatiPagamento" >
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:variable name="CountDettaglioPagamento">
<xsl:value-of select="count(DettaglioPagamento)" />
</xsl:variable>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="DettaglioPagamento">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<tr>
<td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="ModalitaPagamento">
<span>
<xsl:value-of select="ModalitaPagamento" />
</span>
<xsl:variable name="MP">
<xsl:value-of select="ModalitaPagamento" />
</xsl:variable>
<xsl:choose>
<xsl:when test="$MP='MP01'">
Contanti
</xsl:when>
<xsl:when test="$MP='MP02'">
Assegno
</xsl:when>
<xsl:when test="$MP='MP03'">
Assegno circolare
</xsl:when>
<xsl:when test="$MP='MP04'">
Contanti presso Tesoreria
</xsl:when>
<xsl:when test="$MP='MP05'">
Bonifico
</xsl:when>
<xsl:when test="$MP='MP06'">
Vaglia cambiario
</xsl:when>
<xsl:when test="$MP='MP07'">
Bollettino bancario
</xsl:when>
<xsl:when test="$MP='MP08'">
Carta di pagamento
</xsl:when>
<xsl:when test="$MP='MP09'">
RID
</xsl:when>
<xsl:when test="$MP='MP10'">
RID utenze
</xsl:when>
<xsl:when test="$MP='MP11'">
RID veloce
</xsl:when>
<xsl:when test="$MP='MP12'">
RIBA
</xsl:when>
<xsl:when test="$MP='MP13'">
MAV
</xsl:when>
<xsl:when test="$MP='MP14'">
Quietanza erario
</xsl:when>
<xsl:when test="$MP='MP15'">
Giroconto su conti di contabilità speciale
</xsl:when>
<xsl:when test="$MP='MP16'">
Domiciliazione bancaria
</xsl:when>
<xsl:when test="$MP='MP17'">
Domiciliazione postale
</xsl:when>
<xsl:when test="$MP='MP18'">
Bollettino di c/c postale
</xsl:when>
<xsl:when test="$MP='MP19'">
SEPA Direct Debit
</xsl:when>
<xsl:when test="$MP='MP20'">
SEPA Direct Debit CORE
</xsl:when>
<xsl:when test="$MP='MP21'">
SEPA Direct Debit B2B
</xsl:when>
<xsl:when test="$MP='MP22'">
Trattenuta su somme già riscosse
</xsl:when>
<xsl:when test="$MP='MP23'">
PagoPA
</xsl:when>
2019-09-13 12:27:29 +02:00
<xsl:when test="$MP=''">
</xsl:when>
<xsl:otherwise>
<span></span>
</xsl:otherwise>
</xsl:choose>
<span>
<xsl:value-of select="OpzDescrizionePagamento" />
</span>
</xsl:if>
</td>
2019-09-13 12:27:29 +02:00
<td>
<xsl:apply-templates select="."/>
<xsl:if test="(position( )) != $CountDettaglioPagamento">
<xsl:if test="Beneficiario or CodUfficioPostale or CognomeQuietanzante or CognomeQuietanzante or CFQuietanzante or TitoloQuietanzante
or IstitutoFinanziario or IBAN or ABI or CAB or BIC or ScontoPagamentoAnticipato or DataLimitePagamentoAnticipato or PenalitaPagamentiRitardati
or DataDecorrenzaPenale or CodicePagamento">
<xsl:text>------------------------</xsl:text>
</xsl:if>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</td>
2019-09-13 12:27:29 +02:00
<td>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DataRiferimentoTerminiPagamento or GiorniTerminiPagamento">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:choose>
<xsl:when test="DataRiferimentoTerminiPagamento">
<xsl:text>Data termine </xsl:text>
<xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="DataRiferimentoTerminiPagamento" />
</xsl:call-template>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="GiorniTerminiPagamento">
<xsl:text> </xsl:text><xsl:value-of select="GiorniTerminiPagamento" />gg
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:text>Giorni termine </xsl:text>
<xsl:value-of select="GiorniTerminiPagamento" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
</xsl:choose>
<br/>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="DataScadenzaPagamento">
Data scadenza <xsl:call-template name="FormatDateIta">
<xsl:with-param name="DateTime" select="DataScadenzaPagamento" />
</xsl:call-template>
</xsl:if>
</td>
<td class="import">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="ImportoPagamento">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="format-number(ImportoPagamento, '###.###.##0,00', 'euro')" />
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
</td>
</tr>
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
</tbody>
</table>
<!-- FINE Dati Pagamento -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div style="height:10px" > </div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:for-each select="OpzRiepilogoIVA" >
<div class="tx-xsmall">
* <xsl:value-of select="." />
</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
<xsl:if test="OpzRiepilogoIVA">
<div style="height:10px" > </div>
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:otherwise>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- Definizione degli allegati -->
<xsl:if test="Allegati">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<div class="tx-small" >Allegati:</div>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<ul class="ulAllegati">
<xsl:for-each select="Allegati">
<li>
<div class="tx-small">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:value-of select="NomeAttachment" />
<xsl:text> </xsl:text>
<xsl:value-of select="DescrizioneAttachment" />
</div>
</li>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</ul>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!--Definizione se fattura è AssoSofware-->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:if test="$posASWRELSTD &gt; 0 ">
<div class="dtASWRELSTD">
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<label class="headerLabel">Conforme Standard AssoSoftware</label>
2019-02-20 16:07:42 +01:00
</div>
2019-09-13 12:27:29 +02:00
</xsl:if>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<!-- FINE ASWRELSTD -->
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</xsl:for-each>
<!--FINE BODY-->
</div>
</xsl:if>
</xsl:template>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
<xsl:template match="/">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style type="text/css">
#fattura-elettronica
{
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin-left: auto;
margin-right: auto;
max-width: 1280px;
min-width: 800px;
padding: 0; }
#fattura-elettronica
div.page {
}
.tbHeader
{
width: 800px;
border: 2px solid black;
}
tr td {vertical-align: top;}
.tdHead {
width: 50%;
height: 91px;
border: 1px solid black;
}
.tableHead
{
font-size:smaller;
width: 100%;
}
.headBorder
{
<!--border: 2px solid black;
width:100%;
2019-09-13 12:27:29 +02:00
height: 210px;
border-bottom-left-radius:30px;
border-bottom-right-radius:30px; -->
}
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
.headerLabel
{
color:#282828;
font-weight:bold;
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
}
.headContent
{
margin-left:10px;
margin-bottom:0px
}
.mt5
{
margin-top:5px
}
tr.break { page-break-after: always; }
.ulAllegati
{
margin-top:0px;
}
.separa
{
height:20px;
}
table.tbTitolo
{
width: 800px;
table-layout: fixed;
border-collapse: collapse;
word-wrap:normal; <!--break-word;-->
}
table.tbTitolo th {
padding-left: 5px;
padding-right: 5px;
border: solid 1px #000000;
border-bottom: none;
background-color: LightCyan;
font-size:x-small;
}
table.tbFoglio
{
width: 800px;
table-layout: fixed;
border-collapse: collapse;
word-wrap:break-word;
}
2019-09-13 12:27:29 +02:00
table.tbFoglio th {
padding-left: 5px;
padding-right: 5px;
border: solid 1px #000000;
background-color: LightGrey;
<!-- text-transform: uppercase; -->
font-size:x-small;
}
table.tbFoglio tbody
{
border: solid 1px #000000;
}
table.tbFoglio th .perc
{
width:50px;
}
table.tbFoglio td {
font-size:small;
border-right: solid 1px #000000;
border-bottom: none;
border-left: solid 1px #000000;
}
table.tbFoglio tr {
}
.textRight
{
text-align:right;
}
.textCenter
{
text-align:center;
}
.textPerc
{
width:50px;
}
td.Ritenuta
{
width:50px;
text-align:center;
}
th.title, .title td {
width:48%
}
th.perc {
width:50px;
}
th.perc2 {
width:40px;
}
th.data {
width:80px;
}
th.import
{
width:100px;
}
td.import
{
text-align:right;
}
th.import2
{
width:80px;
}
td.import2
{
text-align:right;
}
th.ximport
{
width:100px;
}
td.ximport
{
text-align:center;
}
th.ximport2
{
width:80px;
}
td.ximport2
{
text-align:center;
}
td.data
{
text-align:center;
}
.tx-xsmall {
font-size:x-small;
}
.tx-small {
font-size:small;
}
.import
{
text-align:right;
}
table.tbNoBorder
{
border-collapse: collapse;
margin-bottom: 5px;
2019-09-13 12:27:29 +02:00
font-size:small;
text-align:center;
width:800px;
}
2019-09-13 12:27:29 +02:00
</style>
</head>
<body>
<div id="fattura-container">
<xsl:choose>
<xsl:when test="d:FatturaElettronicaSemplificata">
<!--versione 1.0 SEMPLIFICATA-->
<xsl:call-template name="FatturaElettronica">
<xsl:with-param name="TipoFattura" select="d:FatturaElettronicaSemplificata" />
<xsl:with-param name="IsFPRS" select="1" />
</xsl:call-template>
</xsl:when>
<xsl:when test="c:FatturaElettronica">
<!--versione 1.0-->
<xsl:call-template name="FatturaElettronica">
<xsl:with-param name="TipoFattura" select="c:FatturaElettronica" />
<xsl:with-param name="IsFPRS" select="0" />
</xsl:call-template>
</xsl:when>
<xsl:when test="b:FatturaElettronica">
<!--versione 1.1-->
<xsl:call-template name="FatturaElettronica">
<xsl:with-param name="TipoFattura" select="b:FatturaElettronica" />
<xsl:with-param name="IsFPRS" select="0" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="FatturaElettronica">
<!--versione 1.2-->
<xsl:with-param name="TipoFattura" select="a:FatturaElettronica" />
<xsl:with-param name="IsFPRS" select="0" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
2019-02-20 16:07:42 +01:00
2019-09-13 12:27:29 +02:00
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>