";
}
if($hasReadAccess||$hasWriteAccess || $hasExecuteAccess )
{
$view_link1="";
}
$space = " ";
$links = $view_link1.$space.$edit_link1;
// $item_id=$row1['item_id'];
// $item_desc = getTableFieldValue('tbl_items','item_name','item_id',$item_id);
// $unit_id=getTableFieldValue('tbl_items','unit_id','item_id',$item_id);
$unit_name = getTableFieldValue('unit_master', 'unit_name', 'unit_id', $unit_id);
$data['rows'][] = array(
'id' => $row1['item_id'],
'cell' => array(
$count ++,
$item_name,
$stock_qty. " " . $unit_name,
$reorder_stock_level,
$minqyt,
$links
)
);
}
$data['rows'][] = array(
'id' => $row['filterkey'],
'cell' => array(
'',
"",
"",
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
''
)
);
echo json_encode($data);
?>