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

oa付款单

上级 a86ae8e1
...@@ -45,7 +45,7 @@ class flow_oafkClassModel extends flowModel ...@@ -45,7 +45,7 @@ class flow_oafkClassModel extends flowModel
$cbzx_code=$vo['cbzx_code']; $cbzx_code=$vo['cbzx_code'];
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1"; $sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心 $cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心
if($cost['type']==1){ if($cost['type']===1){
if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){ if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){
return "账户余额不足";die; return "账户余额不足";die;
} }
...@@ -79,7 +79,7 @@ class flow_oafkClassModel extends flowModel ...@@ -79,7 +79,7 @@ class flow_oafkClassModel extends flowModel
$cbzx_code=$vo['cbzx_code']; $cbzx_code=$vo['cbzx_code'];
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1"; $sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心id $cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心id
if($cost['type']==1){ if($cost['type']===1){
if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){ if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){
return "账户余额不足";die; return "账户余额不足";die;
} }
......
...@@ -50,7 +50,7 @@ class flow_oayfkClassModel extends flowModel ...@@ -50,7 +50,7 @@ class flow_oayfkClassModel extends flowModel
$cbzx_code=$vo['cbzx_code']; $cbzx_code=$vo['cbzx_code'];
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1"; $sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心 $cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心
if($cost['type']==1){ if($cost['type']===1){
if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){ if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){
return "账户余额不足";die; return "账户余额不足";die;
} }
...@@ -83,7 +83,7 @@ class flow_oayfkClassModel extends flowModel ...@@ -83,7 +83,7 @@ class flow_oayfkClassModel extends flowModel
$cbzx_code=$vo['cbzx_code']; $cbzx_code=$vo['cbzx_code'];
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1"; $sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心 $cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心
if($cost['type']==1){ if($cost['type']===1){
if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){ if(($cost['account_balance']-$cost['freeze_amount'])<$vo['charge_amount']){
return "账户余额不足";die; return "账户余额不足";die;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论