mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-27 16:23:19 +01:00
Importazione serial da documento in attività
This commit is contained in:
parent
9e94b8b717
commit
a3d2381e86
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user