'select_submit'=> $submit_on_change,
'category' => 2,
'order' => array('c.description','stock_id'),
- 'editlink' => $editkey ? add_edit_combo('item') : false
+ 'editlink' => $editkey ? add_edit_combo('item') : false,
+ 'editable' => false,
+ 'max' => 255
), $opts) );
return $ret;
}
}
function stock_items_list_cells($label, $name, $selected_id=null, $all_option=false,
- $submit_on_change=false, $all=false, $editkey = false)
+ $submit_on_change=false, $all=false, $editkey = false, $opts= array())
{
if ($label != null)
echo "<td>$label</td>\n";
echo stock_items_list($name, $selected_id, $all_option, $submit_on_change,
- array('cells'=>true, 'show_inactive'=>$all), $editkey);
+ array_merge(array('cells'=>true, 'show_inactive'=>$all), $opts), $editkey);
}
/*
function stock_items_list_row($label, $name, $selected_id=null, $all_option=false, $submit_on_change=false)
// hidden('line_no', ($_SESSION['PO']->lines_on_order + 1));
//Chaitanya : Manufcatured item can be purchased
- stock_items_list_cells(null, 'stock_id', null, false, true, false, true);
+ stock_items_list_cells(null, 'stock_id', null, false, true, false, true, array('editable' => 30));
//stock_purchasable_items_list_cells(null, 'stock_id', null, false, true, true);
if (list_updated('stock_id')) {
$Ajax->activate('price');