update sort invoice
This commit is contained in:
parent
91fc9ee7dc
commit
d1c984cb76
@ -105,7 +105,7 @@ function generateInvoicesPDFPrivateSales()
|
||||
include(dirname(__FILE__).'/../modules/privatesales/Sale.php');
|
||||
if($sale = new Sale((int) Tools::getValue('id_sale'))) {
|
||||
$statuts = array(17, Configuration::get('PS_OS_PAYMENT'));
|
||||
$orders = $sale->getOrdersFromSale($statuts);
|
||||
$orders = $sale->getOrdersFromSale($statuts);
|
||||
if(count($orders) == 0) {
|
||||
die (Tools::displayError('No invoices found'));
|
||||
}
|
||||
|
@ -932,7 +932,7 @@ class Sale {
|
||||
return $order_print;
|
||||
} else {
|
||||
// tri par date pour les M2+
|
||||
sort($order_print);
|
||||
// sort($order_print);
|
||||
/*usort($order_print, function ($a, $b) {
|
||||
if ($order_sales[$a] == $order_sales[$b]) {
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user