2015 m. liepa 3 d., penktadienis 14:30:05 UTC+3, Cédric Krier rašė: > > On 2015-07-03 04:04, Airidas wrote: > > I tried this module and I have a few questions and observations.I use > > account_stock_anglo_saxon and product_cost_fifo modules. > > My testing scenario is: > > I created 2 Supplier Shipments for the same product. > > I created Customer Shipment for the same product. > > I created Supplier Invoice for the landed cost product. > > I created Landed Cost. > > > > When I created Landed Cost was updated stock move entry (related to > > Supplier Shipment) field stock_move.unit_price value. Why field > > stock_move.cost_price value has not been updated? > > The stock_move entry (related to Customer Shipment) field > > stock_move.cost_price value has not been updated. This entry cost price > was > > computed using FIFO method. It is therefore necessary to recalculate the > > stock_move.cost_price and related account move values when the landed > cost > > posted. > > No, stock_move.cost_price stores the cost price of the product when the > move was done. There is no reason to update it. Otherwise it will > require when you post a landed cost to recompute all the cost since the > begining of the company until today for each day. I think it is not > realistic.
But if don't recalculate cost, amount remains in Stock Account. Also will be wrong amount of COGS. > > > > I think when Landed Cost was posted, account move (debit Stock Account > and > > credit Expense Account) must be created. > > > Notice that on the issue I stated that account_stock* must be managed > manually: https://bugs.tryton.org/issue4726 > > -- > Cédric Krier - B2CK SPRL > Email/Jabber: [email protected] <javascript:> > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/ >
