1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 16:23:19 +01:00
This commit is contained in:
Pek5892 2023-07-28 12:27:48 +02:00
parent 687525c7f1
commit 45fe4e2e3f

View File

@ -141,7 +141,7 @@ switch (post('op')) {
// Duplica contratto
case 'copy':
$new = $contratto->replicate();
$new = $contratto->replicate(['idcontratto_prev']);
$new->numero = Contratto::getNextNumero($contratto->data_bozza, $contratto->id_segment);
$stato = Stato::where('descrizione', '=', 'Bozza')->first();