1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 22:03:18 +01:00
This commit is contained in:
Pek5892 2023-04-18 11:33:00 +02:00
parent 5f61d85195
commit 203a7f3976

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>';