1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-03-15 10:40:05 +01:00

Fix data conclusione in fase di duplicazione preventivo

This commit is contained in:
MatteoPistorello 2022-01-27 15:14:55 +01:00
parent 242e0245a3
commit 4e4737dc82

View File

@ -99,7 +99,6 @@ switch (post('op')) {
$new = $preventivo->replicate();
$new->numero = Preventivo::getNextNumero(Carbon::now());
$new->data_bozza = Carbon::now();
$new->data_conclusione = Carbon::now()->addMonth();
$stato_preventivo = Stato::where('descrizione', '=', 'Bozza')->first();
$new->stato()->associate($stato_preventivo);