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

费用报销脚本

上级 e27ac0d2
...@@ -294,7 +294,11 @@ class flow_projectfkClassModel extends flowModel ...@@ -294,7 +294,11 @@ class flow_projectfkClassModel extends flowModel
} }
foreach ($data as $key => $va) { foreach ($data as $key => $va) {
$project=self::project(substr($vo['cbzxid'],0,strpos($vo['cbzxid'], "(")));
$cbzx_code= self::dept($project['data'][0]['jz_cur_dept']);
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,type,name,freeze_amount,account_balance');//查询账户表成本中心id
$id=$cost['id']; $id=$cost['id'];
$c_withhold = array( $c_withhold = array(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论