fix : user site
This commit is contained in:
@@ -72,7 +72,7 @@ class ConfirmationOrderService extends BaseOrderService
|
||||
foreach ($filtered as &$value) {
|
||||
$value['amount'] = match ($value['coupon_type']) {
|
||||
CouponCode::COUPON_TYPE_INSTANT_REDUCTION => $value['amount'],
|
||||
CouponCode::COUPON_TYPE_DISCOUNT => bcmul(bcsub("1", $value['ratio'],2),$orderMaxPrice,2),
|
||||
CouponCode::COUPON_TYPE_DISCOUNT => bcmul(bcsub("1", (string)$value['ratio'],2),(string)$orderMaxPrice,2),
|
||||
default => 0
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user