select firstonly * from salesLine
where this.InventRefTransId == salesLine.InventTransId;
if(salesLine.RecId)
{
select firstonly Id from UserInfo where salesLine.createdBy == UserInfo.Id;
if(UserInfo.Id)
{
PartyIProvider partyProvider = PartyProviderFactory::getPartyProvider();
if (partyProvider)
{
str fullName = partyProvider.dirPersonUserId2Name(UserInfo.id);
select * from dirPartyNameView where Name == fullName
join RecId from hcmWorker where HcmWorker.Person == dirPartyNameView.RecId;
}
this.Requester = hcmWorker.RecId;
this.update();
}
}
select * from dirPartyNameView where Name == fullName;