mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-18 12:30:35 +01:00
Correzioni minori
This commit is contained in:
parent
a86f7d7ea7
commit
59a0c750e4
@ -362,6 +362,7 @@ echo '
|
|||||||
<th>'.tr('Articolo').'</th>
|
<th>'.tr('Articolo').'</th>
|
||||||
<th class="text-center tip" width="150" title="'.tr('Quantità richiesta').'">'.tr('Q.tà').'</th>
|
<th class="text-center tip" width="150" title="'.tr('Quantità richiesta').'">'.tr('Q.tà').'</th>
|
||||||
<th class="text-center tip" width="150" title="'.tr('Quantità disponibile nel magazzino del gestionale').'">'.tr('Q.tà magazzino').'</th>
|
<th class="text-center tip" width="150" title="'.tr('Quantità disponibile nel magazzino del gestionale').'">'.tr('Q.tà magazzino').'</th>
|
||||||
|
<th class="text-center" width="150">'.tr('Scarto').'</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
@ -394,7 +395,7 @@ foreach ($articoli as $elenco) {
|
|||||||
$qta = $elenco->sum('qta');
|
$qta = $elenco->sum('qta');
|
||||||
$articolo = $elenco->first()->articolo;
|
$articolo = $elenco->first()->articolo;
|
||||||
|
|
||||||
$descrizione_riga = $codice.' - '.$descrizione;
|
$descrizione_riga = $articolo->codice.' - '.$articolo->descrizione;
|
||||||
$text = $articolo ? Modules::link('Articoli', $articolo->id, $descrizione_riga) : $descrizione_riga;
|
$text = $articolo ? Modules::link('Articoli', $articolo->id, $descrizione_riga) : $descrizione_riga;
|
||||||
|
|
||||||
$scorte[$articolo->id] = [
|
$scorte[$articolo->id] = [
|
||||||
@ -405,7 +406,7 @@ foreach ($articoli as $elenco) {
|
|||||||
|
|
||||||
echo '
|
echo '
|
||||||
var scorte = '.json_encode($scorte).';
|
var scorte = '.json_encode($scorte).';
|
||||||
var abilita_scorte = '.intval(!empty($options['tipo_documento_finale']) && $options['tipo_documento_finale']::$movimenta_magazzino).';
|
var abilita_scorte = '.intval(!$documento::$movimenta_magazzino && !empty($options['tipo_documento_finale']) && $options['tipo_documento_finale']::$movimenta_magazzino).';
|
||||||
|
|
||||||
function controllaMagazzino() {
|
function controllaMagazzino() {
|
||||||
if(!abilita_scorte) return;
|
if(!abilita_scorte) return;
|
||||||
@ -441,6 +442,7 @@ function controllaMagazzino() {
|
|||||||
<td>` + scorte[id_articolo]["descrizione"] + `</td>
|
<td>` + scorte[id_articolo]["descrizione"] + `</td>
|
||||||
<td class="text-right">` + qta_richiesta.toLocale() + `</td>
|
<td class="text-right">` + qta_richiesta.toLocale() + `</td>
|
||||||
<td class="text-right">` + qta_scorta.toLocale() + `</td>
|
<td class="text-right">` + qta_scorta.toLocale() + `</td>
|
||||||
|
<td class="text-right">` + (qta_richiesta - qta_scorta).toLocale() + `</td>
|
||||||
</tr>`);
|
</tr>`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user