Old ineffective sql_trail superseded by new improved db_trail logging only calls...
[fa-stable.git] / sales / allocations / customer_allocate.php
index 8c051386dfe81bd5f3c340780d66f123c5b82447..68a1ff43102285dcda74ec46604f8f2f2e220d90 100644 (file)
@@ -17,7 +17,6 @@ include_once($path_to_root . "/includes/session.inc");
 include_once($path_to_root . "/includes/data_checks.inc");
 include_once($path_to_root . "/sales/includes/sales_ui.inc");
 include_once($path_to_root . "/sales/includes/sales_db.inc");
-//include_once($path_to_root . "/sales/includes/ui/cust_alloc_ui.inc");
 
 $js = "";
 if ($SysPrefs->use_popup_windows)
@@ -95,7 +94,7 @@ if (isset($_POST['Process']))
 {
        if (check_allocations())
        {
-               $_SESSION['alloc']->write();
+               write_cust_allocation($_SESSION['alloc']);
                clear_allocations();
                $_POST['Cancel'] = 1;
        }