Commit 8c9d67b2 authored by hujun's avatar hujun

独家方

parent 6d431f69
...@@ -2979,10 +2979,20 @@ class Finance extends Basic ...@@ -2979,10 +2979,20 @@ class Finance extends Basic
$pay_data['current_agent_name'] = $pay_data['store_name'] = ""; $pay_data['current_agent_name'] = $pay_data['store_name'] = "";
if ($pay_data['type'] == 92) { if ($pay_data['type'] == 92) {
//案场费 对应业务员:盘方 //案场费 对应业务员:盘方
$current_agent_name = $m_agent_house->getHousesAgents($pay_data['house_id'], 'b.name,b.store_id', ['a.type'=>2]); $m_house = new GHouses();
$pay_data['current_agent_name'] = empty($current_agent_name[0]['name']) ? '' :$current_agent_name[0]['name']; $is_exclusive_type = $m_house->getHouseValue('is_exclusive_type', ['id'=>$pay_data['house_id']]);
//案场费 对应业务员:盘方
$current_where['a.is_del'] = 0;
if ($is_exclusive_type) {
$current_where['a.type'] = 3;
} else {
$current_where['a.type'] = 2;
}
$current_agent_name = $m_agent_house->getHousesAgents($pay_data['house_id'], 'b.name,b.store_id', $current_where);
$pay_data['current_agent_name'] = empty($current_agent_name[0]['name']) ? '':$current_agent_name[0]['name'];
$store_name = $m_store->getStoreKeyById('store_name', ['id'=>$current_agent_name[0]['store_id']]); $store_name = $m_store->getStoreKeyById('store_name', ['id'=>$current_agent_name[0]['store_id']]);
$pay_data['store_name'] = empty($store_name)?'':$store_name; $pay_data['store_name'] = empty($store_name)? '' : $store_name;
} }
if ($pay_data['type'] == 10 || $pay_data['type'] == 30 || $pay_data['type'] == 91) { if ($pay_data['type'] == 10 || $pay_data['type'] == 30 || $pay_data['type'] == 91) {
......
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