Add UOM Field to Existing Windows
The purpose of this page is to help you add a UOM field to existing windows where there is no UOM out of the box. Example windows include:
- Physical Inventory
- Production
- Inventory Move
- Internal Use
Without the UOM field on this windows, users are forced to perform mental math to convert quantities back to the UOM of the Product's core UOM (M_Product.C_UOM_ID).
Here are the steps to accomplish the goal:
- Add a new field called Chuboe_Qty to the line.
- Add a new field called Chuboe_UOM_ID to the line
- Create a callout plugin that performs math to convert between the Chuboe_UOM_ID and the M_Product.C_UOM_ID. The callout will ultimately set the existing Qty field accordingly.
- Make the existing Qty field read only to help simplify the callout logic.
Here is what I like about this solution:
- It requires minimal work
- The coding is relatively simple. You could easily outsource the coding piece.
- Once the callout is created, you can use it on any of the above windows.
An alternative (and also helpful above) solution would be to create a Quick Info widget to show common/possible conversions based on the product.
I hope this helps. Please be quick to ask questions in the mailing list of you need additional help.