Commit 8b392172 authored by hujun's avatar hujun

getCommissionTotalList

parent 894add94
...@@ -1647,7 +1647,7 @@ class Finance extends Basic ...@@ -1647,7 +1647,7 @@ class Finance extends Basic
$list[$k]['charity_fund'] = 0; $list[$k]['charity_fund'] = 0;
} }
$taxes_where['b.agent_id'] = $v['agent_id']; $taxes_where['a.agent_id'] = $v['agent_id'];
$list[$k]['fee'] = $m_tax->sumBargainFee('a.fee', $taxes_where); $list[$k]['fee'] = $m_tax->sumBargainFee('a.fee', $taxes_where);
$list[$k]['income_date'] = $income_date; $list[$k]['income_date'] = $income_date;
...@@ -1703,7 +1703,7 @@ class Finance extends Basic ...@@ -1703,7 +1703,7 @@ class Finance extends Basic
$excel_data[$k]['practical_fee'] = empty($partial_data['practical_fee']) ? 0:$partial_data['practical_fee']; //实收佣金 $excel_data[$k]['practical_fee'] = empty($partial_data['practical_fee']) ? 0:$partial_data['practical_fee']; //实收佣金
//税费 //税费
$taxes_where['b.agent_id'] = $v['agent_id']; $taxes_where['a.agent_id'] = $v['agent_id'];
$excel_data[$k]['fee'] = $m_tax->sumBargainFee('a.fee', $taxes_where); $excel_data[$k]['fee'] = $m_tax->sumBargainFee('a.fee', $taxes_where);
$excel_data[$k]['over_fee'] = $partial_data['practical_fee'] - $excel_data[$k]['fee']; $excel_data[$k]['over_fee'] = $partial_data['practical_fee'] - $excel_data[$k]['fee'];
} }
......
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