|
|
@ -1897,7 +1897,8 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('C7', "支付给:".$data['receive_company']['partner']); //增加支付给对应公司
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('C7', "支付给:".$data['receive_company']['partner']); //增加支付给对应公司
|
|
|
|
$line = 10;
|
|
|
|
$line = 10;
|
|
|
|
//记录统计项目
|
|
|
|
//记录统计项目
|
|
|
|
$pay_amount_str = "=";
|
|
|
|
$pay_amount_str = "=SUM(J10:";
|
|
|
|
|
|
|
|
$plat_amount_str = "=SUM(E10:";
|
|
|
|
//增加结算记录
|
|
|
|
//增加结算记录
|
|
|
|
foreach ($data['statement_info'] as $key => $value) {
|
|
|
|
foreach ($data['statement_info'] as $key => $value) {
|
|
|
|
$objPHPExcel->getActiveSheet()->insertNewRowBefore($line,1)->mergeCells("J$line:K$line");
|
|
|
|
$objPHPExcel->getActiveSheet()->insertNewRowBefore($line,1)->mergeCells("J$line:K$line");
|
|
|
@ -1946,16 +1947,16 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('J'.$line, "=E{$line}*(1-H{$line})*F{$line}*(1-I{$line})");
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('J'.$line, "=E{$line}*(1-H{$line})*F{$line}*(1-I{$line})");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$pay_amount_str .= "J{$line}+";
|
|
|
|
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('D'.$line, $product_name);
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('D'.$line, $product_name);
|
|
|
|
|
|
|
|
|
|
|
|
$line++;
|
|
|
|
$line++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//合计
|
|
|
|
//合计
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue("E" . ($line), $data['pay_amount']);
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue("E" . ($line), $plat_amount_str."E".($line-1).")");
|
|
|
|
// $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $data['statement_money']);
|
|
|
|
// $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $data['statement_money']);
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), trim($pay_amount_str,"+"));
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $pay_amount_str."J".($line-1).")");
|
|
|
|
|
|
|
|
|
|
|
|
// $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line+1), $big_all_sum_money); //本月分成总金额(人民币大写)
|
|
|
|
// $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line+1), $big_all_sum_money); //本月分成总金额(人民币大写)
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue("J" . ($line+1), "=J{$line}"); //本月分成总金额(人民币大写)
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue("J" . ($line+1), "=J{$line}"); //本月分成总金额(人民币大写)
|
|
|
|