提交 250cdb91 authored 作者: fengzy's avatar fengzy

测试付款单

上级 7efbf229
......@@ -48,7 +48,7 @@ class flow_oafkClassModel extends flowModel
foreach ($data as $key => $vo) {
$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
$cost = m('c_fund_account')->getone($sql, 'id,freeze_amount');//查询账户表成本中心id
$id=$cost['id'];
$c_withhold = array(
......@@ -62,14 +62,6 @@ class flow_oafkClassModel extends flowModel
);
m('c_withhold')->insert($c_withhold);
//修改账户余额
$account = array(
'account_balance' => $cost['account_balance'] - $vo['charge_amount'],
);
m('c_fund_account')->update($account, "`id`='$id'");
//修改冻结余额
$freeze = array(
'freeze_amount' => $cost['freeze_amount'] + $vo['charge_amount'],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论