OSCommerce 2.3.3 / Margin Report v3.00
I got the wwrong cost and margin % on the admin report page, every time I changed the cost or price for a product it changed the report. I did the following and it worked.
Line 223 margin_report2.php
$prods_query = mysql_query("select op.products_id, op.products_price, op.products_quantity, p.products_cost from orders_products op, products p where op.orders_id = '" . $o[$i] . "' and op.products_id = p.products_id");
change to
$prods_query = mysql_query("select op.products_id, op.products_price, op.products_quantity, op.products_cost from orders_products op, products p where op.orders_id = '" . $o[$i] . "' and op.products_id = p.products_id");