//include_once($path_to_root . "/purchasing/includes/ui/supp_alloc_ui.inc");
$js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
$js .= get_js_open_window(900, 500);
add_js_file('allocate.js');
{
if (check_allocations())
{
- $_SESSION['alloc']->write();
+ write_supp_allocation($_SESSION['alloc']);
clear_allocations();
$_POST['Cancel'] = 1;
}