We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf2e19 commit 0ef8fcbCopy full SHA for 0ef8fcb
1 file changed
modules/contratti/actions.php
@@ -732,6 +732,24 @@
732
733
$copia->save();
734
}
735
+ } else {
736
+ $righe = $documento->getRighe();
737
+ foreach ($righe as $riga) {
738
+ if (post('evadere')[$riga->id] == 'on' and !empty(post('qta_da_evadere')[$riga->id])) {
739
+ $qta = post('qta_da_evadere')[$riga->id];
740
+
741
+ $copia = $riga->copiaIn($contratto, $qta);
742
743
+ // Aggiornamento seriali dalla riga dell'ordine
744
+ if ($copia->isArticolo()) {
745
+ $serials = is_array(post('serial')[$riga->id]) ? post('serial')[$riga->id] : [];
746
747
+ $copia->serials = $serials;
748
+ }
749
750
+ $copia->save();
751
752
753
754
755
// Gestione delle ore residue selezionate
0 commit comments