Exemplo n.º 1
0
 public function schedule($loan_id = -1)
 {
     $data['controller_name'] = strtolower(get_class());
     // $data['loan_info'] = $this->Schedule->get_info($loan_id);
     $data['loan_info'] = $this->Loan_approval->get_info($loan_id);
     // var_dump($data['loan_info']); die();
     $data_payments = parent::payment_schedule($data['loan_info']);
     $data['data_payments'] = $data_payments;
     /*if ($data['loan_info']->duration_loan_type == "year") {
         $last_payment_date = date("Y-m-d H:i:s", strtotime("+1 years", strtotime('2014-05-22 10:35:10')));
       }*/
     $this->load->view("schedules/schedule", $data);
 }
Exemplo n.º 2
0
 public function approval($loan_id = -1)
 {
     $is_pending = true;
     $data['loan_id'] = $loan_id;
     $data['controller_name'] = strtolower(get_class());
     $data_payments = array();
     $data['loan_info'] = $this->Loan_approval->get_info($loan_id, $is_pending);
     $data_payments = array();
     if ($loan_id != -1) {
         $data_payments = parent::payment_schedule($data['loan_info']);
     }
     $data['data_payments'] = $data_payments;
     $this->load->view("loans/approval", $data);
 }