fix request

This commit is contained in:
Marion Muszynski 2017-02-28 15:54:54 +01:00
parent 642a447760
commit 180bccea8d

View File

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