mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:04:31 -04:00
Handle zipping e-invoices
This commit is contained in:
parent
8e145b81dc
commit
8e4237d97a
@ -84,19 +84,10 @@ class ZipInvoices implements ShouldQueue
|
|||||||
|
|
||||||
foreach ($this->invoices as $invoice) {
|
foreach ($this->invoices as $invoice) {
|
||||||
$file = $invoice->service()->getInvoicePdf();
|
$file = $invoice->service()->getInvoicePdf();
|
||||||
// $xinvoice = $invoice->service()->getEInvoice();
|
|
||||||
$zip_file_name = basename($file);
|
$zip_file_name = basename($file);
|
||||||
// $xinvoice_zip_file_name = basename($xinvoice);
|
|
||||||
$zipFile->addFromString($zip_file_name, Storage::get($file));
|
$zipFile->addFromString($zip_file_name, Storage::get($file));
|
||||||
|
|
||||||
// ->addDir($xinvoice_zip_file_name, Storage::get($xinvoice));
|
|
||||||
|
|
||||||
//$download_file = file_get_contents($invoice->pdf_file_path($invitation, 'url', true));
|
|
||||||
//$zipFile->addFromString(basename($invoice->pdf_file_path($invitation)), $download_file);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nlog($this->company->enable_e_invoice);
|
|
||||||
nlog($this->company->id);
|
|
||||||
if($this->company->enable_e_invoice){
|
if($this->company->enable_e_invoice){
|
||||||
foreach ($this->invoices as $invoice) {
|
foreach ($this->invoices as $invoice) {
|
||||||
$xinvoice = $invoice->service()->getEInvoice();
|
$xinvoice = $invoice->service()->getEInvoice();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user