diff --git a/modules/fatture/actions.php b/modules/fatture/actions.php index 8e20aa5f6..45c0f0933 100755 --- a/modules/fatture/actions.php +++ b/modules/fatture/actions.php @@ -367,6 +367,9 @@ switch (post('op')) { case 'reopen': if (!empty($id_record)) { + $stato = Stato::where('descrizione', 'Bozza')->first(); + $fattura->stato()->associate($stato); + $fattura->save(); $stato = Stato::where('descrizione', 'Emessa')->first(); $fattura->stato()->associate($stato); $fattura->save();