提交 782ba4df authored 作者: fengzy's avatar fengzy

'调整费用报销与借款单逻辑'

上级 7d5eb346
...@@ -171,8 +171,9 @@ class flow_emfkClassModel extends flowModel ...@@ -171,8 +171,9 @@ class flow_emfkClassModel extends flowModel
foreach ($withhold_cost as $key => $vo) { foreach ($withhold_cost as $key => $vo) {
// 扣除账户余额 c_fund_account account_balance // 扣除账户余额 c_fund_account account_balance
$project=self::project($vo['cost_id']);
$cbzxid= self::dept($project['data'][0]['jz_cur_dept']);
$cbzxid= $vo['cost_id'];
$model = 'c_fund_account'; $model = 'c_fund_account';
$sql = " cost_id ='$cbzxid' and status = 1 and is_default=1"; $sql = " cost_id ='$cbzxid' and status = 1 and is_default=1";
$data = m($model)->getone($sql,'id,name,account_balance,freeze_amount'); $data = m($model)->getone($sql,'id,name,account_balance,freeze_amount');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论