Improvement for Uploading of receipts

This commit is contained in:
2026-05-02 00:21:54 +02:00
parent b668195e21
commit 71cb09f051
3 changed files with 4 additions and 9 deletions
@@ -60,7 +60,7 @@ class CreateInvoiceReceiptCommand {
storage_path('app/private/' .$filename) . '.zip',
ZipArchive::CREATE | ZipArchive::OVERWRITE
);
dd($receipt);
$zip->addFile(storage_path('app/private/' . $tmpFileName ), 'antrag.pdf');
$zip->addFile(storage_path('app/private/' . $receipt), 'beleg.pdf');
+1 -7
View File
@@ -16,12 +16,6 @@ class WebDavProvider {
public function uploadFile(string $fileName) : bool {
$baseDir = storage_path('app/private/');
return $this->webDavClient->upload_file($baseDir . $fileName, $this->workingDirectory . '/'.
basename($fileName)
);
return $this->webDavClient->upload_file($baseDir . $fileName, $this->workingDirectory . '/');
}
}