From b44105bbf7fe7ab85feb6b06ddc0206721939253 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 27 Dec 2021 16:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E6=AC=BE=E6=B5=AE?= =?UTF-8?q?=E7=82=B9=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/CompanyStatementOfflineController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementOfflineController.class.php b/Application/Admin/Controller/CompanyStatementOfflineController.class.php index 094f54a48..93bc5291e 100644 --- a/Application/Admin/Controller/CompanyStatementOfflineController.class.php +++ b/Application/Admin/Controller/CompanyStatementOfflineController.class.php @@ -487,8 +487,8 @@ class CompanyStatementOfflineController extends ThinkController unset($ydata["id"]); $sumUnPayAmount = array_sum(array_column($info,'unpay_amount')); -// dump($sumUnPayAmount+$sumPartInfo['statement_money']);die(); - if (($sumUnPayAmount+$sumPartInfo['statement_money']) > $ydata['statement_money'] ) { + + if ((int)(($sumUnPayAmount+$sumPartInfo['statement_money'])*100) > (int)($ydata['statement_money']*100) ) { $this->error("剩余打款金额超过结算金额"); }