|
|
|
@ -958,6 +958,7 @@ class Index extends CI_Controller {
|
|
|
|
|
if (!empty($orderid_info)) {
|
|
|
|
|
$ssje = $this->Paypal_model->get_ssje($item->pn_mc_gross, '15002', mb_strtoupper($item->pn_mc_currency));
|
|
|
|
|
$ssje = $old_ssje===NULL ? $ssje : $old_ssje;
|
|
|
|
|
$USD_amount = $this->Paypal_model->get_USD($item->pn_mc_gross, $item->pn_mc_currency);
|
|
|
|
|
//更新还没有填的客邮和交易号de收款记录(商务订单)
|
|
|
|
|
if (isset($advisor_info->order_type) && $advisor_info->order_type == 0) {
|
|
|
|
|
$ht_memo = '(自动录入)退款号:' . $item->pn_txn_id . "\n. ";
|
|
|
|
@ -971,7 +972,7 @@ class Index extends CI_Controller {
|
|
|
|
|
if (false == $this->Paypal_model->if_biz_gai_exists($item->pn_txn_id) ) {
|
|
|
|
|
$this->Paypal_model->insert_biz_order_log($GAI_COLI_SN, 'Refunded');
|
|
|
|
|
}
|
|
|
|
|
$this->Paypal_model->add_account_info($GAI_COLI_SN, $advisor_info->COLI_ID, $item->pn_mc_gross, $item->pn_payment_date, mb_strtoupper($item->pn_mc_currency), $ssje, $item->pn_payment_date, $item->pn_payment_date, $item->pn_payment_date, $item->pn_payer, $item->pn_payer_email, $item->pn_txn_id, $ht_memo);
|
|
|
|
|
$this->Paypal_model->add_account_info($GAI_COLI_SN, $advisor_info->COLI_ID, $item->pn_mc_gross, $item->pn_payment_date, mb_strtoupper($item->pn_mc_currency), $USD_amount, $ssje, $item->pn_payment_date, $item->pn_payment_date, $item->pn_payment_date, $item->pn_payer, $item->pn_payer_email, $item->pn_txn_id, $ht_memo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//更新还没有填的客邮和交易号的收款记录(传统订单)
|
|
|
|
|