Incorrect order quantity when creating purchase order from Purchase List for inventory item with different unit

If you created a purchase order from the Purchase List for an inventory item with a different inventory unit, it could happen that the order quantity was not correctly calculated based on the inventory requirement.