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:
parent
f68213e1e3
commit
9b40f19a53
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user