I was trying to add the virtual field in data entity by using that virtual field i am trying physical quantity of item by site and warehouse but my postload method is showing errors what should i have to do to make it work
i have added the field in staging table
now i had made the class which will get the values ,plz can any one guide me on this how can i get this done.
[ExtensionOf(viewstr(QuantityEntity))]
final class QuantityEntity_Extension
{
public void postload()
{
inventOnHand inventcls;
InventQty inventQty;
this.InventSiteId = inventDim::find(this.InventSiteId).InventSiteId;
this.InventLocationId = inventDim::find(this.InventLocationId).InventLocationId;
inventcls = inventOnHand::newItemId(this.ItemId);
inventQty = inventcls.physicalInvent();
return inventQty;
next postload();
}
}