public TInPutaway Create(TInQc qc) { var pt = new TInPutaway { Code = qc.Code.Replace("QC", "PTA"), InboundId = qc.InboundId, InboundCode = qc.InboundCode, CreatedBy = DefaultUser.UserName, CreatedTime = DateTime.UtcNow, }; return pt; }
public TInPutaway Create(TInInbound inbound) { var pt = new TInPutaway { Code = inbound.Code.Replace("RCV", "PTA"), WhId = inbound.WhId, TransCode = inbound.TransCode, InboundId = inbound.Id, InboundCode = inbound.Code, Qty = 0, CartonQty = 0, BinQty = 0, Status = inbound.PStatus, CreatedBy = DefaultUser.UserName, CreatedTime = DateTime.UtcNow, }; return pt; }