protected virtual IPhysicalInventoryLineStateCreated MapCreate(ICreatePhysicalInventoryLine c, IPhysicalInventoryCommand outerCommand, long version, IPhysicalInventoryState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new PhysicalInventoryLineEventId(c.PhysicalInventoryDocumentNumber, c.InventoryItemId, version); IPhysicalInventoryLineStateCreated e = NewPhysicalInventoryLineStateCreated(stateEventId); var s = outerState.PhysicalInventoryLines.Get(c.InventoryItemId, true); e.BookQuantity = c.BookQuantity; e.CountedQuantity = c.CountedQuantity; e.Processed = c.Processed; e.LineNumber = c.LineNumber; e.ReversalLineNumber = c.ReversalLineNumber; e.Description = c.Description; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
void ICreatePhysicalInventoryLineCommands.Remove(ICreatePhysicalInventoryLine c) { _innerCommands.Remove((CreatePhysicalInventoryLineDto)c); }
public void Remove(ICreatePhysicalInventoryLine c) { _innerCommands.Remove(c); }
public void Add(ICreatePhysicalInventoryLine c) { _innerCommands.Add(c); }