|
@@ -273,7 +273,7 @@ class Orders extends Api{
|
|
|
// 总优惠增加
|
|
|
$order['coupon_total'] = $order['coupon_total'] + $promoProductPrice[$product['product_id']]['promo_rebate_price'];
|
|
|
// 当前商品的优惠折扣计算
|
|
|
- $product['coupon_total'] = number_format( $promoProductPrice[$product['product_id']]['rebate_price'] * ($product['price_total'] / $promoProductPrice[$product['product_id']]['price_total']) , 2 , '.' ,'');
|
|
|
+ $product['coupon_total'] = number_format( $promoProductPrice[$product['product_id']]['promo_rebate_price'] * ($product['price_total'] / $promoProductPrice[$product['product_id']]['price_total']) , 2 , '.' ,'');
|
|
|
// 成交小计
|
|
|
$product['pay_total'] = bcsub($product['pay_total'],$product['coupon_total'],2);
|
|
|
}
|