Hi,
I wonder whether this is the right place to talk about this or not. Anyway, I think Drupal Commerce is trying to be one of the complete e-commerce solution for users. Some features can make it more usable.

Features:
1. Need a Purchased price (the price paid by admin to brought the product in the store OR, cost of product) field as product attribution. By default, it should not be displayed to end user. Instead of this value it can be exported by a bar-code (I have tried barcode module, but the problem is, it is not useful for 2nd feature!

2.In the 'Order page' & 'Product Page' of admin view, the purchased value will be displayed. And, In the 'sales report' module it should show the cost of product besides the revenue and quantity.

3. As a real business, a web-store also need profit & loss calculation. So, if possible add this calculation system in 'sales report' module.

Thanks for considering this features!

Comments

rszrama’s picture

Status: Active » Closed (won't fix)

Commerce doesn't need to implement this itself - anyone can easily add a merchant "Cost" field to their product types and then update the Views used to generate the Reports to include that. That's not to say it's a simple problem, as editing Views is a more advanced task, but there's nothing for us to add to core to support this. On my cheese site, I do just this via a custom cost field on my product types.

zeezhao’s picture

Title: A Complete Sales Report » Add cost field to product and order editing, since can change over time for profit calc
Issue summary: View changes
Status: Closed (won't fix) » Active

Hi. I am reopening this as a means of discussing an old related issue.

There is a module which I came across which does this:
https://www.drupal.org/project/commerce_costs_profits

However, since it is a core feature for correct calculation of profit/loss, it would be nice if it were in commerce core.

In summary, the cost of a product can change over time. Hence it is good to be able to lock in the cost at a transaction level too. The module above provides the cost field (which as pointed out above could be added as an extra field). But also gives ability to amend at order level. This makes profit/loss calculations more accurate without going into more complicated methods.

Please let me know your views. Thanks.

zeezhao’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
rszrama’s picture

Status: Active » Closed (won't fix)

I still don't think we'll add this as a core feature, but it is something you can do by adding a cost price field to your line item type(s) and populating it when the order is created. It would then become your historical record of costs.