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

费用报销脚本

上级 cca804d2
...@@ -288,8 +288,8 @@ class flow_projectfkClassModel extends flowModel ...@@ -288,8 +288,8 @@ class flow_projectfkClassModel extends flowModel
if(($cost['account_balance']-$cost['freeze_amount'])<$sumamount){ if(($cost['account_balance']-$cost['freeze_amount'])<$sumamount){
return $cost['name']."余额不足";die; return $cost['name']."余额不足";die;
} }else{
echo 11;
$id=$cost['id']; $id=$cost['id'];
$c_withhold = array( $c_withhold = array(
...@@ -308,7 +308,10 @@ class flow_projectfkClassModel extends flowModel ...@@ -308,7 +308,10 @@ class flow_projectfkClassModel extends flowModel
'freeze_amount' => $cost['freeze_amount'] + $vo['amount'], 'freeze_amount' => $cost['freeze_amount'] + $vo['amount'],
); );
m('c_fund_account')->update($freeze, "`id`='$id'"); m('c_fund_account')->update($freeze, "`id`='$id'");
}
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论