allow to delete invoice documents (#2968)
This commit is contained in:
@@ -50,6 +50,14 @@ final class InvoiceDocumentRepository
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function remove(InvoiceDocument $invoiceDocument): void
|
||||
{
|
||||
@unlink($invoiceDocument->getFilename());
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 1.10 - will be removed with 2.0 - use getUploadDirectory() instead
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user