Commit 94c951a8 authored by hujun's avatar hujun

1

parent e4e44c18
......@@ -4215,14 +4215,13 @@ class Finance extends Basic
$agent_fee = $this->sumPayLogBargainByType(91, 0, $income_start, $income_end);//未开业中介费
$case_fee = $this->sumPayLogBargainByType(92, 0, $income_start, $income_end);//未开业案场费
$agent_refund_fee = $this->sumPayLogRefundByType(4, 0, 0,$income_start, $income_end);//未开业中介费退款
$case_refund_fee = $this->sumPayLogRefundByType(5, 0, 0,$income_start, $income_end);//未开业案场费退款
$agent_refund_fee = $this->sumPayLogRefundByType(4, 0, 1,$income_start, $income_end);//未开业中介费退款
$case_refund_fee = $this->sumPayLogRefundByType(5, 0, 1,$income_start, $income_end);//未开业案场费退款
$data['not_open_commission'] = $agent_fee + $case_fee - $agent_refund_fee - $case_refund_fee; //未开业佣金
$open_agent_fee = $this->sumPayLogBargainByType(91, 1, $income_start, $income_end);//开业中介费
$open_case_fee = $this->sumPayLogBargainByType(92, 1, $income_start, $income_end);//开业案场费
$open_agent_refund = $this->sumPayLogRefundByType(4, 1, 0,$income_start, $income_end);//开业中介费退款
$open_case_refund = $this->sumPayLogRefundByType(5, 1, 0,$income_start, $income_end);//开业案场费退款
$open_agent_refund = $this->sumPayLogRefundByType(4, 1, 1,$income_start, $income_end);//开业中介费退款
$open_case_refund = $this->sumPayLogRefundByType(5, 1, 1,$income_start, $income_end);//开业案场费退款
$data['open_commission'] = $open_agent_fee + $open_case_fee - $open_agent_refund - $open_case_refund; //已开业佣金
//佣金总计:中介费入账+案场费入账-中介费退款-案场费退款
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment