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:
parent
78ae0dc072
commit
dee72b99e6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user