This commit is contained in:
MatteoPistorello 2023-02-17 17:03:25 +01:00
commit 8f62c7b623
1 changed files with 2 additions and 1 deletions

View File

@ -531,7 +531,8 @@ switch (filter('op')) {
// Duplica ddt // Duplica ddt
case 'copy': case 'copy':
$new = $ddt->replicate(); $new = $ddt->replicate();
$new->numero = DDT::getNextNumero($new->data, $dir);
$new->numero = DDT::getNextNumero($new->data, $dir, $id_segment);
$new->numero_esterno = DDT::getNextNumeroSecondario($new->data, $dir, $new->id_segment); $new->numero_esterno = DDT::getNextNumeroSecondario($new->data, $dir, $new->id_segment);
$stato = Stato::where('descrizione', '=', 'Bozza')->first(); $stato = Stato::where('descrizione', '=', 'Bozza')->first();