From d1c984cb763423a4a688cfbf3539a1711818ed0f Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Mon, 11 Jul 2016 14:44:19 +0200 Subject: [PATCH] update sort invoice --- adm/pdf.php | 2 +- modules/privatesales/Sale.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adm/pdf.php b/adm/pdf.php index 827e9bb2..ccbe9ec3 100755 --- a/adm/pdf.php +++ b/adm/pdf.php @@ -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')); } diff --git a/modules/privatesales/Sale.php b/modules/privatesales/Sale.php index ab7994e2..f5be3579 100755 --- a/modules/privatesales/Sale.php +++ b/modules/privatesales/Sale.php @@ -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;