Hi Emad,

I start with the second question: For example: You may have produced the 
inventory yourself and just added it with the form. You can also create an 
Inventory Item via the manufacturing app without the use of purchase orders.

First: I had cases where the productId of a product has changed (new company 
productId-pattern ...). Just created the new product and update the 
inventoryItem to the new product and here we go. I have implemented use-case 
where the inventory becomes another product before it expires - different logic 
applies. Therefore I replace the productId with the new one. The purchase order 
won't change when you update the InventoryItem entity. You will still see the 
InventoryItem applied to the purchase order and if you dig deeper you will see 
that the product relation has changed. The productId + product name and more is 
stored in the OrderItem entity. It will stay unchanged.

+ you can easily update the field to "readOnly" in the source code.

Best regards,
Ingo


-----Ursprüngliche Nachricht-----
Von: Emad Radwan <eradwan1...@gmail.com>
Gesendet: Montag, 15. Mai 2023 15:20
An: user@ofbiz.apache.org
Betreff: Editing Inventory Items

Hello Community,

Part of the columns that Ofbiz allows to edit is the Product. I'm not getting 
the use case behind this, Won't it affect the consistency of the Purchase Order 
related to inventory item?

Also - from business perspective - I can understand why I would need to edit 
the inventory item but when I'll need to create it from scratch without a 
purchase order?

Regards,
Emad

Reply via email to