$_POST['stock_id'] = $_GET['stock_id'];
}
+if (isset($_POST['_stock_id_update']))
+ $Ajax->activate('reorders');
//------------------------------------------------------------------------------------
start_form(false, true);
echo "<center>" . _("Item:"). " ";
stock_costable_items_list('stock_id', $_POST['stock_id'], false, true);
-echo "<hr>";
+echo "<hr></center>";
stock_item_heading($_POST['stock_id']);
set_global_stock_item($_POST['stock_id']);
+div_start('reorders');
start_table("$table_style width=30%");
$th = array(_("Location"), _("Quantity On Hand"), _("Re-Order Level"));
$result = get_loc_details($_POST['stock_id']);
-while ($myrow = db_fetch($result))
+while ($myrow = db_fetch($result))
{
alt_table_row_color($k);
}
$qoh = get_qoh_on_date($_POST['stock_id'], $myrow["loc_code"]);
-
+
label_cell($myrow["location_name"]);
- $_POST[$myrow["loc_code"]] = qty_format($myrow["reorder_level"]);
+ $_POST[$myrow["loc_code"]] = qty_format($myrow["reorder_level"], $_POST['stock_id'], $dec);
- label_cell(number_format2($qoh,user_qty_dec()), "nowrap align='right'");
- qty_cells(null, $myrow["loc_code"]);
+ qty_cell($qoh, false, $dec);
+ qty_cells(null, $myrow["loc_code"], null, null, null, $dec);
end_row();
$j++;
If ($j == 12)
}
end_table(1);
-
-submit('UpdateData', _("Update"));
+div_end();
+submit_center('UpdateData', _("Update"));
end_form();
end_page();