This commit is contained in:
Pek5892 2023-04-18 11:33:00 +02:00
parent 5f61d85195
commit 203a7f3976
1 changed files with 2 additions and 2 deletions

View File

@ -228,14 +228,14 @@ echo '
</tr>';
// SCONTO
if (!empty($intervento->sconto)) {
if (!empty($righe->sum('sconto'))) {
echo '
<tr>
<td colspan="'.$colspan.'" class="text-right">
<b><span class="tip" title="'.tr('Un importo positivo indica uno sconto, mentre uno negativo indica una maggiorazione').'"> <i class="fa fa-question-circle-o"></i> '.tr('Sconto/maggiorazione', [], ['upper' => true]).':</span></b>
</td>
<td class="text-right">
'.moneyFormat($intervento->sconto, 2).'
'.moneyFormat($righe->sum('sconto'), 2).'
</td>
<td></td>
</tr>';