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

Ritenuta acconto sempre positiva

This commit is contained in:
Luca 2019-06-28 15:13:36 +02:00
parent ca9a480f92
commit b568df28fa
2 changed files with 4 additions and 4 deletions
modules/fatture
templates/fatture

@ -388,7 +388,7 @@ if (!empty($fattura->ritenuta_acconto)) {
<b>'.tr("Ritenuta d'acconto", [], ['upper' => true]).':</b> <b>'.tr("Ritenuta d'acconto", [], ['upper' => true]).':</b>
</td> </td>
<td align="right"> <td align="right">
'.moneyFormat($fattura->ritenuta_acconto, 2).' '.moneyFormat(abs($fattura->ritenuta_acconto), 2).'
</td> </td>
<td></td> <td></td>
</tr>'; </tr>';

@ -242,13 +242,13 @@ if (!empty($record['ritenutaacconto']) || !empty($fattura->totale_ritenuta_contr
<tr> <tr>
<td class="cell-padded text-center" colspan="'.$first_colspan.'"> <td class="cell-padded text-center" colspan="'.$first_colspan.'">
'.moneyFormat($record['ritenutaacconto'] + $fattura->totale_ritenuta_contributi, 2).' '.moneyFormat(abs($fattura->ritenuta_acconto) + $fattura->totale_ritenuta_contributi, 2).'
</td>'; </td>';
echo ' echo '
<td class="cell-padded text-center" colspan="'.$second_colspan.'"> <td class="cell-padded text-center" colspan="'.$second_colspan.'">
'.moneyFormat($totale - $record['ritenutaacconto'] - $fattura->totale_ritenuta_contributi, 2).' '.moneyFormat($totale - abs($fattura->ritenuta_acconto) - $fattura->totale_ritenuta_contributi, 2).'
</td> </td>
</tr>'; </tr>';
} }
@ -276,7 +276,7 @@ if (!empty($record['split_payment'])) {
</td> </td>
<td class="cell-padded text-center" colspan="'.$second_colspan.'"> <td class="cell-padded text-center" colspan="'.$second_colspan.'">
'.moneyFormat($totale - $totale_iva - $record['ritenutaacconto'] - $fattura->totale_ritenuta_contributi, 2).' '.moneyFormat($totale - $totale_iva - abs($fattura->ritenuta_acconto) - $fattura->totale_ritenuta_contributi, 2).'
</td> </td>
</tr>'; </tr>';
} }