The consignment stock is a stock legally owned by a party but held by another.
In Tryton there are two parts of this topic:
- The company having goods in its warehouse owned by a supplier.
- The company owning goods to the warehouse of its customer.
The ownership of a goods in Tryton is defined by the type of location it is in.
For the supplier consignment stock, it is important that the available stock is taken into account in the supply computation.
The stock accounting is only booked when the ownership is changed. But in case of consignment stock to customer, it may be required to book the value to a stock consignment account.
We need to support more complex structure of locations. We must allow to have
supplier locations under the warehouse and
storage locations under
This means that the internal shipments should allow such moves to be able to refill them.
Once we have such structure, the idea is to create standalone invoice line when a move is done between a
supplier location and a
storage location and also between
storage location to
customer location. This created invoice line will become the origin of the move (to avoid the warning about missing origin).
To be able to compute the right unit price for the invoice line, we will need to have on the
customer locations the related party. The unit price will be computed using the usual
- The constraint on location type must be extended.
- A party field is added on
Location. It is required for
supplierlocation under a warehouse and it is required for
storagelocation not under a warehouse.
ShipmentInternalfrom and to
supplierlocation with warehouse
storagelocation without warehouse as
- An invoice line standalone will be created for all moves previously described that do not have an origin.
- Allow purchase order for consignment
- Add supply of supplier location with purchase order