提交 5f34c497 authored 作者: fengzy's avatar fengzy

费用报销脚本

上级 814150ff
...@@ -276,7 +276,7 @@ class flow_projectfkClassModel extends flowModel ...@@ -276,7 +276,7 @@ class flow_projectfkClassModel extends flowModel
if($flowid['nowcheckid']==$checkid){ if($flowid['nowcheckid']==$checkid){
$data = m('c_projectfk_details')->getall('mid='.$this->rs['id'], 'id,cbzxid,amount'); $data = m('c_projectfk_details')->getall('mid='.$this->rs['id'], 'id,cbzxid,amount');
echo "<pre>"; echo "<pre>";
var_dump($data); var_dump(sum($data['amount']));
foreach ($data as $key => $vo) { foreach ($data as $key => $vo) {
$project=self::project(substr($vo['cbzxid'],0,strpos($vo['cbzxid'], "("))); $project=self::project(substr($vo['cbzxid'],0,strpos($vo['cbzxid'], "(")));
$sum += $vo['amount']; $sum += $vo['amount'];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论