Hi Jacopo,
I did a quick dig through trace through, and found the problem. It stems from the service call
"getManufacturingComponents". More details of my adventures below.
>> I get the error right when I'm adding quantity produced for "individual
>> deliverables (ETH_BRAND, HD2GB_BRAND, RAM256_BRAND)".
>>
> These are the components needed by the production run and so they will be
> consumed (not produced) by the production run: this is what happens when you
> click the "issue" link in the production run screen.
Yes, you're right, I clicked the "issue" link.
> Do you get the same error when you click on the "quick complete" link?
Yes, the same error message.
I managed to get "quick complete" to complete! I just had to add "Material A" for the BOMs of
ETH_BRAND, HD2GB_BRAND and RAM256_BRAND.
What an odd error message. It should've simply told me that routing task "Stock Out" is missing
those components, rather than say "can't get average cost for products".
I think I spotted another bug.
I have zero quantity of "Material A". Yet, the production run completed. I see a negative quantity
now for ETH_BRAND, HD2GB_BRAND and RAM256_BRAND, like they've been consumed for the production
run. Note that I edited the BOMS for those components AFTER the production run was generated.
Perhaps the constraint "no QOH for components" should still stand and prevent completion of
production run?
A more complex question (sorry) is: how does an existing production run adapt to new manufacturing
capabilities? Say, I used to be unable to manufacture ETH_BRAND, HD2GB_BRAND and RAM256_BRAND. A
production run is auto-generated at that time which didn't have a routing task to produce those
components (just one that consumes them). Say I then discover I could grow those components out of
Coca Cola cans. How do I edit the existing production run to reflect my new manufacturing
abilities? Does changing my routing task from "assembly" to "manufacturing" on-the-fly work?
I hit a similar problem when trying to pack the PC001 for the sales order! Same type of error
message here: "can't get average cost for product", this time it's for PC001!
Do I have to create a BOM for PC001 like I did for ETH_BRAND? PC001 currently has no components in
its BOM. But PC001 is a configurable product. How do I create a "conditional BOM" for it?
I still can't get the components (ETH_BRAND, HD2GB_BRAND, etc) to increase in quantity even though
I modified my routing task to "manufacture" (was "assembly"). After completing a few production
runs, my components are now at negative values.
Does the packing/shipping consume the components as well? If so, it looks like a double
consumption: once in the production run, again in the packing/shipping.
Another question, about inventory. I now have several PC001 inventory items, presumably with
different configurations requiring separate entries. How do I know which entry has what
configuration (2 harddisks, 5 RAMs, modem card, etc)?
> Which version OFBiz version are you running?
OpenTaps 0.93 .
> Documents (not really complete or updated, but with intersting
> information in them):
Yes, I searched Confluence and found those PDFs. Nothing I could use on them. Certainly couldn't
find instructions that should tell me to create BOMs for components.
Help? I don't wanna do anymore reverse-engineering if I can avoid it.
Jonathon