提交 25a8ed5a authored 作者: fengzy's avatar fengzy

测试付款单

上级 aebe6487
......@@ -67,7 +67,7 @@ class flow_oafkClassModel extends flowModel
$cbzx_code=$vo['cbzx_code'];
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,account_balance,freeze_amount');//查询账户表成本中心id
$id=$cost_id['id'];
$c_withhold = array(
'fund_account_id' => $cost['id'],
......@@ -86,14 +86,14 @@ class flow_oafkClassModel extends flowModel
'account_balance' => $cost['account_balance'] - $vo['charge_amount'],
);
m('c_fund_account')->update($account, "`id`='$cost_id['id']'");
m('c_fund_account')->update($account, "`id`='$id'");
//修改冻结余额
$freeze = array(
'account_balance' => $cost['freeze_amount'] + $vo['charge_amount'],
'freeze_amount' => $cost['freeze_amount'] + $vo['charge_amount'],
);
m('c_fund_account')->update($freeze, "`id`='$cost_id['id']'");
m('c_fund_account')->update($freeze, "`id`='$id'");
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论