处理优惠金额
This commit is contained in:
parent
cb54b4e3c1
commit
320aca8cfc
@ -646,6 +646,13 @@ class PatientOrderService extends BaseService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 处理优惠金额
|
||||||
|
$order_product['discount_amount'] = bcsub(
|
||||||
|
(string)$order_product['amount_total'],
|
||||||
|
(string)$order_product['payment_amount_total'],
|
||||||
|
2
|
||||||
|
);
|
||||||
|
|
||||||
$result = array();
|
$result = array();
|
||||||
$result['user_doctor'] = $user_doctor ?? [];
|
$result['user_doctor'] = $user_doctor ?? [];
|
||||||
$result['order_product'] = $order_product;
|
$result['order_product'] = $order_product;
|
||||||
@ -2269,6 +2276,9 @@ class PatientOrderService extends BaseService
|
|||||||
// 实际支付金额=商品总金额-优惠卷金额+运费金额
|
// 实际支付金额=商品总金额-优惠卷金额+运费金额
|
||||||
$payment_amount_total = bcadd(bcsub($payment_amount_total, $coupon_amount_total, 2), $logistics_fee, 2);
|
$payment_amount_total = bcadd(bcsub($payment_amount_total, $coupon_amount_total, 2), $logistics_fee, 2);
|
||||||
|
|
||||||
|
// 药品优惠金额
|
||||||
|
$discount_amount = $discount_amount + $coupon_amount_total;
|
||||||
|
|
||||||
// 获取收货地址
|
// 获取收货地址
|
||||||
$params = array();
|
$params = array();
|
||||||
$params['user_id'] = $user_info['user_id'];
|
$params['user_id'] = $user_info['user_id'];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user