代理结算


点击结算后,未结订单收入将结算到账户余额中,然后等待付款。未结收入不含当天的订单
$val):$where=array('fields'=>'is_state=? and is_ship_agent=? and agentid=? and gprice>? and addtimearray(1,0,$val['id'],0,strtotime(date('Y-m-d'))),);$total_unship_count=$this->model()->select()->from('orders')->where($where)->count();$total_unship_income=$this->model()->select(array('income'=>'realmoney*(gprice-uprice)'))->from('orders')->where($where)->sum();?>
用户编号 用户名 结算类型 已付金额 账户余额 未结订单数 未结订单收入 操作
setConfig->shipType($val['ship_type'])?> 条   结算
no data.