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

财务模块关联资金管理模块

上级 182af322
...@@ -18,6 +18,7 @@ class mode_oafkClassAction extends inputAction{ ...@@ -18,6 +18,7 @@ class mode_oafkClassAction extends inputAction{
$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,account_balance'); $data = m($model)->getone($sql,'id,account_balance');
var_dump($data);die;
if(!$data){ if(!$data){
return "未检测到该成本中心默认扣款账户"; return "未检测到该成本中心默认扣款账户";
} }
......
...@@ -17,6 +17,7 @@ class mode_oayfkClassAction extends inputAction{ ...@@ -17,6 +17,7 @@ class mode_oayfkClassAction extends inputAction{
$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,account_balance'); $data = m($model)->getone($sql,'id,account_balance');
if(!$data){ if(!$data){
return "未检测到该成本中心默认扣款账户"; return "未检测到该成本中心默认扣款账户";
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论