IRC logs of #tryton for Thursday, 2013-03-21

chat.freenode.net #tryton log beginning Thu Mar 21 00:00:02 CET 2013
2013-03-21 12:46 <jonan> Wonder if this is an Anglosaxon bug or misunderstanding. Create a supplier invoice using a product having unit_cost=$400 (average product.cost_price=$300) the moves for inventory value show: Dr:Stock-Supplier $300 Cr:Expense $300. Product.cost_price is used instead of invoice unit price. Is this correct ?
2013-03-21 12:58 <cedk> jonan: you must edit the price of supplier move when you receive it
2013-03-21 13:01 <cedk> jonan: there is not post-invoice synchronisation
2013-03-21 13:08 <jonan> But this is before any receiving. This are moves created on invoice. Is it correct to use average product.cost_price instead of purchase unit_price ?
2013-03-21 13:09 <jonan> The shipment receive moves have expected amount. Invoice doesnt.
2013-03-21 13:14 <cedk> jonan: I don't understand
2013-03-21 13:24 <jonan> If I have a product with cost_price of $300. Then I purchase 1 unit at $400. These are the moves generated by opening supplier invoice:
2013-03-21 13:24 <jonan> Acc Payable Cr $400
2013-03-21 13:24 <jonan> Acc Expense Dr $400
2013-03-21 13:24 <jonan> Acc Stock Supplier Dr $300
2013-03-21 13:24 <jonan> Acc Expense Cr $300
2013-03-21 13:25 <jonan> Is this correct ? Shouldnt they all be the purchase unit price of $400 ?
2013-03-21 13:26 <cedk> jonan: it depends of the price on this stock move
2013-03-21 13:29 <cedk> jonan: the module uses the cost price if it can not find stock move which is for me logical because cost price is the average price of the product in the stock
2013-03-21 13:44 <jonan> Then it must not be finding the stock moves because they exist. Yes the cost price is the average but doesn't make sense for me to increase stock valuation on input by average but instead by actual value or purchase.
2013-03-21 13:45 <cedk> jonan: it takes only done move
2013-03-21 13:46 <cedk> jonan: if we don't have any information about the cost, we should guess
2013-03-21 13:46 <cedk> jonan: it is what happens when you invoice before receiving goods
2013-03-21 13:47 <jonan> That is my case. Most of the time I must pay before getting any shipment. Let me try receiving first to see if any difference.
2013-03-21 14:00 <jonan> Ok ~.~.~..
2013-03-21 14:02 <jonan> Ok looks like that works if I receive first but found another currency conversion bug like before. Second currency amount is used on invoice moves.
2013-03-21 14:03 <jonan> The stock-supplier to expense portion of it.

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!