← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 779145] Re: stock move - price_unit missing for avg price and not "IN"

 

Nevertheless for accounting purpose it would be much better to store in
stock moves the value (qty*price) used for account moves   instead as it
is always possible to re-calculate the price = value/qty , but not
always value= qty*price, because of the rounding and precision issue
needed for the price field.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/779145

Title:
  stock move - price_unit missing for avg price and not "IN"

Status in OpenERP Modules (addons):
  New

Bug description:
  to be able to calculate the stock value for every point in time for avg price and real time
  obviously for accounting purpose real time we must have 
  account_balance == stock values
  and must be able to proove it

  if (pick.type != 'in') and (move.product_id.cost_method == 'average'):

  if all stock moves have the price_unit field  set:
  qty * price_unit= move_value
  and sum(+/- move_value) 
  enables to calculated  the total stock value per product in every point of time matching the account balance

  a little step further will be to calculated the average price per
  stock_location and lot


References