Fixed tabbed dialogs. Removed redundant 'popup' variables.
[fa-stable.git] / inventory / includes / db / items_purchases_db.inc
index 33f765a80dc2d1975c34e7de843cf3cb98a0cbe5..eecd91239de1df8c9805419fa92c78495976c601 100644 (file)
@@ -57,7 +57,7 @@ function get_item_purchasing_data($selected_id, $stock_id)
        $sql = "SELECT pdata.*, supplier.supp_name
                FROM ".TB_PREF."purch_data pdata
                        INNER JOIN ".TB_PREF."suppliers supplier ON pdata.supplier_id=supplier.supplier_id
-               WHERE pata.supplier_id=".db_escape($selected_id)."
+               WHERE pdata.supplier_id=".db_escape($selected_id)."
                        AND pdata.stock_id=".db_escape($stock_id);
 
        $result = db_query($sql, "The supplier purchasing details for the selected supplier and item could not be retrieved");