|
|
@ -53,7 +53,7 @@ class VerifyBillController extends Controller {
|
|
|
|
// dd($data);
|
|
|
|
// dd($data);
|
|
|
|
$all_sum_money = array_sum(array_column($data['statement_info'], 'sum_money'));//合计平台总额
|
|
|
|
$all_sum_money = array_sum(array_column($data['statement_info'], 'sum_money'));//合计平台总额
|
|
|
|
$all_pay_amount = array_sum(array_column($data['statement_info'], 'pay_amount'));//合计结算金额
|
|
|
|
$all_pay_amount = array_sum(array_column($data['statement_info'], 'pay_amount'));//合计结算金额
|
|
|
|
$big_all_sum_money = convertAmountToCn($all_sum_money);//大写
|
|
|
|
$big_all_sum_money = convertAmountToCn($data['statement_money']);//大写
|
|
|
|
$this->assign('big_all_sum_money', $big_all_sum_money);
|
|
|
|
$this->assign('big_all_sum_money', $big_all_sum_money);
|
|
|
|
$this->assign('all_sum_money', $all_sum_money);
|
|
|
|
$this->assign('all_sum_money', $all_sum_money);
|
|
|
|
$this->assign('all_pay_amount', $all_pay_amount);
|
|
|
|
$this->assign('all_pay_amount', $all_pay_amount);
|
|
|
@ -94,10 +94,9 @@ class VerifyBillController extends Controller {
|
|
|
|
$all_sum_money = array_sum(array_column($data['statement_info'], 'sum_money'));//合计平台总额
|
|
|
|
$all_sum_money = array_sum(array_column($data['statement_info'], 'sum_money'));//合计平台总额
|
|
|
|
$all_pay_amount = array_sum(array_column($data['statement_info'], 'pay_amount'));//合计结算金额
|
|
|
|
$all_pay_amount = array_sum(array_column($data['statement_info'], 'pay_amount'));//合计结算金额
|
|
|
|
|
|
|
|
|
|
|
|
$big_all_sum_money = convertAmountToCn($all_sum_money);//大写
|
|
|
|
$big_all_sum_money = convertAmountToCn($data['statement_money']);//大写
|
|
|
|
$data['receive_company'] = $data['pay_type'] ? $data['first_party_info'] : $data['second_party_info'];
|
|
|
|
$data['receive_company'] = $data['pay_type'] ? $data['first_party_info'] : $data['second_party_info'];
|
|
|
|
$data['pay_company'] = $data['pay_type'] ? $data['second_party_info'] : $data['first_party_info'];
|
|
|
|
$data['pay_company'] = $data['pay_type'] ? $data['second_party_info'] : $data['first_party_info'];
|
|
|
|
dd($data['statement_info']);
|
|
|
|
|
|
|
|
if ($data['statement_type'] == 1) {//下游
|
|
|
|
if ($data['statement_type'] == 1) {//下游
|
|
|
|
excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_sum_money);
|
|
|
|
excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_sum_money);
|
|
|
|
} else {//上游
|
|
|
|
} else {//上游
|
|
|
|