From 9b40f19a5328bab55caf2aa09a3732d0c07bad8e Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Tue, 20 Jun 2023 17:02:41 +0200 Subject: [PATCH] Fix consuntivo --- modules/contratti/plugins/contratti.consuntivo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/contratti/plugins/contratti.consuntivo.php b/modules/contratti/plugins/contratti.consuntivo.php index 36ebdceb1..6cb0c95a7 100755 --- a/modules/contratti/plugins/contratti.consuntivo.php +++ b/modules/contratti/plugins/contratti.consuntivo.php @@ -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 = ''.moneyFormat($diff).'';