mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Cleanup
This commit is contained in:
parent
2ba713eeb8
commit
8f5a63eb94
@ -26,7 +26,6 @@ use Illuminate\Support\Facades\Cache;
|
||||
use App\Models\PurchaseOrderInvitation;
|
||||
use App\Models\RecurringInvoiceInvitation;
|
||||
use App\Jobs\Vendor\CreatePurchaseOrderPdf;
|
||||
use App\Services\Invoice\GetInvoiceEInvoice;
|
||||
use App\Services\PdfMaker\Designs\Utilities\DesignHelpers;
|
||||
|
||||
class PdfSlot extends Component
|
||||
|
@ -1,29 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Invoice;
|
||||
|
||||
use App\Models\ClientContact;
|
||||
use App\Models\Invoice;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class MergeEInvoice
|
||||
{
|
||||
|
||||
/**
|
||||
* @param Invoice $invoice
|
||||
*/
|
||||
public function __construct(public Invoice $invoice, public string $pdf_path = "")
|
||||
{
|
||||
}
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
if (!empty($this->pdf_path)) {
|
||||
(new \App\Jobs\Invoice\MergeEInvoice($this->invoice, $this->pdf_path))->handle();
|
||||
}
|
||||
else {
|
||||
(new \App\Jobs\Invoice\MergeEInvoice($this->invoice))->handle();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user