gpayne
(Greg Payne)
August 7, 2024, 12:00am
3
This is my goto post for edi data fixing.
Since you are not using the BO and you are using the LINQ Method to directly update ReqDate, you are missing out of Epicor calling “AfterUpdate” which syncs PartDtl. I didnt mean like really change it but trigger a Fake Change.
May I make a better recommendation.
I am actually doing a similar project like you, but I placed my Logic inside:
Erp.DemandImportEntry.ImportEDIPostProcessDemand
This would happen after the Order Lines and Releases have been created, either from Demand WkBench or ED…
If you look at the chart there you can fix the shipvia before it gets to demand entry with a base directive on ImportEDIb4Val. I made one in widgets for this. Two variables, CustNum and ShipTo
expression for shipto
expression for custnum
expression for set field
Db.ShipTo.Where(w => w.CustNum == CustNum && w.ShipToNum == ShipTo).Select(s => s.ShipViaCode).FirstOrDefault()
1 Like