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

测试付款单

上级 72d72d43
......@@ -9,24 +9,8 @@ class flow_oafkClassModel extends flowModel
return $rs;
}
//提交时调用
protected function flowsubmit($na, $sm){
if($na=='编辑'){
$this->flowcheckname(604);
}
}
protected function flowcheckname($num){
$sid = '737';
$sna = '王群';
return array($sid, $sna);
}
//二级 或一级审批同意之后进行预扣款
protected function flowcheckbefore($zt, $sm){
//zt 1代表同意
......@@ -70,8 +54,11 @@ class flow_oafkClassModel extends flowModel
}
}
}else{
$docnum=$this->rs['docnum'];
//将单据状态作废余额
var_dump($docnum);
$status = array(
'status' => 0,
);
......@@ -83,7 +70,7 @@ class flow_oafkClassModel extends flowModel
$cost_id=$vo['cost_id'];
$sql = " cost_id='$cost_id' and status = 1 and is_default=1";
$fund_account_cost = m('c_fund_account')->getone($sql, 'id,freeze_amount');
var_dump($fund_account_cost);
$id=$fund_account_cost['id'];
$freeze = array(
'freeze_amount' => $fund_account_cost['freeze_amount'] - $vo['amount'],
......@@ -91,7 +78,7 @@ class flow_oafkClassModel extends flowModel
var_dump(m('c_fund_account')->update($freeze, "`id`='$id'"));
}
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论