Merge branch 'ticket-12643-ExportLoyalty' into develop

This commit is contained in:
Marion Muszynski 2017-02-28 15:55:11 +01:00
commit d606bae3c0

View File

@ -186,7 +186,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(
@ -218,7 +226,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',
);