Aggiunta visualizzazione margine sempre

This commit is contained in:
loviuz 2019-12-24 12:45:23 +01:00
parent 0529aaaf0d
commit 25c399989c
1 changed files with 13 additions and 15 deletions

View File

@ -201,11 +201,10 @@ echo '
// Margine // Margine
$margine = $preventivo->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 ' echo '
<tr> <tr>
<td colspan="5" class="text-right"> <td colspan="5" class="text-right">
'.tr('Margine (_PRC_%)', [ '.tr('Margine (_PRC_%)', [
'_PRC_' => numberFormat($preventivo->margine_percentuale), '_PRC_' => numberFormat($preventivo->margine_percentuale),
@ -215,8 +214,7 @@ if (!empty($margine)) {
'.moneyFormat($preventivo->margine).' '.moneyFormat($preventivo->margine).'
</td> </td>
<td></td> <td></td>
</tr>'; </tr>';
}
echo ' echo '
</table>'; </table>';