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

测试付款单

上级 277ecbe2
...@@ -29,7 +29,6 @@ class flow_oafkClassModel extends flowModel ...@@ -29,7 +29,6 @@ class flow_oafkClassModel extends flowModel
} }
//二级 或一级审批同意之后进行预扣款 //二级 或一级审批同意之后进行预扣款
protected function flowcheckbefore($zt, $sm){ protected function flowcheckbefore($zt, $sm){
var_dump($zt);
//zt 1代表同意 //zt 1代表同意
if($zt==1){ if($zt==1){
$deptdata = m('admin')->getone('id='.$this->adminid,'deptname'); $deptdata = m('admin')->getone('id='.$this->adminid,'deptname');
...@@ -79,7 +78,7 @@ class flow_oafkClassModel extends flowModel ...@@ -79,7 +78,7 @@ class flow_oafkClassModel extends flowModel
'status' => 0, 'status' => 0,
); );
m('c_withhold')->update($status, "docnum='$docnum'"); m('c_withhold')->update($status, "docnum='$docnum'");
$withhold_cost = m('c_withhold')->getall("docnum='$docnum'", 'id,cost_id,amount'); $withhold_cost = m('c_withhold')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount');
foreach ($withhold_cost as $key => $vo) { foreach ($withhold_cost as $key => $vo) {
//减去冻结金额 //减去冻结金额
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论