SELECT Al_Controlar_Ubicacion as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' SELECT Al_Controlar_Serie as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' SELECT Al_Controlar_Lote as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' SELECT Al_Controlar_Color as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' SELECT Al_Controlar_Talla as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_FILTRAR_NIVEL_EMPRESA' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_SALIDA_DEVOLUCION_PROVEEDOR' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_ORDEN_LOTE_AUTOMATICO' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_LOTE_AUTOMATICO' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_VALIDAR_DISPONIBILIDAD_NEGATIVA' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_VALIDAR_PORCENTAJE_VARIACION' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_CANTIDAD_DEPURACION_INVENTARIO' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_ENTRADA_AJUSTE_COSTO' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_MOVIMIENTO_ACANCELAR_ENFECHA_TRANSACCION' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_VALIDAR_INVENTARIO_MAXIMO' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_MOVIMIENTO_SERIE' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'MOV_CANCELAR_ENFECHA_TRANSACCION' SELECT Sc_Descripcion FROM Sucursal WHERE Sc_Cve_Sucursal = '0001' AND Es_Cve_Estado <> 'BA' SELECT Sc_Descripcion FROM Sucursal WHERE Sc_Cve_Sucursal = '0001' AND Es_Cve_Estado <> 'BA' SELECT GetDate() as Fecha SELECT Un_Unidad_Cubicada AS Nombre FROM Unidad WHERE Un_Cve_Unidad = '' SELECT Un_Unidad_Cubicada AS Nombre FROM Unidad WHERE Un_Cve_Unidad = '' SELECT Un_Unidad_Cubicada AS Nombre FROM Unidad WHERE Un_Cve_Unidad = '' SELECT Un_Unidad_Cubicada AS Nombre FROM Unidad WHERE Un_Cve_Unidad = '' SELECT Un_Unidad_Cubicada AS Nombre FROM Unidad WHERE Un_Cve_Unidad = '' SELECT Un_Unidad_Cubicada AS Nombre FROM Unidad WHERE Un_Cve_Unidad = '' SELECT GetDate() as Fecha SELECT Es_Descripcion AS Nombre FROM Estado WHERE Es_Cve_Estado = 'AP' SELECT TOP 1 * FROM FISICO WHERE Fi_Folio = '01-0000001' SELECT DISTINCT Texto,ID,Transaccion from Configuracion_Etiqueta where (Transaccion = '' or Transaccion = '%') ORDER BY Transaccion DESC SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_MONEDA' SELECT FontSize FROM EMPRESAS..Operadores WHERE Operador = 'CONFIG' SELECT 'SI' EXISTE FROM EMPRESAS..sysobjects sysobjects INNER JOIN EMPRESAS..syscolumns syscolumns ON sysobjects.id = syscolumns.id WHERE sysobjects.name = 'Operadores' AND syscolumns.name = 'FontSize' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_PRINTER_ESC_P' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_REDIMENSIONAR_IMAGEN' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_VISTA_PREVIA_IMPRESION_MULTIPLE' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FIN_MONEDA_LOCAL' SELECT Lote.*, Lote_Documento.Lt_Cantidad_Control_1, Lote_Documento.Lt_Cantidad_Control_2 FROM Lote_Documento INNER JOIN Producto on Producto.Pr_Cve_Producto = Lote_Documento.Pr_Cve_Producto INNER JOIN Lote ON Lote_Documento.Lt_Cve_Lote = Lote.Lt_Cve_Lote AND Lote.Pr_Cve_Producto = (CASE Producto.Pr_Equivalencia_Producto WHEN '' THEN Producto.Pr_Cve_Producto ELSE Producto.Pr_Equivalencia_Producto END) WHERE Lote_Documento.Ld_Tabla = 'FISICO' AND Lote_Documento.Ld_Documento = '01-0000001' AND Lote_Documento.Ld_Documento_Id like '0004' SELECT Serie.* FROM Serie INNER JOIN Serie_Documento ON Serie_Documento.Sr_Cve_Serie = Serie.Sr_Cve_Serie AND Serie_Documento.Pr_Cve_Producto = Serie.Pr_Cve_Producto WHERE Serie_Documento.Sd_Tabla = 'FISICO' AND Serie_Documento.Sd_Documento = '01-0000001' AND Serie_Documento.Sd_Documento_Id like '0004' AND Serie_Documento.Pr_Cve_Producto like '0000000004' SELECT Lote.*, Lote_Documento.Lt_Cantidad_Control_1, Lote_Documento.Lt_Cantidad_Control_2 FROM Lote_Documento INNER JOIN Producto on Producto.Pr_Cve_Producto = Lote_Documento.Pr_Cve_Producto INNER JOIN Lote ON Lote_Documento.Lt_Cve_Lote = Lote.Lt_Cve_Lote AND Lote.Pr_Cve_Producto = (CASE Producto.Pr_Equivalencia_Producto WHEN '' THEN Producto.Pr_Cve_Producto ELSE Producto.Pr_Equivalencia_Producto END) WHERE Lote_Documento.Ld_Tabla = 'FISICO' AND Lote_Documento.Ld_Documento = '01-0000001' AND Lote_Documento.Ld_Documento_Id like '0003' SELECT Serie.* FROM Serie INNER JOIN Serie_Documento ON Serie_Documento.Sr_Cve_Serie = Serie.Sr_Cve_Serie AND Serie_Documento.Pr_Cve_Producto = Serie.Pr_Cve_Producto WHERE Serie_Documento.Sd_Tabla = 'FISICO' AND Serie_Documento.Sd_Documento = '01-0000001' AND Serie_Documento.Sd_Documento_Id like '0003' AND Serie_Documento.Pr_Cve_Producto like '0000000003' SELECT Lote.*, Lote_Documento.Lt_Cantidad_Control_1, Lote_Documento.Lt_Cantidad_Control_2 FROM Lote_Documento INNER JOIN Producto on Producto.Pr_Cve_Producto = Lote_Documento.Pr_Cve_Producto INNER JOIN Lote ON Lote_Documento.Lt_Cve_Lote = Lote.Lt_Cve_Lote AND Lote.Pr_Cve_Producto = (CASE Producto.Pr_Equivalencia_Producto WHEN '' THEN Producto.Pr_Cve_Producto ELSE Producto.Pr_Equivalencia_Producto END) WHERE Lote_Documento.Ld_Tabla = 'FISICO' AND Lote_Documento.Ld_Documento = '01-0000001' AND Lote_Documento.Ld_Documento_Id like '0002' SELECT Serie.* FROM Serie INNER JOIN Serie_Documento ON Serie_Documento.Sr_Cve_Serie = Serie.Sr_Cve_Serie AND Serie_Documento.Pr_Cve_Producto = Serie.Pr_Cve_Producto WHERE Serie_Documento.Sd_Tabla = 'FISICO' AND Serie_Documento.Sd_Documento = '01-0000001' AND Serie_Documento.Sd_Documento_Id like '0002' AND Serie_Documento.Pr_Cve_Producto like '0000000002' SELECT Lote.*, Lote_Documento.Lt_Cantidad_Control_1, Lote_Documento.Lt_Cantidad_Control_2 FROM Lote_Documento INNER JOIN Producto on Producto.Pr_Cve_Producto = Lote_Documento.Pr_Cve_Producto INNER JOIN Lote ON Lote_Documento.Lt_Cve_Lote = Lote.Lt_Cve_Lote AND Lote.Pr_Cve_Producto = (CASE Producto.Pr_Equivalencia_Producto WHEN '' THEN Producto.Pr_Cve_Producto ELSE Producto.Pr_Equivalencia_Producto END) WHERE Lote_Documento.Ld_Tabla = 'FISICO' AND Lote_Documento.Ld_Documento = '01-0000001' AND Lote_Documento.Ld_Documento_Id like '0001' SELECT Serie.* FROM Serie INNER JOIN Serie_Documento ON Serie_Documento.Sr_Cve_Serie = Serie.Sr_Cve_Serie AND Serie_Documento.Pr_Cve_Producto = Serie.Pr_Cve_Producto WHERE Serie_Documento.Sd_Tabla = 'FISICO' AND Serie_Documento.Sd_Documento = '01-0000001' AND Serie_Documento.Sd_Documento_Id like '0001' AND Serie_Documento.Pr_Cve_Producto like '0000000001' SELECT COUNT( DISTINCT Pd_Cve_Plantilla_Documento) as Docs FROM Plantilla_Documento WHERE Pd_Cve_Plantilla_Documento IN (SELECT Pd_Cve_Plantilla_Documento FROM Plantilla_Documento_Transaccion WHERE Pdt_Transaccion = 'MV002') SELECT Al_Controlar_Ubicacion as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' SELECT Al_Controlar_Serie as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' SELECT Al_Controlar_Lote as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' SELECT Al_Controlar_Color as bRes FROM Almacen WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001'