Fix consuntivo

This commit is contained in:
MatteoPistorello 2023-06-20 17:02:41 +02:00
parent f68213e1e3
commit 9b40f19a53
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ $budget = $rs[0]['budget'];
$rs = $dbo->fetchArray("SELECT SUM(qta) AS totale_ore FROM `co_righe_contratti` WHERE um='ore' AND idcontratto=".prepare($id_record));
$totale_ore_contratto = $rs[0]['totale_ore'];
$diff = sum($budget, -$totale);
$diff = sum($budget, -$totale) - $contratto->provvigione;
if ($diff > 0) {
$bilancio = '<span class="text-success"><big>'.moneyFormat($diff).'</big></span>';