mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 00:04:35 -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 {
|
try {
|
||||||
|
|
||||||
|
|
||||||
foreach ($this->invoices as $invoice) {
|
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();
|
$file = $invoice->service()->getRawInvoicePdf();
|
||||||
$zip_file_name = $invoice->getFileName();
|
$zip_file_name = $invoice->getFileName();
|
||||||
$zipFile->addFromString($zip_file_name, $file);
|
$zipFile->addFromString($zip_file_name, $file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user