1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-03 01:08:08 +01:00

Fix minore

This commit is contained in:
Pek5892 2023-04-13 12:51:44 +02:00
parent 8a7d093da4
commit 2756812373
2 changed files with 1 additions and 5 deletions

View File

@ -259,10 +259,6 @@ echo '
<td>TOTALE IVA OGGETTIVAMENTE INDETRAIBILI SU ACQUISTI</td>
<td class=text-right>'.moneyFormat($totale_iva_nondetraibile, 2).'</td>
</tr>
<tr>
<td>TOTALE IVA DETRAIBILI</td>
<td class=text-right>'.(empty($totale_iva_nondetraibile) ? '' : moneyformat($totale_iva_detraibile - $totale_iva_nondetraibile, 2)).'</td>
</tr>
<tr>
<td>VARIAZIONE DI IMPOSTA RELATIVE A PERIODI PRECEDENTI</td>';
if ($totale_iva_periodo_precedente < 25.82 && $totale_iva_periodo_precedente > 0) {

View File

@ -312,7 +312,7 @@ $iva_vendite_nonesigibile = $dbo->fetchArray('
co_iva.codice_natura_fe AS cod_iva,
co_iva.percentuale AS aliquota,
co_iva.descrizione AS descrizione,
SUM((subtotale-sconto+co_righe_documenti.rivalsainps) *percentuale/100 *indetraibile/100 *(IF(co_tipidocumento.reversed = 0, 1,-1 ))) AS iva,
SUM((subtotale-sconto+co_righe_documenti.rivalsainps) *percentuale/100 *(100-indetraibile)/100 *(IF(co_tipidocumento.reversed = 0, 1,-1 ))) AS iva,
SUM((co_righe_documenti.subtotale - co_righe_documenti.sconto + co_righe_documenti.rivalsainps) *(IF(co_tipidocumento.reversed = 0,1,-1))) AS subtotale
FROM
co_iva