提交 345d3112 authored 作者: fengzy's avatar fengzy

'调整emfk'

上级 c4126af5
...@@ -70,12 +70,11 @@ class openemClassAction extends openapiAction ...@@ -70,12 +70,11 @@ class openemClassAction extends openapiAction
foreach($new_array as $ke =>$item){ foreach($new_array as $ke =>$item){
if($item['FDOCUMENTSTATUS']=='C'){ if($item['FDOCUMENTSTATUS']=='C'){
$sum += (int)$item['FPAYTOTALAMOUNTFOR']; $sum += (int)$item['FPAYTOTALAMOUNTFOR'];
var_dump($new_array[$ke]['FBillNo']);
var_dump($item['FBillNo']);
$payflow = $this->db->getone('[Q]c_emfk_paymentflow',"`fbillno`='".$new_array[$ke]['FBillNo']."'",'id,fbillno'); $payflow = $this->db->getone('[Q]c_emfk_paymentflow',"`fbillno`='".$new_array[$ke]['FBillNo']."'",'id,fbillno');
$fbillno=$new_array['FBillNo']; $fbillno=$new_array['FBillNo'];
$datalist = $this->db->getone('[Q]c_emfk',"`fbillno`='".$value['fbillno']."'",'id,docnum,fbillno,amount'); $datalist = $this->db->getone('[Q]c_emfk',"`fbillno`='".$value['fbillno']."'",'id,docnum,fbillno,amount');
if(!$payflow ){
$paymentflow=array( $paymentflow=array(
'docnum' =>$datalist['docnum'], 'docnum' =>$datalist['docnum'],
'fbillno' =>$new_array[$ke]['FBillNo'], 'fbillno' =>$new_array[$ke]['FBillNo'],
...@@ -85,7 +84,7 @@ class openemClassAction extends openapiAction ...@@ -85,7 +84,7 @@ class openemClassAction extends openapiAction
); );
m('c_emfk_paymentflow')->insert($paymentflow); m('c_emfk_paymentflow')->insert($paymentflow);
}
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论