public static StockMovement FactoryCreate(Guid clientSupplierID, Guid stockID, int amount, EFlowStepStock flowStepStock) { StockMovement stockMovement = new StockMovement(); stockMovement.ClientSupplierID = clientSupplierID; stockMovement.Amount = amount; stockMovement.StockID = stockID; stockMovement.FlowStepStock = flowStepStock; stockMovement.UnitPrice = 0; stockMovement.TotalValue = 0; return(stockMovement); }
public void SubtractMovementInput(int totalProductItems) { OutputStock(totalProductItems); this.StocksMovements.Add(StockMovement.FactoryCreate(this.ClientID, this.Id, totalProductItems, CrossCutting.Enums.EFlowStepStock.Output)); }