CHANGE_LISTING_ORDER_IN_PAYMENT_STATUS

This commit is contained in:
Srinivas-Saravanan 2025-03-07 17:48:08 +05:30
parent 6bbb97f1ec
commit c9596d7af6

View File

@ -46,6 +46,7 @@ class PaymentStatusModel extends Model
} }
$builder->where('payment_status.is_active',1); $builder->where('payment_status.is_active',1);
$builder->orderBy('payment_status.created_at','desc');
$data = $builder->get()->getResultArray(); $data = $builder->get()->getResultArray();
// log_message('error',json_encode($this->db->getLastQuery()->getQuery())); // log_message('error',json_encode($this->db->getLastQuery()->getQuery()));
return $data; // Fetch and return as an array return $data; // Fetch and return as an array