Post by fido-x » Thu Aug 11, 2011 8:31 pm

In OpenCart version 1.5.0, the product cost field was removed. Daniel gave his reasons for this in this thread: viewtopic.php?f=161&t=32488&p=159326#p159326

To recap:
because it was the wrong way of doing things. every time you change that field you skew all the reports that were based on the old cost value.
I agree with Daniel on this summation. Yes, product costs do change over time and any report that gets the product cost from the field in the product table will provide inaccurate reports of the cost of goods (my own Statements module included).

However, the real issue is that it wasn't "complete". For accurate reporting of product costs, you also need to add a cost field to the order_product table, so that the cost of the product is added to the order at the time the product is purchased. Reports involving products costs can then use the value(s) stored in this table for reporting cost of goods.

Since any change in the cost of a product will have no impact on previously purchased products, this will provide an accurate means of reporting product costs.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 8 guests