|
111 | 111 |
|
112 | 112 | </xsl:template> |
113 | 113 |
|
114 | | - <!--DatiOrdineAcquisto Vs.Ord. XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ--> |
115 | | - <!--DatiContratto Contratto XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ --> |
116 | | - <!--DatiConvenzione Convenzione XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ --> |
117 | | - <!--DatiRicezione Ricezione XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ --> |
118 | | - <!--Fatture collegate Fatt.coll. XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ --> |
| 114 | + <!--DatiOrdineAcquisto Rif.Ord. XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ Codice commessa/convenzione:#cod-vvv#--> |
| 115 | + <!--DatiContratto Contratto XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ Codice commessa/convenzione:#cod-vvv#--> |
| 116 | + <!--DatiConvenzione Convenzione XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ Codice commessa/convenzione:#cod-vvv#--> |
| 117 | + <!--DatiRicezione Ricezione XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ Codice commessa/convenzione:#cod-vvv#--> |
| 118 | + <!--Fatture collegate Fatt.coll. XXXXXX del 26/09/2018 CUP:YYYYYY CIG:ZZZZZZZ Codice commessa/convenzione:#cod-vvv#--> |
119 | 119 | <xsl:template name="DatiCorrelati"> |
120 | | - <xsl:param name="Prefix" /> |
121 | | - <xsl:param name="IdDocumento" /> |
122 | | - <xsl:param name="Data" /> |
123 | | - <xsl:param name="CodiceCUP" /> |
124 | | - <xsl:param name="CodiceCIG" /> |
| 120 | + <xsl:param name="Prefix" /> |
125 | 121 | <xsl:variable name="descrizione" > |
126 | | - <xsl:value-of select="$Prefix" /> |
127 | | - <xsl:value-of select="$IdDocumento" /> |
128 | | - <xsl:if test="$Data"> |
129 | | - <xsl:text> del </xsl:text> |
130 | | - <xsl:call-template name="FormatDateIta"> |
131 | | - <xsl:with-param name="DateTime" select="$Data" /> |
132 | | - </xsl:call-template> |
133 | | - </xsl:if> |
134 | | - <xsl:if test="$CodiceCUP"> |
135 | | - <xsl:text> CUP: </xsl:text> |
136 | | - <xsl:value-of select="$CodiceCUP" /> |
137 | | - </xsl:if> |
138 | | - <xsl:if test="$CodiceCIG"> |
139 | | - <xsl:text> CIG: </xsl:text> |
140 | | - <xsl:value-of select="$CodiceCIG" /> |
141 | | - </xsl:if> |
| 122 | + <xsl:value-of select="$Prefix" /> |
| 123 | + <xsl:value-of select="IdDocumento" /> |
| 124 | + <xsl:if test="Data"> |
| 125 | + <xsl:text> del </xsl:text> |
| 126 | + <xsl:call-template name="FormatDateIta"> |
| 127 | + <xsl:with-param name="DateTime" select="Data" /> |
| 128 | + </xsl:call-template> |
| 129 | + </xsl:if> |
| 130 | + <xsl:if test="CodiceCUP"> |
| 131 | + <xsl:text> CUP: </xsl:text> |
| 132 | + <xsl:value-of select="CodiceCUP" /> |
| 133 | + </xsl:if> |
| 134 | + <xsl:if test="CodiceCIG"> |
| 135 | + <xsl:text> CIG: </xsl:text> |
| 136 | + <xsl:value-of select="CodiceCIG" /> |
| 137 | + </xsl:if> |
| 138 | + |
142 | 139 | </xsl:variable> |
| 140 | + |
| 141 | + <xsl:variable name="descrizioneCC"> |
| 142 | + <xsl:if test="CodiceCommessaConvenzione"> |
| 143 | + <xsl:text>Commessa/convenzione: </xsl:text> |
| 144 | + <xsl:value-of select="CodiceCommessaConvenzione" /> |
| 145 | + </xsl:if> |
| 146 | + </xsl:variable> |
| 147 | + |
143 | 148 | <xsl:if test="$descrizione"> |
144 | 149 | <xsl:call-template name="AltraDescrizioneLinea"> |
145 | 150 | <xsl:with-param name="textDescrizione" select = "$descrizione" /> |
146 | 151 | </xsl:call-template> |
147 | 152 | </xsl:if> |
| 153 | + |
| 154 | + <xsl:if test="$descrizioneCC"> |
| 155 | + <xsl:call-template name="AltraDescrizioneLinea"> |
| 156 | + <xsl:with-param name="textDescrizione" select = "$descrizioneCC" /> |
| 157 | + </xsl:call-template> |
| 158 | + </xsl:if> |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
148 | 165 | </xsl:template> |
149 | 166 |
|
150 | 167 | <xsl:template match="DatiDDT"> |
|
216 | 233 | <xsl:otherwise> |
217 | 234 |
|
218 | 235 | <xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiOrdineAcquisto[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] "> |
219 | | - <xsl:call-template name="DatiCorrelati" > |
220 | | - <xsl:with-param name="Prefix" select='"Vs.Ord. "'/> |
221 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
222 | | - <xsl:with-param name="Data" select="Data"/> |
223 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
224 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
| 236 | + <xsl:call-template name="DatiCorrelati" select="." > |
| 237 | + <xsl:with-param name="Prefix" select='"Vs.Ord. "'/> |
225 | 238 | </xsl:call-template > |
226 | | - </xsl:for-each> |
227 | | - |
228 | | - |
| 239 | + </xsl:for-each> |
229 | 240 | </xsl:otherwise> |
230 | 241 | </xsl:choose> |
231 | 242 |
|
|
242 | 253 |
|
243 | 254 | <xsl:otherwise> |
244 | 255 | <xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiContratto[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] "> |
245 | | - <xsl:call-template name="DatiCorrelati" > |
| 256 | + <xsl:call-template name="DatiCorrelati" select="."> |
246 | 257 | <xsl:with-param name="Prefix" select='"Contratto "'/> |
247 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
248 | | - <xsl:with-param name="Data" select="Data"/> |
249 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
250 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
| 258 | + |
251 | 259 | </xsl:call-template > |
252 | 260 | </xsl:for-each> |
253 | 261 |
|
|
268 | 276 | <xsl:otherwise> |
269 | 277 |
|
270 | 278 | <xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiConvenzione[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] "> |
271 | | - <xsl:call-template name="DatiCorrelati" > |
| 279 | + <xsl:call-template name="DatiCorrelati" select="."> |
272 | 280 | <xsl:with-param name="Prefix" select='"Convenzione "'/> |
273 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
274 | | - <xsl:with-param name="Data" select="Data"/> |
275 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
276 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
277 | 281 | </xsl:call-template > |
278 | 282 | </xsl:for-each> |
279 | 283 |
|
|
294 | 298 | <xsl:otherwise> |
295 | 299 |
|
296 | 300 | <xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiRicezione[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] "> |
297 | | - <xsl:call-template name="DatiCorrelati" > |
| 301 | + <xsl:call-template name="DatiCorrelati" select="."> |
298 | 302 | <xsl:with-param name="Prefix" select='"Ricezione "'/> |
299 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
300 | | - <xsl:with-param name="Data" select="Data"/> |
301 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
302 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
303 | 303 | </xsl:call-template > |
304 | 304 | </xsl:for-each> |
305 | 305 |
|
|
319 | 319 | <xsl:otherwise> |
320 | 320 |
|
321 | 321 | <xsl:for-each select="$TipoFattura/FatturaElettronicaBody[$IndiceBody]/DatiGenerali/DatiFattureCollegate[ number(./RiferimentoNumeroLinea) = $valNumeroLinea] "> |
322 | | - <xsl:call-template name="DatiCorrelati" > |
323 | | - <xsl:with-param name="Prefix" select='"Fatt.coll. "'/> |
324 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
325 | | - <xsl:with-param name="Data" select="Data"/> |
326 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
327 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
| 322 | + <xsl:call-template name="DatiCorrelati" select="."> |
| 323 | + <xsl:with-param name="Prefix" select='"Fatt.coll. "'/> |
328 | 324 | </xsl:call-template > |
329 | 325 | </xsl:for-each> |
330 | 326 |
|
|
1017 | 1013 | <xsl:when test="$RF='RF18'"> |
1018 | 1014 | altro |
1019 | 1015 | </xsl:when> |
| 1016 | + <xsl:when test="$RF='RF20'"> |
| 1017 | + Regime transfrontaliero di Franchigia IVA (Direttiva UE 2020/285) |
| 1018 | + </xsl:when> |
1020 | 1019 | <xsl:when test="$RF=''"> |
1021 | 1020 | </xsl:when> |
1022 | 1021 | <xsl:otherwise> |
|
1903 | 1902 | integrazione/autofattura per acquisto di beni ex art.17 c.2 DPR 633/72 |
1904 | 1903 | </xsl:when> |
1905 | 1904 | <xsl:when test="$TD='TD20'"> |
1906 | | - autofattura per regolarizzazione e integrazione delle fatture (ex art.6 c.8 e 9-bis d.lgs.471/97 o art.46 c.5 D.L. 331/93 |
| 1905 | + autofattura per regolarizzazione e integrazione delle fatture (ex art.6 c.9-bis d.lgs.471/97 o art.46 c.5 D.L. 331/93 |
1907 | 1906 | </xsl:when> |
1908 | 1907 | <xsl:when test="$TD='TD21'"> |
1909 | 1908 | autofattura per splafonamento |
|
1929 | 1928 | <xsl:when test="$TD='TD28'"> |
1930 | 1929 | acquisti da San Marino con IVA (fattura cartacea) |
1931 | 1930 | </xsl:when> |
1932 | | - |
| 1931 | + <xsl:when test="$TD='TD29'"> |
| 1932 | + comunicazione per omessa o irregolare fatturazione da parte del cedente/prestatore italiano - art. 6, comma 8, D.Lgs. 471/97 |
| 1933 | + </xsl:when> |
1933 | 1934 | <!--FPRS--> |
1934 | 1935 | <xsl:when test="$TD='TD07'"> |
1935 | 1936 | fattura semplificata |
|
2118 | 2119 | <!-- Verifica che DatiOrdineAcquisto non siano senza riferimento numero linea in questo modo bisogna creare la linea di info --> |
2119 | 2120 | <xsl:for-each select="DatiGenerali/DatiOrdineAcquisto[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " > |
2120 | 2121 |
|
2121 | | - <xsl:call-template name="DatiCorrelati" > |
| 2122 | + <xsl:call-template name="DatiCorrelati" select="."> |
2122 | 2123 | <xsl:with-param name="Prefix" select='"Vs.Ord. "'/> |
2123 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
2124 | | - <xsl:with-param name="Data" select="Data"/> |
2125 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
2126 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
2127 | 2124 | </xsl:call-template > |
2128 | 2125 | </xsl:for-each> |
2129 | 2126 |
|
2130 | 2127 | <!-- Verifica che DatiContratto non siano senza riferimento numero linea in questo modo bisogna creare la linea di info --> |
2131 | 2128 |
|
2132 | 2129 | <xsl:for-each select="DatiGenerali/DatiContratto[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " > |
2133 | | - <xsl:call-template name="DatiCorrelati" > |
| 2130 | + <xsl:call-template name="DatiCorrelati" select="."> |
2134 | 2131 | <xsl:with-param name="Prefix" select='"Contratto "'/> |
2135 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
2136 | | - <xsl:with-param name="Data" select="Data"/> |
2137 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
2138 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
2139 | 2132 | </xsl:call-template > |
2140 | 2133 |
|
2141 | 2134 | </xsl:for-each> |
2142 | 2135 |
|
2143 | 2136 | <!-- Verifica che DatiConvenzione non siano senza riferimento numero linea in questo modo bisogna creare la linea di info --> |
2144 | 2137 |
|
2145 | 2138 | <xsl:for-each select="DatiGenerali/DatiConvenzione[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " > |
2146 | | - <xsl:call-template name="DatiCorrelati" > |
| 2139 | + <xsl:call-template name="DatiCorrelati" select="." > |
2147 | 2140 | <xsl:with-param name="Prefix" select='"Convenzione "'/> |
2148 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
2149 | | - <xsl:with-param name="Data" select="Data"/> |
2150 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
2151 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
| 2141 | + |
2152 | 2142 | </xsl:call-template > |
2153 | 2143 |
|
2154 | 2144 | </xsl:for-each> |
2155 | 2145 |
|
2156 | 2146 | <!-- Verifica che DatiRicezione non siano senza riferimento numero linea in questo modo bisogna creare la linea di info --> |
2157 | 2147 | <xsl:for-each select="DatiGenerali/DatiRicezione[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " > |
2158 | | - <xsl:call-template name="DatiCorrelati" > |
| 2148 | + <xsl:call-template name="DatiCorrelati" select="."> |
2159 | 2149 | <xsl:with-param name="Prefix" select='"Ricezione "'/> |
2160 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
2161 | | - <xsl:with-param name="Data" select="Data"/> |
2162 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
2163 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
2164 | 2150 | </xsl:call-template > |
2165 | 2151 |
|
2166 | 2152 | </xsl:for-each> |
|
2169 | 2155 |
|
2170 | 2156 | <xsl:for-each select="DatiGenerali/DatiFattureCollegate[not(./RiferimentoNumeroLinea) or normalize-space(./RiferimentoNumeroLinea)=''] " > |
2171 | 2157 |
|
2172 | | - <xsl:call-template name="DatiCorrelati" > |
| 2158 | + <xsl:call-template name="DatiCorrelati" select="."> |
2173 | 2159 | <xsl:with-param name="Prefix" select='"Fatt.Coll. "'/> |
2174 | | - <xsl:with-param name="IdDocumento" select="IdDocumento"/> |
2175 | | - <xsl:with-param name="Data" select="Data"/> |
2176 | | - <xsl:with-param name="CodiceCUP" select="CodiceCUP"/> |
2177 | | - <xsl:with-param name="CodiceCIG" select="CodiceCIG"/> |
2178 | 2160 | </xsl:call-template > |
2179 | 2161 |
|
2180 | 2162 | </xsl:for-each> |
|
0 commit comments