This commit is contained in:
Marion Muszynski 2016-06-10 14:44:45 +02:00
parent e3bc588287
commit 7ea4968d08

View File

@ -148,14 +148,18 @@ function generateInvoicesPDFPrivateSales48hBis()
AND (s.delivery_delay != 2 AND s.delivery_delay != 6)
');
if (!empty($orders2)) {
foreach ($orders2 as $key => $order) {
foreach ($orders as $key => $order) {
if (in_array($order, $orders)) {
unset($orders2[$key]);
unset($orders[$key]);
}
}
}
if (!empty($orders2)) {
PDF::multipleInvoices2($orders, $orders2, true, true);
} else {
PDF::multipleInvoices($orders, false, true, true);
}
}
}
}