Esempio n. 1
0
        public bool Proceso_recosteo_y_correccion_contable_inv(int IdEmpresa, int IdSucursal, int IdBodega, decimal IdProducto, DateTime Fecha_ini, int Decimales)
        {
            try
            {
                List <in_producto_x_tb_bodega_Costo_Historico_Info> Lista = new List <in_producto_x_tb_bodega_Costo_Historico_Info>();

                Fecha_ini = Fecha_ini.Date;

                using (EntitiesInventario Context = new EntitiesInventario())
                {
                    Context.SetCommandTimeOut(10000);

                    Context.spSys_Inv_Recosteo_Inventario_x_producto(IdEmpresa, IdSucursal, IdBodega, IdProducto, Fecha_ini, Decimales);
                }
                return(true);
            }
            catch (Exception ex)
            {
                string arreglo = ToString();
                tb_sis_Log_Error_Vzen_Data oDataLog      = new tb_sis_Log_Error_Vzen_Data();
                tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "", "", "", "", "", DateTime.Now);
                oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje);
                mensaje = ex.ToString() + " " + ex.Message;
                throw new Exception(ex.ToString());
            }
        }