fix partita iva in generazione xml
This commit is contained in:
parent
64c4f73ad7
commit
69e638627f
|
@ -877,10 +877,19 @@
|
|||
|
||||
Identificativo fiscale ai fini IVA:
|
||||
<span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="string(number(substring(IdFiscaleIVA/IdCodice[1],1,1)))='NaN' and string(number(substring(IdFiscaleIVA/IdCodice[2],1,1)))='NaN'">
|
||||
<xsl:if test="IdFiscaleIVA/IdPaese = 'FR' or (substring(IdFiscaleIVA/IdCodice[1],1,1)='G' and substring(IdFiscaleIVA/IdCodice[2],1,1)='D') or (substring(IdFiscaleIVA/IdCodice[1],1,1)='H' and substring(IdFiscaleIVA/IdCodice[2],1,1)='A')">
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
</xsl:if>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
|
||||
</xsl:if>
|
||||
</div>
|
||||
|
||||
|
@ -1136,8 +1145,18 @@
|
|||
|
||||
Identificativo fiscale ai fini IVA:
|
||||
<span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="string(number(substring(IdFiscaleIVA/IdCodice[1],1,1)))='NaN' and string(number(substring(IdFiscaleIVA/IdCodice[2],1,1)))='NaN'">
|
||||
<xsl:if test="IdFiscaleIVA/IdPaese = 'FR' or (substring(IdFiscaleIVA/IdCodice[1],1,1)='G' and substring(IdFiscaleIVA/IdCodice[2],1,1)='D') or (substring(IdFiscaleIVA/IdCodice[1],1,1)='H' and substring(IdFiscaleIVA/IdCodice[2],1,1)='A')">
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
</xsl:if>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
|
||||
</xsl:if>
|
||||
|
@ -1361,8 +1380,18 @@
|
|||
|
||||
Identificativo fiscale ai fini IVA:
|
||||
<span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="string(number(substring(IdFiscaleIVA/IdCodice[1],1,1)))='NaN' and string(number(substring(IdFiscaleIVA/IdCodice[2],1,1)))='NaN'">
|
||||
<xsl:if test="IdFiscaleIVA/IdPaese = 'FR' or (substring(IdFiscaleIVA/IdCodice[1],1,1)='G' and substring(IdFiscaleIVA/IdCodice[2],1,1)='D') or (substring(IdFiscaleIVA/IdCodice[1],1,1)='H' and substring(IdFiscaleIVA/IdCodice[2],1,1)='A')">
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
</xsl:if>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
|
||||
</xsl:if>
|
||||
|
@ -1455,8 +1484,18 @@
|
|||
|
||||
Identificativo fiscale ai fini IVA:
|
||||
<span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="string(number(substring(IdFiscaleIVA/IdCodice[1],1,1)))='NaN' and string(number(substring(IdFiscaleIVA/IdCodice[2],1,1)))='NaN'">
|
||||
<xsl:if test="IdFiscaleIVA/IdPaese = 'FR' or (substring(IdFiscaleIVA/IdCodice[1],1,1)='G' and substring(IdFiscaleIVA/IdCodice[2],1,1)='D') or (substring(IdFiscaleIVA/IdCodice[1],1,1)='H' and substring(IdFiscaleIVA/IdCodice[2],1,1)='A')">
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
</xsl:if>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
|
||||
</xsl:if>
|
||||
|
@ -1602,8 +1641,18 @@
|
|||
|
||||
Identificativo fiscale ai fini IVA:
|
||||
<span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="string(number(substring(IdFiscaleIVA/IdCodice[1],1,1)))='NaN' and string(number(substring(IdFiscaleIVA/IdCodice[2],1,1)))='NaN'">
|
||||
<xsl:if test="IdFiscaleIVA/IdPaese = 'FR' or (substring(IdFiscaleIVA/IdCodice[1],1,1)='G' and substring(IdFiscaleIVA/IdCodice[2],1,1)='D') or (substring(IdFiscaleIVA/IdCodice[1],1,1)='H' and substring(IdFiscaleIVA/IdCodice[2],1,1)='A')">
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
</xsl:if>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
|
||||
</xsl:if>
|
||||
|
|
Loading…
Reference in New Issue