Add account next invoice

This commit is contained in:
2024-07-31 22:36:28 +10:00
parent 0b5bc9e012
commit f43748e20a
9 changed files with 109 additions and 96 deletions

View File

@@ -37,7 +37,8 @@ class ChargeController extends Controller
public function delete(Charge $o): array
{
if (Gate::allows('delete',$o)) {
$o->delete();
$o->active = FALSE;
$o->save();
return ['ok'];