Fixed customer group discount.
This commit is contained in:
parent
c4858b5875
commit
318d2d9cfa
|
|
@ -31,8 +31,8 @@ class CustomerDiscountService
|
|||
if ($discountFactor <= 0) {
|
||||
return null;
|
||||
}
|
||||
if ($discountFactor > 1) {
|
||||
$discountFactor = 1;
|
||||
if ($discountFactor > 100) {
|
||||
$discountFactor = 100;
|
||||
}
|
||||
$amount = $totalService->getSubTotal() * $discountFactor / 100;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue