Hi,
If you try to find by LOT** you will fail.
display PurchId PurchId()
{
PurchLine PurchLine;
ProjItemTransView projItemTransView;
InventTransOrigin inventTransOrigin;
ProjItemTrans projItemTrans;
;
if(this.ProjTransId)
{
select projItemTrans where projItemTrans.ProjTransId == this.ProjTransId;
select PurchLine where PurchLine.ProjTransId == projItemTrans.ProjTransIdRef
&& PurchLine.ItemId == projItemTrans.ItemId;
return PurchLine.PurchId;
}
else return "";
}
Thanks,