! -> Note
$ -> Affected files
+15-Jun-2009 Joe Hunt
+! Added Item Code Entry in Work Order Entry and quantity decimals now follows the item
+$ /includes/ui/ui_lists.inc
+ /manufacturing/work_order_entry.php
+
14-Jun-2009 Joe Hunt
! Much better presentation of new Balance Sheet, P&L Statement and Monthly Breakdown.
$ /gl/includes/db/gl_db_account_types.inc
$all_option=false, $submit_on_change=false)
{
echo "<tr>\n";
- $str = stock_manufactured_items_list_cells($label, $name, $selected_id,
- $all_option, $submit_on_change);
+ if ($label != null)
+ echo "<td>$label</td>\n";
+ echo "<td>";
+ $str = stock_items_list($name, $selected_id, $all_option, $submit_on_change,
+ array('where'=>array("mb_flag = 'M'"),
+ 'edit_submit' => true));
+ //$str = stock_manufactured_items_list_cells($label, $name, $selected_id,
+ // $all_option, $submit_on_change);
+ echo "</td>\n";
echo "</tr>\n";
return $str;
}
}
else
{
- stock_manufactured_items_list_row(_("Item:"), 'stock_id', null);
+ stock_manufactured_items_list_row(_("Item:"), 'stock_id', null, false, true);
+ if (list_updated('stock_id'))
+ $Ajax->activate('quantity');
locations_list_row(_("Destination Location:"), 'StockLocation', null);
}
if (!isset($_POST['quantity']))
$_POST['quantity'] = qty_format(1, $_POST['stock_id'], $dec);
+else
+ $_POST['quantity'] = qty_format($_POST['quantity'], $_POST['stock_id'], $dec);
+
if (get_post('type') == wo_types::advanced())
{