|
@@ -175,14 +175,20 @@ Class Manage
|
|
|
if ($v['status'] == 8 || $v1['status'] == 3) {
|
|
|
$num = $v1['num'];
|
|
|
$refund_cash = $v1['price']*$v1['num'];
|
|
|
- if ($v['card_code_cash'] >0) {
|
|
|
- if ($v['refund_cash'] <= $v['card_code_cash']) {
|
|
|
- $ka = $v['refund_cash'];
|
|
|
- } else {
|
|
|
- $ka = $v['card_code_cash'];
|
|
|
- $money = $v['refund_cash'] - $v['card_code_cash'];
|
|
|
- }
|
|
|
+ if ($v['refund_cash'] && $v['refund_cash']>0) {
|
|
|
+ $money = $v['refund_cash'];
|
|
|
}
|
|
|
+ if ($v['card_code_cash'] && $v['card_code_cash'] >0) {
|
|
|
+ $ka = $v['card_code_cash'];
|
|
|
+ }
|
|
|
+ // if ($v['card_code_cash'] && $v['card_code_cash'] >0) {
|
|
|
+ // if ($v['refund_cash'] <= $v['card_code_cash']) {
|
|
|
+ // $ka = $v['refund_cash'];
|
|
|
+ // } else {
|
|
|
+ // $ka = $v['card_code_cash'];
|
|
|
+ // $money = $v['refund_cash'] - $v['card_code_cash'];
|
|
|
+ // }
|
|
|
+ // }
|
|
|
// $refund = Dever::db('shop/sell_order_refund')->find(array('order_id'=>$v['id']));
|
|
|
// if ($refund)
|
|
|
$refund_status = '已退款';
|