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("剩余打款金额超过结算金额"); }