提交 031463b2 authored 作者: fengzy's avatar fengzy

oa付款单

上级 20eeb3be
...@@ -368,9 +368,8 @@ class flow_oafkClassModel extends flowModel ...@@ -368,9 +368,8 @@ class flow_oafkClassModel extends flowModel
$post_content = self::create_postdata($data); $post_content = self::create_postdata($data);
$result = self::invoke_add($cloudUrl, $post_content, $cookie_jar); $result = self::invoke_add($cloudUrl, $post_content, $cookie_jar);
$array = json_decode($result, true); $array = json_decode($result, true);
var_dump($data_model);
if ($array['Result']['ResponseStatus']['IsSuccess']) { if ($array['Result']['ResponseStatus']['IsSuccess']) {
$num = $array['Result']['Number'];
$erp_log=array( $erp_log=array(
'sericnum'=> $this->rs['docnum'], 'sericnum'=> $this->rs['docnum'],
'table'=>'c_fininfom_oafk', 'table'=>'c_fininfom_oafk',
...@@ -384,7 +383,7 @@ class flow_oafkClassModel extends flowModel ...@@ -384,7 +383,7 @@ class flow_oafkClassModel extends flowModel
); );
m('log_erp')->insert($erp_log); m('log_erp')->insert($erp_log);
$num = $array['Result']['Number'];
$this->update("`fbillno`='$num'", $this->rs['id']); $this->update("`fbillno`='$num'", $this->rs['id']);
if($this->supplier_submit($cloudUrl, $cookie_jar, $array['Result']['Id'], $array['Result']['Number'])){ if($this->supplier_submit($cloudUrl, $cookie_jar, $array['Result']['Id'], $array['Result']['Number'])){
$erp_log=array( $erp_log=array(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论