提交 7f917194 authored 作者: chengye's avatar chengye

调整emfkmodel

上级 fbd92010
...@@ -89,13 +89,16 @@ class flow_emfkClassModel extends flowModel ...@@ -89,13 +89,16 @@ class flow_emfkClassModel extends flowModel
} }
} }
} }
var_dump(2222);
//zt 1代表同意 //zt 1代表同意
if($zt==1){ if($zt==1){
var_dump(1111);
$flowid=$this->getflow(); $flowid=$this->getflow();
if($flowid['nowcheckid']==$checkid){ if($flowid['nowcheckid']==$checkid){
$data = m('c_emfk_details')->getall('mid='.$this->rs['id'], 'id,cbzxid,amount'); $data = m('c_emfk_details')->getall('mid='.$this->rs['id'], 'id,cbzxid,amount');
var_dump($data);
foreach ($data as $key => $vo) { foreach ($data as $key => $vo) {
$project=self::project($vo['cbzxid']); $project=self::project($vo['cbzxid']);
...@@ -134,6 +137,7 @@ class flow_emfkClassModel extends flowModel ...@@ -134,6 +137,7 @@ class flow_emfkClassModel extends flowModel
} }
}else{ }else{
var_dump(3333);
$docnum=$this->rs['docnum']; $docnum=$this->rs['docnum'];
//将单据状态作废余额 //将单据状态作废余额
$withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount'); $withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论