Jonathon,

Jonathon -- Improov wrote:
Jacopo,

So are you planning to do the "Create multiple Production Runs for Configurable Product" feature? If so, when?

No, I'm sorry but I don't have plans about this at the moment.

If you want me to do it, can you bring me up to speed quickly so I can put my work back here for public audit? If I were to do it, I'd probably start with the "creation of new production runs based on the configuration id" feature.

I'd suggest looking at the ProductConfig* classes (that handle many of the configuration related tasks):
http://svn.apache.org/repos/asf/ofbiz/trunk/applications/product/src/org/ofbiz/product/config/

In particular:
http://svn.apache.org/repos/asf/ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java
is the class that represents a product configuration, so the idea is to add a new method to it (something like store()) to store the configuration in the db.
About the data model, here are the entities involved:
ProductConfig
ProductConfigItem
ProdConfItemContent
ProdConfItemContentType
ProductConfigOption
ProductConfigOptionIactn
ProductConfigProduct
ProductConfigConfig
ProductConfigStats

Some of them are still not used by the system; in particular, ProductConfigConfig is the entity that should be used to store a particular product configuration.
They are all defined here:
http://svn.apache.org/repos/asf/ofbiz/trunk/applications/product/entitydef/entitymodel.xml

If you want to see how the demo product PC001 is persisted in the db:

http://svn.apache.org/repos/asf/ofbiz/trunk/applications/ecommerce/data/DemoConfigurator.xml

The user interface to edit the above data is here:

https://demo.dejc.com:8443/catalog/control/FindProductConfigItems

During order entry, you can configure a pc both in the ecommerce and in the order manager application (click on the "configurable pc" category in the left-hand side and then select the PC001).

Hope this helps,

Jacopo



You mean it takes 0.5 to 1 day of work to do the above feature? Or just to do the "Copy an existing production run" feature? The above feature doesn't seem easy.


Yes, the 1 day estimate was about the "Copy an existing production run" feature; the other one is not so easy, even if there is already a lot of stuff in place.

Jacopo

Jonathon

Jacopo Cappellato wrote:
Yes, the copy of a production run is not currently implemented (but it should be a rather easy task, let's say 0.5 to 1 day of work, for a developer with a good knowledge of OFBiz). The main reason is that, usually (for non pc - type products) the production run is quickly created from the bom and the routing (that both represents the 'template' for the production run). For pc-like products, the initial plan was to store the configuration (there is already the entity for this) and then use it in the system to do various tasks, such as:
- statistics of top sold configurations
- pre-configured items proposed to the customers
- creation of new production runs based on the configuration id (this is what you would need here)
- planning
- bom explosions
- and, most of all, by storing the configuration there will be no need to immediately create the production run when the order is created as is now (having a more flexible system).

Jacopo

Jonathon





Reply via email to