Jacopo,

> The pc production run should complete correctly without the need to set BOMs;
> this is a financial configuration issue and I can't be of great help now,
> sorry. Maybe Si would help you to spot the problem.

You mean to say that Si Chen had to modify the OFBiz's production run codes so they link to his financial module?

I'll try OFBiz without OT and see if the problems persist. Will let you know.

Jonathon

Jacopo Cappellato wrote:
Jonathon,

Jonathon -- Improov wrote:
Jacopo,

Erm, I just sent you another email. I hacked in and found the problem. It's got something to do with BOMs. Yes, the code execution path does run through Si Chen's financial module. But his UtilCOGS.java calls OFBiz's BOM services (getManufacturingComponents, to be exact).

Si Chen's ProductAverageCost records seems auto-generated at some point, upon some transaction in OFBiz. However, upon failing to find a relevant record in ProductAverageCost, Si Chen's codes goes to OFBiz's getProductCost service. Somehow, that traces back to the BOM services. Well, we can say that Si Chen could've given us an easier error message.

The pc production run should complete correctly without the need to set BOMs; this is a financial configuration issue and I can't be of great help now, sorry. Maybe Si would help you to spot the problem.

Please help? :P No more reverse-engineering for me, please. Not when there's such an expert community here. I'm trying to defer to the expert community as much as possible, and not waste God-given time.

Overall, it seems the Job Shop area has quite a few kinks. But I'm hoping that's because I was using it in very unusual unexpected ways.
Well, let's say that the manufacturing processes will work correctly only after a complete system setup is done (including routing, boms, costs), especially if you want to run it with the financial processes: so if there is a problem somewhere it will appear. Also, the existing manufacturing framework has been built to be as general as possible; however not all the manufacturing aspects are already covered by the existing code (or are managed if you follow precise workflows and data configuration). This is what our customers are doing. I'd suggest to focus on what you are trying to achieve, try to see if you can find it in OFBiz, and if not, post your question on a precise issue here: it will be easier for us to help you.

Jacopo



Jonathon

Jacopo Cappellato wrote:
Jonathon,

Jonathon -- Improov wrote:
Jacopo,

Sorry, I may have done a myriad of other actions to get the "required parameter is missing".

The real error (where it all starts) is probably this:

"Service Error [postRawMaterialIssuancesToGl]: Unable to find a product average cost for product [ETH_BRAND] in organization [Company]".

Ah yes, this is a configuration issue: using the webtools add a record in ProductAverageCost for each of the components of your pc and it should work (it is needed by the Opentap's financial component).

Jacopo



Under Product -> Prices, I've created a new price entry "Average Cost". Still doesn't work.

Anyway, the reproduce the whole thing, simply order a PC001 from the storefront, then go to Job Shop to try to complete the automatically generated production run.

Jonathon

Jonathon -- Improov wrote:
Jacopo,

See my previous email below for how to reproduce the error. I get the error right when I'm adding quantity produced for "individual deliverables (ETH_BRAND, HD2GB_BRAND, RAM256_BRAND)".

The 1st error message I see in console.log is: ModelService.java:396:ERROR] [ModelService.validate] : {postInventoryProducedToGl} : (IN) Required test error: org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [postInventoryProducedToGl.inventoryItemIds]







Reply via email to