public Batch NewItem(Batch partida, Stock stock, Expedient expediente, ETipoStock tipo) { Batch item = Batch.NewChild(partida, stock, expediente, tipo); this.AddItem(item); SetNextCode(item); return(item); }
public Batch NewItem(Almacen parent, Expedient expediente, ETipoStock tipo) { Batch item = Batch.NewChild(expediente); this.AddItem(item); SetNextCode(item); Stock stock = parent.Stocks.NewItem(item, tipo); stock.Inicial = true; //expediente.UpdateTotalesProductos(); return(item); }
public Stock NewItem(Batch parent, Stock stock, ETipoStock tipo) { this.NewItem(Stock.NewChild(parent, stock, tipo)); return(this[Count - 1]); }
//public Stock NewItem(InputDeliveryLine parent) //{ // this.NewItem(Stock.NewChild(parent)); // return this[Count - 1]; //} //public Stock NewItem(OutputDeliveryLine parent) //{ // this.NewItem(Stock.NewChild(parent)); // return this[Count - 1]; //} //public Stock NewItem(LineaPedido parent) //{ // this.NewItem(Stock.NewChild(parent)); // return this[Count - 1]; //} public Stock NewItem(Batch parent, ETipoStock tipo) { return(NewItem(parent, null, tipo)); }