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

OA数据同步生产环境测试

上级 8b915ae7
......@@ -30,9 +30,8 @@ class flow_emfkClassModel extends flowModel
if($flowid['nowcheckid']=='1085'){
$applicant = $this->rs['applicant'];//申请人
$FCREATORID = $this->db->getone('oa_personfile', "name='" . $this->rs['applicant'] . "'");
$gonncode = $FCREATORID['gonncode']; //申请人编号
$payee = $this->rs['payee'];//收款方
$supplier = m('supplier')->getone("name = '$payee' ",'number');
//明细
$oa_fininfos=$this->db->getrows('oa_c_emfk_details',"mid='".$this->rs['id']."'");
......@@ -169,9 +168,9 @@ class flow_emfkClassModel extends flowModel
$model['Model']['FDATE']=$applydt;
// $model['Model']['FCONTACTUNIT']['FNumber']=$gonncode;
$model['Model']['FCONTACTUNIT']['FNumber']=$supplier['number'];
$model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];;
// $model['Model']['FRECTUNIT']['FNumber']=$gonncode;
$model['Model']['FRECTUNIT']['FNumber']=$supplier['number'];
$model['Model']['FPAYBILLENTRY']=$arr['FPAYBILLENTRY'];
$data_model=json_encode($model);
......
......@@ -120,7 +120,7 @@ class openemClassAction extends openapiAction
'qmimg' =>NULL,
'iszb' =>0
);
var_dump($this->sendMess(1,3));
$this->sendMess(1,3);
m('flow_log')->insert($addarr);
$docnum= $datalist['docnum'];
$withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount');
......@@ -247,8 +247,7 @@ class openemClassAction extends openapiAction
'iszb' =>0
);
m('flow_log')->insert($addarr);
var_dump($this->sendMess(1,3));
$this->sendMess(1,3);
$docnum= $datalist['docnum'];
$withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论