From 197e129f04bcee77e9fdc80d28892dcb3321a339 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 11 Jan 2021 18:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=93=E7=AE=97=E6=AF=94?= =?UTF-8?q?=E4=BE=8B=E5=85=AC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 4 ++-- Application/Payment/Common/extend.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index a7c1ef372..a86e66aab 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -2088,9 +2088,9 @@ function excelSpecialComplementEmplate($data, $all_sum_money, $all_pay_amount, $ // $objPHPExcel->getActiveSheet()->setCellValue('F'.$line, $value['sum_money']); if ($data['withdraw_type'] != 3) { - $objPHPExcel->getActiveSheet()->setCellValue('F'.$line,"=C{$line}*D{$line}*(1-E{$line})"); + $objPHPExcel->getActiveSheet()->setCellValue('F'.$line,"=ROUND(C{$line}*D{$line}*(1-E{$line}),2)"); } else { - $objPHPExcel->getActiveSheet()->setCellValue('F'.$line,"=C{$line}*E{$line}"); + $objPHPExcel->getActiveSheet()->setCellValue('F'.$line,"=ROUND(C{$line}*E{$line}),2)"); } } $objPHPExcel->getActiveSheet()->setCellValue('B'.$line, $product_name); diff --git a/Application/Payment/Common/extend.php b/Application/Payment/Common/extend.php index 1cb8c0d56..02253aa17 100644 --- a/Application/Payment/Common/extend.php +++ b/Application/Payment/Common/extend.php @@ -2022,7 +2022,7 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al $objPHPExcel->getActiveSheet()->setCellValue('E'.$line, $value['fax_ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['pay_amount']); // $objPHPExcel->getActiveSheet()->setCellValue('F'.$line, $value['sum_money']); - $objPHPExcel->getActiveSheet()->setCellValue('F'.$line,"=C{$line}*D{$line}*(1-E{$line})"); + $objPHPExcel->getActiveSheet()->setCellValue('F'.$line,"=ROUND(C{$line}*D{$line}*(1-E{$line}),2)"); } $objPHPExcel->getActiveSheet()->setCellValue('B'.$line, $product_name); $pay_amount_str .= "F{$line}+";