private void AgregarStockTransaccion(Stock stock)
        {
            var StockTransaccion = new StockTransaccion();

            StockTransaccion.StockId                 = stock.StockId;
            StockTransaccion.Identifier              = Guid.NewGuid();
            StockTransaccion.Desincronizado          = true;
            StockTransaccion.FechaUltimaModificacion = DateTime.Now;
            StockTransaccion.Eliminado               = false;
            StockTransaccion.Cantidad                = Convert.ToDecimal(CantidadActual);
            StockTransaccion.StockTransaccionTipoId  = 3;
            StockTransaccionRepository.Agregar(StockTransaccion);
            StockTransaccionRepository.Commit();
        }
Exemple #2
0
        private void AgregarStockTransaccion(Stock stock, decimal cantidad)
        {
            var stockTransaccion = new StockTransaccion
            {
                StockId                 = stock.StockId,
                Identifier              = Guid.NewGuid(),
                Desincronizado          = true,
                FechaUltimaModificacion = DateTime.Now,
                Eliminado               = false,
                Cantidad                = cantidad,
                StockTransaccionTipoId  = 3
            };

            StockTransaccionRepository.Agregar(stockTransaccion);
            StockTransaccionRepository.Commit();
        }