提交 00433029 authored 作者: fengzy's avatar fengzy

'调整emfk'

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