|
|
|
@ -143,7 +143,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
$cp_id = implode(",",array_flip(array_flip(array_keys($cpList))));
|
|
|
|
|
$js_id = implode(",",array_unique($js_id));
|
|
|
|
|
//获取cp公司
|
|
|
|
|
$tmpp = M("Partner","tab_")->field("id,partner,link_man,link_phone,address,company_tax_no,payee_name,bank_account,opening_bank,channel_rate,invoice_rate,company_type,ali_user,ali_account,has_advance_charge,has_server_fee,server_fee")->where(["id"=>['in',$cp_id]])->select();
|
|
|
|
|
$tmpp = M("Partner","tab_")->field("id,partner,link_man,link_phone,address,company_tax_no,payee_name,bank_account,opening_bank,channel_rate,invoice_rate,taxation_rate,company_type,ali_user,ali_account,has_advance_charge,has_server_fee,server_fee")->where(["id"=>['in',$cp_id]])->select();
|
|
|
|
|
$cp =[];
|
|
|
|
|
foreach ($tmpp as $v) {
|
|
|
|
|
$cp[$v['id']]=$v;
|
|
|
|
@ -242,9 +242,9 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
$add_data['company_belong']=9;//上游
|
|
|
|
|
$add_data['company_type']=$cp[$add_data['company_id']]['company_type'];
|
|
|
|
|
$add_data['is_payment']=$v['is_payment'];
|
|
|
|
|
//获取渠道及发票税率
|
|
|
|
|
//获取渠道及税费费率
|
|
|
|
|
$promote_ratio = $cp[$add_data['company_id']]['channel_rate'] ?? 0;
|
|
|
|
|
$fax_ratio = $cp[$add_data['company_id']]['invoice_rate'] ?? 0;
|
|
|
|
|
$fax_ratio = $cp[$add_data['company_id']]['taxation_rate'] ?? 0;
|
|
|
|
|
//游戏统计
|
|
|
|
|
if(!isset($v['list'])){continue;}
|
|
|
|
|
foreach($v['list'] as $ke=>$va){
|
|
|
|
|