Hi everyone,
I am facing an issue with UoM (Unit of Measure) handling in OFBiz and
would appreciate some guidance.
Here is my setup and the steps to reproduce the issue:
1. I created a test product and configured it with:
- Quantity Included: 250
- Quantity Uom Id: Grams (wt_g)
2. In the Suppliers tab, I added a supplier and set their supplier UoM
to Kilograms (wt_kg).
3. I created a Purchase Order (PO) from this supplier, who sells the
item in wt_kg.
4. I received the shipment for this PO, which automatically created an
InventoryItem.
Problem:
The uomId field in the newly created InventoryItem was not populated (it
is null).
Next, I simulated a sales order for this test product. After adding the
product to the order and approving it, the system decreased the
Available To Promise (ATP) on the aforementioned InventoryItem by exactly 1.
This issue persists even if I manually update the uomId field to wt_kg
directly in the InventoryItem.
Questions:
1. Why does OFBiz seem to ignore the Units of Measure in this scenario?
2. Shouldn't the sales order reduce the ATP value by 0.25 instead of 1,
given the product configuration?
Any insights on what might be missing or if this is an out-of-the-box
limitation would be highly appreciated.
Thanks in advance!