cleanup2 according to Apmuthu's list.
[fa-stable.git] / sales / allocations / customer_allocation_main.php
index ef40147e2a8490753961653b0d1d4e1ab9e15b3b..766f6312635e604a67da0cf813168a3e55c7068d 100644 (file)
@@ -17,7 +17,7 @@ include_once($path_to_root . "/includes/session.inc");
 include_once($path_to_root . "/sales/includes/sales_ui.inc");
 include_once($path_to_root . "/sales/includes/sales_db.inc");
 $js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(900, 500);
 page(_($help_context = "Customer Allocations"), false, false, "", $js);
 
@@ -73,7 +73,7 @@ function alloc_link($row)
 {
        return pager_link(_("Allocate"),
                "/sales/allocations/customer_allocate.php?trans_no="
-                       .$row["trans_no"] . "&trans_type=" . $row["type"], ICON_MONEY);
+                       .$row["trans_no"] . "&trans_type=" . $row["type"]. "&debtor_no=" . $row["debtor_no"], ICON_ALLOC);
 }
 
 function amount_left($row)
@@ -115,4 +115,3 @@ display_db_pager($table);
 end_form();
 
 end_page();
-?>
\ No newline at end of file