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

oa付款单

上级 ac9b78be
...@@ -70,12 +70,11 @@ foreach ($dataarr as $key => $value) { ...@@ -70,12 +70,11 @@ foreach ($dataarr as $key => $value) {
$sum = 0; $sum = 0;
foreach($new_array as $ke =>$item){ foreach($new_array as $ke =>$item){
if($item['FDOCUMENTSTATUS']=='C'){ if($item['FDOCUMENTSTATUS']=='C'){
echo 2222;die; $sum += (int)$item['FPAYTOTALAMOUNTFOR'];
$sum += (int)$item['FPAYTOTALAMOUNTFOR'];
$payflow = $this->db->getone('[Q]finybx_paymentflow',"`fbillno`='".$new_array[$ke]['FBillNo']."'",'id,fbillno'); $payflow = $this->db->getone('[Q]finybx_paymentflow',"`fbillno`='".$new_array[$ke]['FBillNo']."'",'id,fbillno');
$fbillno=$new_array['FSRCBILLNO']; $fbillno=$new_array['FSRCBILLNO'];
$datalist = $this->db->getone('[Q]fininfom',"`fbillno`='".$value['fbillno']."'",'id,fbillno,money'); $datalist = $this->db->getone('[Q]fininfom',"`fbillno`='".$value['fbillno']."'",'id,fbillno,money');
if(!$payflow ){ if(!$payflow){
$paymentflow=array( $paymentflow=array(
'fsrcbillno' =>$new_array[$ke]['FSRCBILLNO'], 'fsrcbillno' =>$new_array[$ke]['FSRCBILLNO'],
'fbillno' =>$new_array[$ke]['FBillNo'], 'fbillno' =>$new_array[$ke]['FBillNo'],
...@@ -84,7 +83,7 @@ foreach ($dataarr as $key => $value) { ...@@ -84,7 +83,7 @@ foreach ($dataarr as $key => $value) {
'date' =>substr($new_array[$ke]['FPOSTDATE'],0,strpos($new_array[$ke]['FPOSTDATE'], 'T')) 'date' =>substr($new_array[$ke]['FPOSTDATE'],0,strpos($new_array[$ke]['FPOSTDATE'], 'T'))
); );
m('finybx_paymentflow')->insert($paymentflow); m('finybx_paymentflow')->insert($paymentflow);
echo 333;
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论