|
|
@ -1379,7 +1379,18 @@ class Index extends CI_Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$all_list = $this->target_amount_recursive($currency, $amount, 0, $from_date, $allmost_day, array(), $last_notice_sn);
|
|
|
|
$all_list = $this->target_amount_recursive($currency, $amount, 0, $from_date, $allmost_day, array(), $last_notice_sn);
|
|
|
|
$export_list = $all_list['list'];
|
|
|
|
|
|
|
|
|
|
|
|
$filter_list = [];
|
|
|
|
|
|
|
|
$txn_list = [];
|
|
|
|
|
|
|
|
$query_list = $all_list['list'];
|
|
|
|
|
|
|
|
foreach ($query_list as $key => $row) {
|
|
|
|
|
|
|
|
if (!in_array($row->pn_txn_id, $txn_list)) {
|
|
|
|
|
|
|
|
$txn_list[] = $row->pn_txn_id;
|
|
|
|
|
|
|
|
$filter_list[] = $row;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$export_list = $filter_list;
|
|
|
|
// <!$>修改导出的第一条记录, 金额改为剩余金额<!$>
|
|
|
|
// <!$>修改导出的第一条记录, 金额改为剩余金额<!$>
|
|
|
|
if ( ! empty($last_notice_record[0]) && $last_notice_record[0]->TEL_transactionNoticeId==$export_list[0]->pn_sn) {
|
|
|
|
if ( ! empty($last_notice_record[0]) && $last_notice_record[0]->TEL_transactionNoticeId==$export_list[0]->pn_sn) {
|
|
|
|
$export_list[0]->pn_mc_gross = bcsub($last_notice_record[0]->TEL_transactionAmount, $last_notice_record[0]->TEL_exportAmount);
|
|
|
|
$export_list[0]->pn_mc_gross = bcsub($last_notice_record[0]->TEL_transactionAmount, $last_notice_record[0]->TEL_exportAmount);
|
|
|
|