So I get the Case structure which is great. However, I am not sure why the unit of measure matters. I am actually using the total line weight, rather than the weight from the unit of measure (which I know is not perfect).
I imagine there would be a complex select statement to retrieve the weight from the unit of measure table, which is why I just take the total weight of the line (which is standard field regardless of unit of measure).
If someone has an idea of how to select the weight for a given unit of measure from a marketing document line that would be awesome.