load->model('Finance_model'); $table=$CI->Finance_model->show_date($get_controller_start,$get_controller_end); if(isset($table) && $table->num_rows()>0) { $i=1; foreach($table->result() as $rep) { $ledger_id=$rep->ledger_id; $ledger_name=$rep->ledger_name; $opening_balance=$rep->opening_balance; $ob_debit_credit_id=$rep->ob_debit_credit_id; $closing_balance=$rep->closing_balance; $cb_debit_credit=$rep->cb_debit_credit; if($ob_debit_credit_id==1) { $ob_debit_credit_id="Dr"; } else { $ob_debit_credit_id="Cr"; } if($cb_debit_credit==1) { $cb_debit_credit="Dr"; } else { $cb_debit_credit="Cr"; } ?>
Ledger Name Opening Balance Closing Balance

No result found