fix
This commit is contained in:
parent
e3bc588287
commit
7ea4968d08
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user