mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-16 19:20:18 +01:00
fix: visualizzazione giacenze articoli
This commit is contained in:
parent
4389bbbb34
commit
13b3e09813
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
echo '
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class=col-md-12">
|
||||
<h5>'.tr('Legenda').':</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<span class="pull-left icon" style="background-color:white;"></span>
|
||||
<span class="text"> '.tr('Articolo senza soglia minima').'</span>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<span class="pull-left icon" style="background-color:#CCFFCC;"></span>
|
||||
<span class="text"> '.tr('Quantità superiore alla soglia minima').'</span>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<span class="pull-left icon" style="background-color:#ec5353;"></span>
|
||||
<span class="text"> '.tr('Quantità inferiore alla soglia minima').'</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
@ -92,8 +92,10 @@ if ($articolo->servizio) {
|
||||
</thead>
|
||||
<tbody>';
|
||||
foreach ($sedi as $sede) {
|
||||
$threshold_sede = $dbo->fetchOne('SELECT `threshold_qta` FROM `mg_scorte_sedi` WHERE `id_sede` = '.prepare($sede['id']).' AND `id_articolo` = '.prepare($articolo->id))['threshold_qta'];
|
||||
|
||||
echo '
|
||||
<tr class="'.($giacenze[$sede['id']][0] < $articolo->threshold_qta ? 'text-danger' : '').'">
|
||||
<tr class="'.($giacenze[$sede['id']][0] < $threshold_sede ? 'text-danger' : '').'">
|
||||
<td>'.$sede['nomesede'].'</td>
|
||||
<td class="text-right">'.numberFormat($giacenze[$sede['id']][0], 'qta').' '.$articolo->um.'</td>
|
||||
'.($articolo->fattore_um_secondaria != 0 ? '<td class="text-right"><i class="fa fa-chevron-right pull-left"></i> '.$giacenze[$sede['id']][0] * $articolo->fattore_um_secondaria.' '.$articolo->um_secondaria.'</td>' : '').'
|
||||
|
@ -158,4 +158,8 @@ INSERT INTO `zz_settings_lang` (`id_lang`, `id_record`, `title`, `help`) VALUES
|
||||
|
||||
-- Firma in stampa preventivi solo totali
|
||||
SELECT @id_module := `id` FROM `zz_modules` WHERE `name` = 'Preventivi';
|
||||
UPDATE `zz_prints` SET `options` = '{\"pricing\":false, \"show-only-total\":true, \"images\": true, \"last-page-footer\": true }' WHERE `zz_prints`.`id_module` = @id_module AND `zz_prints`.`name` = 'Preventivo (solo totale)';
|
||||
UPDATE `zz_prints` SET `options` = '{\"pricing\":false, \"show-only-total\":true, \"images\": true, \"last-page-footer\": true }' WHERE `zz_prints`.`id_module` = @id_module AND `zz_prints`.`name` = 'Preventivo (solo totale)';
|
||||
|
||||
-- Rimozione campo deprecato
|
||||
ALTER TABLE `mg_articoli` DROP `threshold_qta`;
|
||||
DELETE FROM `zz_views` WHERE `zz_views`.`name` = '_bg_' AND `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Articoli');
|
Loading…
x
Reference in New Issue
Block a user