提交 52c75640 authored 作者: fengzy's avatar fengzy

费用报销脚本

上级 1a543a2c
......@@ -282,7 +282,6 @@ class flow_projectfkClassModel extends flowModel
$ret[$v['cbzxid']]['amount'] += $v['amount'];
}
}
$ret = array_values($ret);
foreach ($ret as $key => $vo) {
$project=self::project(substr($vo['cbzxid'],0,strpos($vo['cbzxid'], "(")));
......@@ -295,9 +294,7 @@ class flow_projectfkClassModel extends flowModel
return $cost['name']."余额不足";die;
}
}
foreach ($data as $key => $va) {
$project=self::project(substr($va['cbzxid'],0,strpos($va['cbzxid'], "(")));
......@@ -316,8 +313,6 @@ class flow_projectfkClassModel extends flowModel
'uid' => $this->rs['uid'],
);
m('c_withhold_projectfk')->insert($c_withhold);
var_dump($va['amount']);
var_dump($id);
//修改冻结余额
$freeze = array(
'freeze_amount' => $cost['freeze_amount'] + $va['amount'],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论