' . getItemWithFormName($row_issue_items['item_id']) . ' Qty: ' . $row_issue_items['issue_qty'] . ' ' . getItemUnitName($row_issue_items['item_id']) . '
'; } // echo $id; error_log("id: " . $id); $view_link = ""; $edit_link = ""; $delete_link = ""; $links = ""; if ($row_report['approval_status'] == 'A') { if ($hasReadAccess) { $view_link = ""; } } if ($row_report['approval_status'] == '' || $row_report['approval_status'] == 'R') { if ($hasWriteAccess) { $edit_link = ""; } } if ($hasExecuteAccess) { $delete_link = ""; } $space = " "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; $issue_dt = date_format(date_create($row_report['date_of_issue']), "d-M-Y "); $data['rows'][] = array( 'issue_log_id' => $row_report['issue_log_id'], 'cell' => array( $links, $count++, getFieldFromTable('type_name', 'medicine_issue_point', 'point_id', $row_report['issue_point_id']), $issue_dt, $item_desc, $approval_status, $row_report['comments'], ) ); } echo json_encode($data); ?>