Displaying Unit of Measure in sales order line
Posted: Thu May 21, 2020 1:14 pm
I just want to get whatever UOM has been selected on a sales order line.
As an intial check I am just displaying a messagebox to confirm I'm getting the right UOM.
But I am getting an error 'object reference not set to an instance of an object.'
What am I doing wrong?
As an intial check I am just displaying a messagebox to confirm I'm getting the right UOM.
- Code: Select all
MessageBox.Show(line.UnitOfMeasure.Name);
But I am getting an error 'object reference not set to an instance of an object.'
What am I doing wrong?