Jonathon,
Scott's advices are correct.
I'd like to mention that:
* if you have a virtual product with a BOM and the product has some
variants associated to it without BOM, the system will use the BOM of
the virtual product: there is no need to duplicate the BOMs from the
virtual to the variants; or you can only create the BOM of the variants
products that have a BOM different from that of their virtual
* virtual BOM are also supported: if you have a virtual product T-SHIRT
with selectable features RED, YELLOW and you create as a component for
its BOM another virtual product, CLOTH, with the same selectable
features (RED, YELLOW) and then create the variants for the CLOTH and
for the T-SHIRT, you have implemented a virtual BOM. When you'll create
a production run (or you'll run a BOM simulation) for one of the
T-SHIRT's variant, the system will automatically select the right
variant CLOTH.
* what I have described above are the 'implicit' BOM rules; as Scott
said you can also create 'explicit' rules using the Manufacturing ->
Bill of Materials -> Manufacturing Rules page; for example component
inclusion/exclusion/substitution rules can be implemented as explicit
rules; however, that part of the system should probably need a few
cleanups or improvements
There is more than this, but I don't want to add too many details...
Happy testing,
Jacopo
Scott Gray wrote:
It's a beautiful concept and is one of things that got me excited when I
started looking at OFBiz.
Jonathon -- Improov wrote:
Got it. Thanks, life saver! Will explore that and let you know. OFBiz
looking better and better!
Jonathon
Scott Gray wrote:
The Quick Add Variants already auto-generates ids you would just need
to alter the code to put the id together in the way you want.
For auto boms have a look at ManufacturingExampleData.xml, there is a
similar example at the bottom of the file to what you are after. The
screen to play with is the one I incorrectly mentioned the other day,
Manufacturing -> Bill of Materials -> Manufacturing Rules.
Regards
Scott
Jonathon -- Improov wrote:
Is there a way to have rule-based auto-generation of BOMs? Maybe
this has already been done?
In general, I have a virtual product that can have thousands of
variants. I'd like an automated way to generate all the possible
variants.
One aspect I'm gonna be looking at is rule-based auto-generation of
variants' productId. This shouldn't be difficult, and can easily be
linked to the QuickAddVariants page (the checkboxes in column
"All"). If someone is already doing this, let me know so we can
collaborate?
The bigger problem I have is the auto-generation of BOMs, the lack
thereof rather.
Say I have virtual product Bicycle, and variants Bicycle-abcd, where
abcd are variables. I'd like variable 'a' to be the top-most in
hierarchy and 'd' the last. For example, my bicycles could come with
different frame sizes 1 through 5, which will require different BOM
components Frame1 to Frame5. I'd want all variants Bicycle-1bcd to
have a BOM component of Frame1, Bicycle-2bcd Frame2, and so on.
Even a semi-automated process will be alright for now.
I'd suggest an enhancement to the EditProductBom screen. Add a
function to list all variants, search can be constrained by
selection of (standard) features. This function can be copied from
"Lookup Variant Product" somehow. Allow "Copy BOM" to apply to a
number of variants at once.
Any ideas?
Jonathon