Inventory Settings - managing multiple UOMs

In material specifications, only weight is mentioned. Can we add values such as lengths or liters? We have materials in our inventory that are counted as individual pieces but consumed in kilograms during production. This situation could potentially lead to issues when creating production plans or calculating costs. Have users who encountered a similar situation found any solutions to this issue?