Hi
Add the ProjTransId in to that view from ProjItemTrans.
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;
//select InventTransId from projItemTransView where projItemTransView.ProjTransId == this.ProjTransId
//join inventTransOrigin where inventTransOrigin.InventTransId == projItemTransView.InventTransId;
return PurchLine.PurchId;
}
else return "";
}
Thanks,
Add the ProjTransId in to that view from ProjItemTrans.
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;
//select InventTransId from projItemTransView where projItemTransView.ProjTransId == this.ProjTransId
//join inventTransOrigin where inventTransOrigin.InventTransId == projItemTransView.InventTransId;
return PurchLine.PurchId;
}
else return "";
}
Thanks,
No comments:
Post a Comment