fix: PayPal导出外管局明细, 总金额不足

feature/pay
lyt 5 years ago
parent 32bf3e0211
commit 9a572efd39

@ -1386,7 +1386,7 @@ class Index extends CI_Controller {
// 记录这次导出的最后一条 // 记录这次导出的最后一条
if (isset($all_list['last_flag']) && ! empty($all_list['last_flag'])) { if (isset($all_list['last_flag']) && ! empty($all_list['last_flag'])) {
$balance_diff = bcsub($all_list['now_amount'], $amount); $balance_diff = bcsub($all_list['now_amount'], $amount);
$last_record_export = bcsub($all_list['last_flag']->pn_mc_gross, $balance_diff); $last_record_export = $balance_diff>0 ? bcsub($all_list['last_flag']->pn_mc_gross, $balance_diff) : $all_list['last_flag']->pn_mc_gross;
$insert_db = array( $insert_db = array(
"TEL_transactionType" => 15002 "TEL_transactionType" => 15002
,"TEL_transactionNoticeId" => $all_list['last_flag']->pn_sn ,"TEL_transactionNoticeId" => $all_list['last_flag']->pn_sn

Loading…
Cancel
Save