Importazione serial da documento in attività

This commit is contained in:
MatteoPistorello 2021-06-10 15:21:49 +02:00
parent 9e94b8b717
commit a3d2381e86
1 changed files with 8 additions and 0 deletions

View File

@ -441,6 +441,14 @@ switch (post('op')) {
$qta = post('qta_da_evadere')[$riga->id];
$copia = $riga->copiaIn($intervento, $qta);
// Aggiornamento seriali
if ($copia->isArticolo()) {
$serials = is_array(post('serial')[$riga->id]) ? post('serial')[$riga->id] : [];
$copia->serials = $serials;
}
$copia->save();
}
}