提交 223302ab authored 作者: fengzy's avatar fengzy

oa付款单

上级 80881cfa
...@@ -15,6 +15,12 @@ class flow_cost_centerClassModel extends flowModel ...@@ -15,6 +15,12 @@ class flow_cost_centerClassModel extends flowModel
$rs['status']=$data['name']; $rs['status']=$data['name'];
if($rs['pid']){
$data=$this->db->getone('oa_c_cbzx',"id='".$rs['pid']."'");
$rs['pid']=$data['name'];
}
return $rs; return $rs;
} }
......
...@@ -49,6 +49,7 @@ class flow_fund_transferClassModel extends flowModel ...@@ -49,6 +49,7 @@ class flow_fund_transferClassModel extends flowModel
$name=$this->rs['account'];//转出账户 $name=$this->rs['account'];//转出账户
$data=m('c_fund_account')->getone("`name`='$name'"); $data=m('c_fund_account')->getone("`name`='$name'");
var_dump($data);
//转出账户扣钱 //转出账户扣钱
$zfarr = array( $zfarr = array(
'account_balance' =>$data['account_balance']-$this->rs['trans_amount'], 'account_balance' =>$data['account_balance']-$this->rs['trans_amount'],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论