[Erp5-users] Products

Thierry Brettnacher tb at nexedi.com
Mon Nov 27 18:59:13 CET 2006


Le Lundi 27 Novembre 2006 11:16, Tomasz Brzezina a écrit :
> Thierry Brettnacher napisał(a):
> > Le Jeudi 23 Novembre 2006 13:39, Tomasz Brzezina a écrit :
> >> How to solve such problem.
> >>
> >> There is beer with EAN code 590155916007. You can also buy it in
> >> container which contains 6 beers. It has EAN code 5901559164005.
> >>
> >> What logic should I use?
> >
> > Hello,
> >
> > You should consider your "beer container" or "beer pack" as another
> > product inside your Product module and enter on it the specific EAN code.
> > If you have a look at the "resource" Property Sheet you will see there is
> > a proprety called "consumer_unit_quantity" which allows to define on your
> > "beer pack" that it consists of 6 consumer units.
>
> Yes it's ok, but question is: how to connect beer container with beer.

There is no direct relation between beer and beer container. The 
transformation defines that beer is a component for producing beer container.
However beer and beer container should be associated to a same categorie : 
product_line/drinks for example.
The use of "consumer_unit_quantity" allows then to produce global reports in 
wich you see that by selling 1 "beer" and 1 "beer container", you sold 
actually 7 consumer units of "drinks".

>
> > Of course you can also define a transformation for the beer pack saying
> > that 6 beers and one container are needed to produce a pack.
>
> But what about inverse action (got container and after transformation
> got 6 beers)
You can define a reverse transformation "unpacking beer container" in which 
you define how several beers can be produced by unpacking a beer container.

-- 
Thierry Brettnacher, Nexedi VP Consulting - Tel. +33(0)6 62 05 76 14 
 Nexedi: Consulting and Development of Libre / Open Source Software 
 http://www.nexedi.com 
 ERP5: Libre/ Open Source ERP Software for small and medium companies 
 http://www.erp5.org 
 Rentalinux: Desktop Linux Server 
 http://www.rentalinux.com 



More information about the Erp5-users mailing list