Enable make directory for e-invoices

This commit is contained in:
David Bomba 2023-05-25 13:48:17 +10:00
parent 77004e9272
commit edf33ed19e

View File

@ -171,12 +171,11 @@ class FacturaEInvoice extends AbstractService
->setPoNumber() ->setPoNumber()
->signDocument(); ->signDocument();
$disk = config('filesystems.default'); $disk = config('filesystems.default');
// if (!Storage::disk($disk)->exists($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()))) { if (!Storage::disk($disk)->exists($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()))) {
// Storage::makeDirectory($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first())); Storage::makeDirectory($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()));
// } }
$this->fac->export(Storage::disk($disk)->path($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()) . $this->invoice->getFileName("xsig"))); $this->fac->export(Storage::disk($disk)->path($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()) . $this->invoice->getFileName("xsig")));