Message 39481

Author
tbruyere
Date
2018-03-28.11:17:20
Message id
39481

Content

When encoding a supplier invoice it is possible to change the unit price of the product 
(which is copied from the receipt). 
But this new price is not impacted in the cost price of the product.

Example:
We order steel balls, the unit price to order is 1 €. We receive the products in stock. 
We receive the invoice but the unit price on the invoice is 1.5 €.
Why a price increase: the price of steel has increased sharply 
between the time of our order and the delivery, the supplier impact the augementatoin on the invoice.
Actually, the cost price is not calculated on the basis 
of new unit price of the facutre but only on the basis of the price indicated in the order.

Solution:
Add a notion of "unit price of the invoice" on the line of stock movement in the same idea as the module "landed cost"
Change the unit price of the movement with the new price coming from the invoice line associated with the movement.
Recalculate the cost price of this product with the new unit price.

I'm not sure this is the best solution .. but it's an idea
History
Date User Action Args
2018-03-28 11:17:21tbruyeresetrecipients: + mrichez
2018-03-28 11:17:20tbruyeresetmessageid: <1522228640.73.0.409280705289.issue7280@tryton.org>
2018-03-28 11:17:20tbruyerelinkissue7280 messages
2018-03-28 11:17:20tbruyerecreate