Get the vendor Name Create Computed coloum in data entity
private static str getVendorNameSql()
{
str getVendorNameSql = strFmt(@" select Name from DirPartyTable
JOIN VendTable on DirPartyTable.recid = VendTable.Party
WHERE VendTable.AccountNum = %1",
SysComputedColumn::returnField(tableStr(IGPS_PurchOrderAccrualEntity), dataEntityDataSourceStr(IGPS_PurchOrderAccrualEntity, IGPS_PurchOrderAccrual), fieldStr(IGPS_PurchOrderAccrual, VendAccount)));
return getVendorNameSql;
}
Comments
Post a Comment