diff --git a/modules/ant_configurations/AdminAntConfigurations.php b/modules/ant_configurations/AdminAntConfigurations.php index ac5ec107..5c49a8ff 100644 --- a/modules/ant_configurations/AdminAntConfigurations.php +++ b/modules/ant_configurations/AdminAntConfigurations.php @@ -184,7 +184,15 @@ class AdminAntConfigurations extends AdminTab LEFT JOIN `'._DB_PREFIX_.'orders` o ON (o.`id_address_invoice` = a.`id_address`) WHERE o.`id_order` = l.`id_order` ) as `nationality`, - IFNULL(l.`id_discount`,"Non transforme") as `discount`, + CASE + WHEN + l.`id_discount` = 0 OR + l.`id_discount` IS NULL + THEN + "Non transforme" + ELSE + l.id_discount + END as `discount`, l.`discount_value` as `credit`, DATE_FORMAT(l.`date_add`,"%d/%m/%Y") as `date_generated`, IFNULL( @@ -216,7 +224,7 @@ class AdminAntConfigurations extends AdminTab 'nationality' => 'Nationalité', 'discount' => 'Bon de réduction', 'credit' => 'Valeur crédit', - 'date_generated' => 'Date de génération', + 'date_generated' => 'Date de génération crédit', 'date_used_in_period' => 'Date utilisation (dans la période)', 'date_used' => 'Date utilisation', );