' . getTableFieldValue('tbl_items', 'item_name', 'item_id', $row_received_items['item_id']) . " "; $item_unit_id = getTableFieldValue('tbl_items', 'unit_id', 'item_id', $row_received_items['item_id']); $item_unit = getTableFieldValue(' unit_master', 'unit_name', 'unit_id', $item_unit_id); $item_desc = $item_desc . ' Qty: ' . $row_received_items['received_qty'] . ' ' . $item_unit . ''; $item_desc = $item_desc . "
"; } $space = " "; //$links =$view_link.$space.$edit_link.$space; $received_ref_no = "" . $row1['received_ref_no'] . ""; $data['rows'][] = array( 'id' => $row1['issue_log_id'], 'cell' => array($count++, $received_ref_no, date_format(date_create($row1['received_date']), "d-M-Y "), getTableFieldValue('ohc_type', 'ohc_type_name', 'ohc_type_id', $row1['ohc_location_id']), $item_desc, $row1['remarks']) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') ); echo json_encode($data); ?>