1
0
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:
MatteoPistorello 2021-06-10 15:21:49 +02:00
parent 9e94b8b717
commit a3d2381e86

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();
}
}