提交 2f788884 authored 作者: fengzy's avatar fengzy

oa付款单

上级 18348bb7
......@@ -46,11 +46,11 @@ class flow_oafkClassModel extends flowModel
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,freeze_amount,account_balance');//查询账户表成本中心i
if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){
return "账户余额不足";die;
return "账户余额不足111";die;
}else{
echo 222;die;
echo 2222;die;
}
echo 1;die;
echo 1111;die;
$id=$cost['id'];
$c_withhold = array(
......@@ -75,10 +75,18 @@ class flow_oafkClassModel extends flowModel
}else{
if($flowid['nowcheckid']==$checkid){
$data = m('c_fund_details_fk')->getall('mid='.$this->rs['id'], 'id,cbzx_code,charge_amount');
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,freeze_amount');//查询账户表成本中心id
$cost = m('c_fund_account')->getone($sql, 'id,freeze_amount,account_balance');//查询账户表成本中心id
if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){
return "账户余额不足111";die;
}else{
echo 2222;die;
}
echo 1111;die;
$id=$cost['id'];
$c_withhold = array(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论