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

测试付款单

上级 30b41e4e
...@@ -73,17 +73,14 @@ class flow_oafkClassModel extends flowModel ...@@ -73,17 +73,14 @@ class flow_oafkClassModel extends flowModel
}else{ }else{
$docnum=$this->rs['docnum']; $docnum=$this->rs['docnum'];
$withhold_cost = m('c_withhold')->getall("docnum='$docnum'", 'id,amount');
var_dump($withhold_cost);
foreach ($withhold_cost as $key => $vo) {
//将单据状态作废余额 //将单据状态作废余额
$status = array( $status = array(
'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');
foreach ($withhold_cost as $key => $vo) {
//减去冻结金额 //减去冻结金额
$cost_id=$vo['cost_id']; $cost_id=$vo['cost_id'];
$sql = " cost_id='$cost_id' and status = 1 and is_default=1"; $sql = " cost_id='$cost_id' and status = 1 and is_default=1";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论