Fixed customer group discount.

This commit is contained in:
Edward Yang 2023-04-12 11:40:56 +08:00
parent c4858b5875
commit 318d2d9cfa
1 changed files with 2 additions and 2 deletions

View File

@ -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;