hasokeric
1/7/2017 - 5:01 AM

Epicor 10.1 - Get Value or 0

Epicor 10.1 - Get Value or 0

    decimal PartsPerContainer =
        (from p in Db.Part.With(LockHint.NoLock)
        where p.Company == ttPartTranRow.Company && p.PartNum == ttPartTranRow.PartNum
        select p.PartsPerContainer).DefaultIfEmpty(0).First();

    ttPartTranRow["Number01"] = PartsPerContainer;