1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 00:06:14 +01:00

Fix consuntivo

This commit is contained in:
MatteoPistorello 2023-06-20 17:02:41 +02:00
parent f68213e1e3
commit 9b40f19a53

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