diff --git a/modules/preventivi/row-list.php b/modules/preventivi/row-list.php index d5961e372..97451c9c9 100644 --- a/modules/preventivi/row-list.php +++ b/modules/preventivi/row-list.php @@ -201,22 +201,20 @@ echo ' // Margine $margine = $preventivo->margine; -if (!empty($margine)) { - $margine_style = $margine < 0 ? 'background-color: #FFC6C6; border: 3px solid red' : ''; +$margine_style = $margine <= 0 ? 'background-color: #FFC6C6; border: 3px solid red' : ''; - echo ' - - - '.tr('Margine (_PRC_%)', [ - '_PRC_' => numberFormat($preventivo->margine_percentuale), - ]).': - - - '.moneyFormat($preventivo->margine).' - - - '; -} +echo ' + + + '.tr('Margine (_PRC_%)', [ + '_PRC_' => numberFormat($preventivo->margine_percentuale), + ]).': + + + '.moneyFormat($preventivo->margine).' + + +'; echo ' ';