edit-admin-add_pay_log
This commit is contained in:
@@ -740,7 +740,10 @@ class Orders extends HD_Controller
|
||||
return $this->show_json(SYS_CODE_FAIL, '车款金额错误');
|
||||
}
|
||||
$this->app_liche_orders_model->update(['status'=>-1],['o_id'=>$row['id'],'status'=>0,'type'=>1]); //定金更新成无效订单
|
||||
if(!$this->app_liche_orders_model->count(['pid'=>$last_p_row['id'],'type'=>3,'status'=>1])){
|
||||
$money_json = json_decode($row['money_json'],true);
|
||||
$last_pay_count = $this->app_liche_orders_model->count(['pid'=>$last_p_row['id'],'type'=>3,'status'=>1]);//尾款支付订单
|
||||
$adimn_count = $this->app_liche_orders_model->count(['o_id'=>$row['id'],'type'=>6,'status'=>1]);//车款订单
|
||||
if(!$last_pay_count && ($money!=$money_json['price_book'] || $adimn_count)){ //若首笔金额 == 定金金额,尾款订单不要置为 -1若金额 > 定金金额 或者 非首笔,尾款订单置为 -1
|
||||
$this->app_liche_orders_model->update(['status'=>-1],['o_id'=>$row['id'],'type'=>3]); //尾款更新成无效订单
|
||||
}
|
||||
}else{ //服务费
|
||||
|
||||
Reference in New Issue
Block a user