I want to display the cost price on my custom form, but the cost price on the InventOnHandItem form is a form level display method, so I can't use it in my custom form directly. How can I get the return value of this display method?
I run the source of this method in debug mode, and the I find that the return value is InventSum.PostedValue / InventSum.PostedQty, but the RecId of the InventSum is 0. I see the data in the table, and find that the value for the same item and inventDim is different from the value got in the debug mode.