|
@@ -267,11 +267,11 @@ Class Manage
|
|
// $youhui = 0;
|
|
// $youhui = 0;
|
|
// print_R($v1);die;
|
|
// print_R($v1);die;
|
|
if ($v['card_code_cash'] && $v['card_code_cash']>0){
|
|
if ($v['card_code_cash'] && $v['card_code_cash']>0){
|
|
- $card_price = ($v['card_code_cash']/$v['oprice']*($val['price']*$dnum))*$v1['num'];
|
|
|
|
|
|
+ $card_price = round(($v['card_code_cash']/$v['oprice']*($val['price']*$dnum)),2);
|
|
} else {
|
|
} else {
|
|
$card_price = 0;
|
|
$card_price = 0;
|
|
}
|
|
}
|
|
- $wallet_price = ($v['wallet_cash']/$v['oprice']*($val['price']*$dnum))*$v1['num'];
|
|
|
|
|
|
+ $wallet_price = round(($v['wallet_cash']/$v['oprice']*($val['price']*$dnum)),2);
|
|
$goodsfu = 0;
|
|
$goodsfu = 0;
|
|
if ($v1['discount_id']<=0) {
|
|
if ($v1['discount_id']<=0) {
|
|
$youhui = 0;
|
|
$youhui = 0;
|
|
@@ -282,6 +282,7 @@ Class Manage
|
|
} else {
|
|
} else {
|
|
$goodsfu = round($val['price']*$dnum-($card_price + $wallet_price),2);
|
|
$goodsfu = round($val['price']*$dnum-($card_price + $wallet_price),2);
|
|
}
|
|
}
|
|
|
|
+ // print_R($card_price);die;
|
|
|
|
|
|
} else {
|
|
} else {
|
|
$act = Dever::db('act/discount')->find($v['discount_id']);
|
|
$act = Dever::db('act/discount')->find($v['discount_id']);
|