Hi everybody.
I wanted to get the paypal fee calculated in this amazing mod. So instead of waiting for the 2.0, you can replace this line (line 378):
PHP Code:
$sales_query_raw = "SELECT sum(ot.value) gross_sales, monthname(o.date_purchased) row_month, year(o.date_purchased) row_year, month(o.date_purchased) i_month, dayofmonth(o.date_purchased) row_day from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id) WHERE ";
by this one:
PHP Code:
$sales_query_raw = "SELECT sum(p.mc_gross - p.mc_fee) gross_sales, monthname(o.date_purchased) row_month, year(o.date_purchased) row_year, month(o.date_purchased) i_month, dayofmonth(o.date_purchased) row_day from " . TABLE_ORDERS . " o INNER JOIN paypal p ON (o.orders_id = p.order_id) left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id) WHERE ";
It will change yout gross income row and include the paypal fees. And it takes care of the paypal currency exchange rates as all of the values are taken from the paypal table.
I know it's not the best way to do it for most of you as you may still want to get the gross value, but as i only use paypal, this is perfect for me.
Bookmarks