Hi all,
I’m trying to create a post-processing on Erp.BO.POSugg.GetRows to pull in some additional fields to the PO Suggestions landing page using the below custom code.
In this example, I’m trying to bring in the required quantity against the JobMtl table to show demand.
foreach (var row in result.SugPoDtl)
{
var SugPOData = (from jm in Db.JobMtl
where jm.Company == row.Company && jm.JobNum == row.JobNum
select jm).FirstOrDefault();
if (SugPOData != null)
{
row["DemandQty"] = SugPOData.RequiredQty;
}
}
When I add the ‘DemandQty’ field to the grid by adding a column, there isn’t any quantities being populated, I’ve checked via BAQ and as an example JobNum ‘000324’ should have a Required Quantity of ‘7300.00’ yet it shows blank.
No data is returned into the suggestions grid:
Am I missing a step or perhaps using the wrong method? Any advice would be hugely appreciated, thank you so much!