优化财务比较金额不符规则

master
chenzhi 5 years ago
parent 5ddf75a600
commit b1701889c4

@ -462,7 +462,7 @@ class FinanceCompareController extends ThinkController
$ydata[$v['pay_order_number']]['pt_pay_amount'] = $v['pay_amount']; $ydata[$v['pay_order_number']]['pt_pay_amount'] = $v['pay_amount'];
$ydata[$v['pay_order_number']]['diff_money'] = abs($ydata[$v['pay_order_number']]['pt_pay_amount']-$ydata[$v['pay_order_number']]['sj_pay_amount']); $ydata[$v['pay_order_number']]['diff_money'] = abs($ydata[$v['pay_order_number']]['pt_pay_amount']-$ydata[$v['pay_order_number']]['sj_pay_amount']);
if($ydata[$v['pay_order_number']]['sj_pay_amount'] - $v['pay_amount'] > 0){//金额不符 if($ydata[$v['pay_order_number']]['diff_money'] > 0){//金额不符
$ydata[$v['pay_order_number']]['type'] = 1; $ydata[$v['pay_order_number']]['type'] = 1;
$flag = false; $flag = false;
continue; continue;
@ -489,7 +489,7 @@ class FinanceCompareController extends ThinkController
continue; continue;
} }
if($flag){ if($flag){//正常
$ydata[$v['pay_order_number']]['type'] = 0; $ydata[$v['pay_order_number']]['type'] = 0;
} }
} }

Loading…
Cancel
Save