Skip to content

Commit 749e26f

Browse files
fix: visualizzazione table movimenti
1 parent fdd18d2 commit 749e26f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

modules/articoli/plugins/articoli.movimenti.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
<table class="table table-striped table-sm table-bordered">
8989
<tr>
9090
<th class="text-center" width="40">#</th>
91-
<th class="text-center" width="120">'.tr('Q.tà').'</th>
91+
<th class="text-center" width="120">'.tr('Carico').'</th>
92+
<th class="text-center" width="120">'.tr('Scarico').'</th>
9293
<th class="text-center">'.tr('Q.tà progressiva').'</th>
9394
<th>'.tr('Operazione').'</th>
9495
<th>'.tr('Controparte').'</th>
@@ -116,10 +117,12 @@
116117
<td class="text-center">
117118
'.count($movimenti) - $i.'
118119
</td>
119-
<td class="text-center" style="color: '.($movimento->qta < 0 ? 'red' : 'green').';">
120-
'.numberFormat($movimento->qta, 'qta').' '.$record['um'].'
120+
<td class="text-center" style="color: green;">
121+
'.($movimento->qta > 0 ? numberFormat($movimento->qta, 'qta').' '.$record['um'] : '').'
122+
</td>
123+
<td class="text-center" style="color: red;">
124+
'.($movimento->qta < 0 ? numberFormat(abs($movimento->qta), 'qta').' '.$record['um'] : '').'
121125
</td>
122-
123126
<td class="text-center">
124127
'.numberFormat($movimento['progressivo_iniziale'], 'qta').' '.$record['um'].'
125128
<i class="fa fa-arrow-circle-right"></i>

0 commit comments

Comments
 (0)