mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-26 07:44:02 +01:00
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:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
<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>
|
||||
|
||||
@ -1135,10 +1144,20 @@
|
||||
<xsl:if test="IdFiscaleIVA">
|
||||
|
||||
Identificativo fiscale ai fini IVA:
|
||||
<span>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</span>
|
||||
<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>
|
||||
@ -1360,10 +1379,20 @@
|
||||
<xsl:if test="IdFiscaleIVA">
|
||||
|
||||
Identificativo fiscale ai fini IVA:
|
||||
<span>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
</span>
|
||||
<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>
|
||||
@ -1455,8 +1484,18 @@
|
||||
|
||||
Identificativo fiscale ai fini IVA:
|
||||
<span>
|
||||
<xsl:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
<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:value-of select="IdFiscaleIVA/IdPaese" />
|
||||
<xsl:value-of select="IdFiscaleIVA/IdCodice" />
|
||||
<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
Block a user