From c3bbde2395dde204ce136ccb60ab095071589dfd Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Thu, 2 Nov 2023 15:31:47 +0100 Subject: [PATCH] Aggiunta costi e margine in ordini cliente --- modules/ordini/row-list.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) 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) {