Small warning cleanup in bank payment/deposit edition.
[fa-stable.git] / purchasing / view / view_po.php
index 6463f55d18c5d0acd67cf5bba44b2b68dae0d60d..550bec056106cdbae890741c3bec6b70d54939a8 100644 (file)
@@ -17,7 +17,7 @@ include($path_to_root . "/includes/session.inc");
 include($path_to_root . "/purchasing/includes/purchasing_ui.inc");
 
 $js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(900, 500);
 page(_($help_context = "View Purchase Order"), true, false, "", $js);
 
@@ -154,9 +154,10 @@ if (db_num_rows($invoice_result) > 0)
 echo "</td></tr>";
 
 end_table(1); // outer table
+//_vd($purchase_order);
+display_allocations_to(PT_SUPPLIER, $purchase_order->supplier_id, ST_PURCHORDER, $purchase_order->order_no, $total + $tax_total);
 
 //----------------------------------------------------------------------------------------------------
 
 end_page(true, false, false, ST_PURCHORDER, $_GET['trans_no']);
 
-?>