mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 10:14:36 -04:00
Fixes for adding back xml e invoices when zipping in bulk
This commit is contained in:
parent
00ff163d4f
commit
18f3b6522f
@ -75,9 +75,16 @@ class ZipInvoices implements ShouldQueue
|
||||
|
||||
try {
|
||||
|
||||
|
||||
foreach ($this->invoices as $invoice) {
|
||||
|
||||
if ($invoice->client->getSetting('enable_e_invoice')) {
|
||||
$xml = $invoice->service()->getEInvoice();
|
||||
$zipFile->addFromString($invoice->getFileName("xml"), $xml);
|
||||
}
|
||||
|
||||
$file = $invoice->service()->getRawInvoicePdf();
|
||||
$zip_file_name = $invoice->getFileName();
|
||||
$zip_file_name = $invoice->getFileName();
|
||||
$zipFile->addFromString($zip_file_name, $file);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user