public SerializedUnit MapFrom(Receipt input) { SerializedUnit serializedUnit = Scout.Core.Data.CreateEntity <SerializedUnit>(input.Session); serializedUnit.InitIdent = input.SerialNumber; serializedUnit.ReturnDate = DateTime.Now; serializedUnit.Item = input.Item; serializedUnit.ReturnType = input.PurchaseOrder.ReturnType; serializedUnit.ReturnSeed = SerializedHistoryService.GetReturnSeedFor(serializedUnit); serializedUnit.ReturnTypeCount = SerializedHistoryRepository.GetReturnTypeCount(serializedUnit); return(serializedUnit); }
public static SerializedUnit GetLastReturn(Session session, SerializedUnit unit) { return(SerializedHistoryRepository.GetLastReturn(session, unit)); }
public static int GetReturnSeedFor(SerializedUnit unit) { return(SerializedHistoryRepository.GetReturnSeedFor(unit)); }
public static int GetTimeInFieldFor(SerializedUnit unit) { return(SerializedHistoryRepository.GetTimeInFieldFor(unit)); }