diff --git a/webht/third_party/paypal/models/note_model.php b/webht/third_party/paypal/models/note_model.php index 0c912567..171a34fc 100644 --- a/webht/third_party/paypal/models/note_model.php +++ b/webht/third_party/paypal/models/note_model.php @@ -173,7 +173,16 @@ class Note_model extends CI_Model { } $this->search = $search_sql; $this->orderby = " order by pn.pn_sn asc"; - return $this->get_list(); + $filter_list = []; + $txn_list = []; + $query_list = $this->get_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; + } + } + return $filter_list; } public function top_list($top, $currency=NULL, $pn_sn=NULL, $includeWH=true) {