Hello,
I have created a virtual field in a custom order line data entity. When i export the data entity via DMF, it shows correct data (integer value 1) for the virtual field, but when i hit its Odata endpoint, the value in the virtual field is incorrect (integer value 0).
The virtual field is basically the difference of total invoiced quantity and quantity returned for an order line.
I assumed that the virtual field is not generating correct data for an integer value, so I hard-coded an integer value (integer value 20) as an experiment to my assumption. To my surprise, the hard-coded value is generated correct for both DMF and Odata.
Any thoughts will be highly appreciated.
EDIT: I have debugged the postLoad method of the data entity and it sets the correct/expected value in the virtual field. However, in its Odata call, the data is displayed incorrectly.