Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
SAFE MODE
/
application
/
views
/
admin
/
credit_notes
:
table_html.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php defined('BASEPATH') or exit('No direct script access allowed'); $table_data = array( _l('credit_note_number'), _l('credit_note_date'), (!isset($client) ? _l('client') : array( 'name'=>_l('client'), 'th_attrs'=>array('class'=>'not_visible') )), _l('credit_note_status'), (!isset($project) ? _l('project') : array( 'name'=>_l('project'), 'th_attrs'=>array('class'=>'not_visible') )), _l('reference_no'), _l('credit_note_amount'), _l('credit_note_remaining_credits'), ); $custom_fields = get_custom_fields('credit_note',array('show_on_table'=>1)); foreach($custom_fields as $field){ array_push($table_data, [ 'name' => $field['name'], 'th_attrs' => array('data-type'=>$field['type'], 'data-custom-field'=>1) ]); } render_datatable($table_data,'credit-notes', [], ['id'=>$table_id ?? 'credit_notes']); ?>