This is a discussion on Margin Report v1.00 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Change for MarginReport2.php to make the cost portion work so that it actually calculated Gross Profit Enjoy! Find: $prods_query = ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Change for MarginReport2.php to make the cost portion work so that it actually calculated Gross Profit Enjoy! Find: $prods_query = mysql_query("select products_id, products_price, products_cost, products_quantity from orders_products where orders_id = '" . $o[$i] . "'"); Replace With: $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"); This update is for 2.56b More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Margin Report v1.00 | michael_s | New osCommerce Contributions | 2 | 07-28-2007 04:24 PM |
| Margin Report v1.00 | michael_s | New osCommerce Contributions | 0 | 07-16-2007 12:17 AM |
| All Customers Report | michael_s | New osCommerce Contributions | 0 | 03-11-2007 01:22 AM |
| All Customers Report | michael_s | New osCommerce Contributions | 0 | 03-04-2007 12:50 PM |
| Stock Report | siric | osCMax v1.7 Discussion | 2 | 11-17-2003 05:10 AM |