提交 7450171c authored 作者: fengzy's avatar fengzy

费用报销脚本

上级 a775c939
...@@ -277,7 +277,7 @@ class flow_projectfkClassModel extends flowModel ...@@ -277,7 +277,7 @@ class flow_projectfkClassModel extends flowModel
$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');
$sum=0; $sum=0;
foreach ($data as $k => $ve) { foreach ($data as $k => $ve) {
$sum + =$ve['amount']; $amount=sum($ve['amount']);
} }
var_dump($sum); var_dump($sum);
foreach ($data as $key => $vo) { foreach ($data as $key => $vo) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论