Use number only when we get more than 1 discount
This commit is contained in:
parent
c82df4b134
commit
a896679d6a
@ -91,7 +91,7 @@ class Ant_Refund_Discount extends Module
|
|||||||
$num = 0;
|
$num = 0;
|
||||||
foreach($discountUse as $d) {
|
foreach($discountUse as $d) {
|
||||||
// If several discount on the order
|
// If several discount on the order
|
||||||
if (count($discountUse) > 0) {
|
if (count($discountUse) > 1) {
|
||||||
$num++;
|
$num++;
|
||||||
}
|
}
|
||||||
$this->copyDiscountAfterRefund($order, $d, $num);
|
$this->copyDiscountAfterRefund($order, $d, $num);
|
||||||
|
Loading…
Reference in New Issue
Block a user