frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
20.91k stars 7.17k forks source link

item price conversion only on stock uom #24591

Open wojosc opened 3 years ago

wojosc commented 3 years ago

We have the following:

  1. an itemA with stock uom kg
  2. an itemB with stock uom piece

both items have a conversion table

  1. A: 1kg = 10 piece
  2. B: 1 piece = 20kg

both items have an item price

  1. A: 1kg = 1€
  2. B: 1kg = 0,30€

now, when using item A in transaction (quotation, sales order etc.) the conversion will work in item tables using different uoms.

item B on the other hand will not calculate right.

Our conclusion is, that Item Price needs to be setup in Default Unit of Measure (stock_uom) to work.

barredterra commented 5 months ago

This issue is valid. Also, the automatic insertion of Item Prices happens in Stock UOM, not in the transaction UOM.