1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-05 10:17:30 +01:00

Fix riapertura fattura

This commit is contained in:
Pek5892 2023-02-24 11:16:41 +01:00
parent 78ae0dc072
commit dee72b99e6

View File

@ -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();