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

测试付款单

上级 38d28335
...@@ -87,12 +87,12 @@ class flow_oafkClassModel extends flowModel ...@@ -87,12 +87,12 @@ class flow_oafkClassModel extends flowModel
//减去冻结金额 //减去冻结金额
$cbzx_code=$vo['cbzx_code']; $cbzx_code=$vo['cbzx_code'];
$withhold_cost = m('c_withhold')->getone('cost_id='.$cbzx_code, 'id,amount'); $withhold_cost = m('c_withhold')->getone("cost_id='$cbzx_code'", 'id,amount');
var_dump($withhold_cost);
echo "111111111";
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1"; $sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$fund_account_cost = m('c_fund_account')->getone($sql, 'id,freeze_amount'); $fund_account_cost = m('c_fund_account')->getone($sql, 'id,freeze_amount');
var_dump($fund_account_cost);
$id=$fund_account_cost['id']; $id=$fund_account_cost['id'];
$freeze = array( $freeze = array(
'freeze_amount' => $fund_account_cost['freeze_amount'] - $withhold_cost['amount'], 'freeze_amount' => $fund_account_cost['freeze_amount'] - $withhold_cost['amount'],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论