|
@@ -6,7 +6,8 @@ namespace app\cxinv\controller;
|
|
|
|
|
|
use app\cxinv\model\Pay;
|
|
|
use app\cxinv\model\PayInfo;
|
|
|
-use app\cxinv\model\PaymentOrder;use app\cxinv\model\PayPayment;
|
|
|
+use app\cxinv\model\PaymentOrder;
|
|
|
+use app\cxinv\model\PayPayment;
|
|
|
use app\cxinv\model\PayReturn;
|
|
|
use app\cxinv\model\RoleAction;
|
|
|
use app\user\model\AccountCompany;
|
|
@@ -35,7 +36,7 @@ class Stage extends Base{
|
|
|
$val= Validate::rule([
|
|
|
"sequenceNo|采购单号"=>"require|max:255",
|
|
|
"rela_fee|关联付款金额"=>"require|float"]);
|
|
|
- $total_fee=0;
|
|
|
+ $total_fee="0";
|
|
|
$relaData=[];
|
|
|
foreach ($params["cgdNos"] as $v){
|
|
|
if(!$val->check($v)) return error($val->getError());
|
|
@@ -48,7 +49,7 @@ class Stage extends Base{
|
|
|
"rela_fee"=>$v["rela_fee"],
|
|
|
"status"=>0
|
|
|
];
|
|
|
- $total_fee+=$v["rela_fee"];
|
|
|
+ $total_fee=bcadd($total_fee,$v['rela_fee'],2);
|
|
|
}
|
|
|
$ment =[
|
|
|
'payNo'=>$params['payNo'],
|