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

费用报销脚本

上级 cf17a4ab
......@@ -293,15 +293,15 @@ class flow_projectfkClassModel extends flowModel
}
foreach ($data as $key => $vo) {
foreach ($data as $key => $va) {
$id=$cost['id'];
$c_withhold = array(
'fund_account_id' => $id,
'docnum' => $this->rs['docnum'],
'cost_id' => $vo['cbzxid'],
'amount' => $vo['amount'],
'cost_id' => $va['cbzxid'],
'amount' => $va['amount'],
'status' => 1,
'create_time' => date("Y-m-d H:i:s"),
'uid' => $this->rs['uid'],
......@@ -310,7 +310,7 @@ class flow_projectfkClassModel extends flowModel
//修改冻结余额
$freeze = array(
'freeze_amount' => $cost['freeze_amount'] + $vo['amount'],
'freeze_amount' => $cost['freeze_amount'] + $va['amount'],
);
m('c_fund_account')->update($freeze, "`id`='$id'");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论