Skip to content

Commit 11e3ff8

Browse files
committed
fix: data per calcolo progressivo contratto in duplicazione contratto anno precedente
1 parent 222a51f commit 11e3ff8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/contratti/actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
// Duplica contratto
165165
case 'copy':
166166
$new = $contratto->replicate(['idcontratto_prev']);
167-
$new->numero = Contratto::getNextNumero($contratto->data_bozza, $contratto->id_segment);
167+
$new->numero = Contratto::getNextNumero(Carbon::parse($data)->format('Y-m-d'), $contratto->id_segment);
168168

169169
$stato = Stato::where('name', 'Bozza')->first()->id;
170170
$new->stato()->associate($stato);

0 commit comments

Comments
 (0)