示例#1
0
        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);
        }
示例#2
0
 public void SubtractMovementInput(int totalProductItems)
 {
     OutputStock(totalProductItems);
     this.StocksMovements.Add(StockMovement.FactoryCreate(this.ClientID, this.Id, totalProductItems, CrossCutting.Enums.EFlowStepStock.Output));
 }