diff --git a/modules/ordini/row-list.php b/modules/ordini/row-list.php index 302c3ed63..05674abc0 100755 --- a/modules/ordini/row-list.php +++ b/modules/ordini/row-list.php @@ -431,6 +431,43 @@ if (!empty($ordine->provvigione)) { '; } +if ($dir == 'entrata') { + // Margine + $margine = $ordine->margine; + $margine_class = ($margine <= 0 && $totale > 0) ? 'danger' : 'success'; + $margine_icon = ($margine <= 0 && $totale > 0) ? 'warning' : 'check'; + + echo ' + + + '.tr('Costi').': + + + '.moneyFormat($ordine->spesa).' + + + + + + '.tr('Margine (_PRC_%)', [ + '_PRC_' => numberFormat($ordine->margine_percentuale), + ]).': + + + '.moneyFormat($margine).' + + + + + + + '.tr('Ricarico (_PRC_%)', [ + '_PRC_' => numberFormat($ordine->ricarico_percentuale), + ]).': + + '; +} + echo ' '; if (!$block_edit && sizeof($righe) > 0) {