Commit 24abee34 authored by hujun's avatar hujun

where

parent 315d365d
......@@ -2609,7 +2609,7 @@ class Finance extends Basic
$m_report = new OReportModel();
$m_agent_house = new GHousesToAgents();
$m_house = new GHouses();
$m_refund = new ORefundLogModel();
$m_refund = new ORefundModel();
foreach ($list as $k=>$v) {
if ($v['source'] == 2) {
$source_id = $m_pay_adjustment->getFieldColumn('id', ['new_paylog_id'=> $v['id']]);
......@@ -2618,8 +2618,8 @@ class Finance extends Basic
$list[$k]['source_id'] = '';
}
$num = $m_refund->getTotal(['order_id'=>$v['order_id'],'is_del'=>0]);
if ($num > 0) {
$num = $m_refund->getFind('id',['pay_log_id'=>$v['id'],'is_del'=>0]);
if ($num['id'] > 0) {
$list[$k]['is_refund'] = 1;
} else {
$list[$k]['is_refund'] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment