Use number only when we get more than 1 discount

This commit is contained in:
Michael RICOIS 2018-01-08 17:07:30 +01:00
parent c82df4b134
commit a896679d6a

View File

@ -91,7 +91,7 @@ class Ant_Refund_Discount extends Module
$num = 0;
foreach($discountUse as $d) {
// If several discount on the order
if (count($discountUse) > 0) {
if (count($discountUse) > 1) {
$num++;
}
$this->copyDiscountAfterRefund($order, $d, $num);