update sort invoice

This commit is contained in:
Marion Muszynski 2016-07-11 14:44:19 +02:00
parent 91fc9ee7dc
commit d1c984cb76
2 changed files with 2 additions and 2 deletions

View File

@ -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'));
}

View File

@ -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;