提交 04f60436 authored 作者: fengzy's avatar fengzy

oa付款单

上级 8926348e
......@@ -379,16 +379,98 @@ class flow_finfybxClassModel extends flowModel
$result = self::invoke_add($cloudUrl,$post_content,$cookie_jar);
$array = json_decode($result,true);
var_dump($array);
$num=$array['Result']['Number'];
if($array['Result']['ResponseStatus']['IsSuccess']){
$num=$array['Result']['Number'];
$this->update("`fbillno`='$num'", $this->rs['id']);
var_dump($this->supplier_submit($cloudUrl,$cookie_jar,$array['Result']['Id'],$array['Result']['Number']));
var_dump($this->supplier_audit($cloudUrl,$cookie_jar,$array['Result']['Id'],$array['Result']['Number']));
$erp_log=array(
'sericnum'=> $this->rs['docnum'],
'table'=>'fininfom',
'name' => '保存成功',
'remark' => json_encode($array),
'optdt' =>date("Y-m-d H:i:s"),
'level'=>2,
'fbillno'=>$num,
'fbillnoid'=>$array['Result']['Id'],
'fbillno_type'=>1,
);
m('log_erp')->insert($erp_log);
if($this->supplier_submit($cloudUrl,$cookie_jar,$array['Result']['Id'],$array['Result']['Number'])){
$erp_log=array(
'sericnum'=> $this->rs['docnum'],
'table'=>'fininfom',
'name' => '提交成功',
'remark' => json_encode($array),
'optdt' =>date("Y-m-d H:i:s"),
'level'=>2,
'fbillno'=>$num,
'fbillnoid'=>$array['Result']['Id'],
'fbillno_type'=>2,
);
m('log_erp')->insert($erp_log);
}else{
$erp_log=array(
'sericnum'=> $this->rs['docnum'],
'table'=>'fininfom',
'name' => '提交失败',
'remark' => json_encode($array),
'optdt' =>date("Y-m-d H:i:s"),
'level'=>1,
'fbillno'=>$num,
'fbillnoid'=>$array['Result']['Id'],
'fbillno_type'=>2,
);
m('log_erp')->insert($erp_log);
}
if($this->supplier_audit($cloudUrl,$cookie_jar,$array['Result']['Id'],$array['Result']['Number'])){
$erp_log=array(
'sericnum'=> $this->rs['docnum'],
'table'=>'fininfom',
'name' => '审核成功',
'remark' => json_encode($array),
'optdt' =>date("Y-m-d H:i:s"),
'level'=>2,
'fbillno'=>$num,
'fbillnoid'=>$array['Result']['Id'],
'fbillno_type'=>3,
);
m('log_erp')->insert($erp_log);
}else{
$erp_log=array(
'sericnum'=> $this->rs['docnum'],
'table'=>'fininfom',
'name' => '审核失败',
'remark' => json_encode($array),
'optdt' =>date("Y-m-d H:i:s"),
'level'=>1,
'fbillno'=>$num,
'fbillnoid'=>$array['Result']['Id'],
'fbillno_type'=>3,
);
m('log_erp')->insert($erp_log);
}
}else{
$erp_log=array(
'sericnum'=> $this->rs['docnum'],
'table'=>'fininfom',
'name' => '保存失败',
'remark' => json_encode($array),
'optdt' =>date("Y-m-d H:i:s"),
'level'=>1,
'fbillno'=>$num,
'fbillnoid'=>$array['Result']['Id'],
'fbillno_type'=>1,
);
m('log_erp')->insert($erp_log);
}
}
......
......@@ -306,11 +306,11 @@ class flow_oafkClassModel extends flowModel
"FDATE": "2020-07-02 00:00:00",
"FCONTACTUNITTYPE": "BD_Supplier",
"FCONTACTUNIT": {
"FNumber": "GDGYS-0001"
"FNumber": "GDGYS-0003"
},
"FRECTUNITTYPE": "BD_Supplier",
"FRECTUNIT": {
"FNumber": "GDGYS-0001"
"FNumber": "GDGYS-0003"
},
"FISINIT": false,
"FCURRENCYID": {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论