mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-24 15:04:19 +00:00
E-Invoice - Cleanup
This commit is contained in:
@@ -14,9 +14,6 @@ use App\Classes\Modules\Documents\Services\DeletesDocument;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
use App\Classes\Modules\Transactions\Processors\CreateInvoiceTransactionProcessor;
|
||||
|
||||
|
||||
class DeleteDocumentLogic extends AbstractControllerLogic
|
||||
{
|
||||
|
||||
@@ -62,9 +59,9 @@ class DeleteDocumentLogic extends AbstractControllerLogic
|
||||
$document = $this->fetchesDocument->execute(['id' => $request->route('id')]);
|
||||
|
||||
$this->canDeleteDocument->passes();
|
||||
|
||||
|
||||
$this->deletesDocument->execute($document);
|
||||
|
||||
return $this->response([]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user