INSERT INTO Producto (Pr_Cve_Producto,Pr_Barras,Pv_Cve_Proveedor,Pr_Descripcion,Pr_Descripcion_Corta,Pr_Unidad_Costo,Pr_Costo_Estandar,Cm_Cve_Comprador,Pr_Unidad_Compra,Pr_Unidad_Venta,Pr_Unidad_Control_1,Pr_Unidad_Control_2,Pr_Clave_Corta,Pr_Unidad_Transferencia,Pr_Codigo_Sat,Ct_Cve_Categoria,Dp_Cve_Departamento,Mr_Cve_Marca,Ln_Cve_Linea,Fm_Cve_Familia,Sf_Cve_SubFamilia,Pr_Equivalencia_Inventario,Pr_Equivalencia_Producto,Pr_Venta_Consumo,Pr_Tipo_Producto,Pr_Tipo_Costeo,Pr_Maneja_Talla,Pr_Maneja_Color, Pr_Imagen,Pr_Moneda,Pr_UserDef_1,Pr_UserDef_2,Pr_UserDef_3,Pr_UserDef_4,Pr_UserDef_5,Pr_UserDef_6,Oper_Alta,Fecha_Alta,Oper_Ult_Modif,Fecha_Ult_Modif) VALUES ('0000001434','1343004000','0000000003','SISTEMA TICLA PERFIL LATERAL 6.00MT MOD SCSL04','TICLA PERFIL LAT 6MT SCSL04','PZA',$874.45,'0000','PZA','PZA','PZA','PZA','001434','PZA','30171501','0000', '0000', '0000', '0000', '0000', '0000', 'NO','','VE','01','01','NO','NO','NO','MXN','','',0,0,'2026-04-17','2026-04-17','CONFIG','2026-04-17','CONFIG','2026-04-17') SELECT Pr_Descripcion AS Nombre FROM Producto WHERE Pr_Clave_Corta = '001434' SELECT Pr_Descripcion AS Nombre FROM Producto WHERE Pr_Cve_Producto = '0000001434' SELECT GetDate() as Fecha SELECT GetDate() as Fecha SELECT GetDate() as Fecha SELECT GetDate() as Fecha SELECT col.Name as Columna, typ.Name as Tipo FROM syscolumns col INNER JOIN sysobjects obj on col.id = obj.id and obj.type = 'U' INNER JOIN systypes typ on typ.xusertype = col.xtype LEFT OUTER JOIN syscomments com on com.id = col.cdefault WHERE obj.Name = 'Producto' AND col.Name not in('Pr_Cve_Producto','Pr_Barras','Pv_Cve_Proveedor','Pr_Descripcion','Pr_Descripcion_Corta','Pr_Unidad_Costo','Pr_Costo_Estandar','Cm_Cve_Comprador','Pr_Unidad_Compra','Pr_Unidad_Venta','Pr_Unidad_Control_1','Pr_Unidad_Control_2','Pr_Clave_Corta','Pr_Unidad_Transferencia','Pr_Codigo_Sat','Ct_Cve_Categoria','Dp_Cve_Departamento','Mr_Cve_Marca','Ln_Cve_Linea','Fm_Cve_Familia','Sf_Cve_SubFamilia','Pr_Equivalencia_Inventario','Pr_Equivalencia_Producto','Pr_Venta_Consumo','Pr_Tipo_Producto','Pr_Tipo_Costeo','Pr_Maneja_Talla','Pr_Maneja_Color', 'Pr_Imagen','Pr_Moneda') AND CAST(ISNULL(com.Text,'') as nvarchar(100)) = '' and col.isnullable = 0 SELECT GetDate() as Fecha *** BEGIN TRANSACION *** SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_TALLA' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_COLOR' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FIN_MONEDA_LOCAL' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_SUBFAMILIA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_FAMILIA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_LINEA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_MARCA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_DEPARTAMENTO_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_CATEGORIA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_COMPRADOR' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_PRODUCTO' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_PR_CLAVE_CORTA' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_PROVEEDOR' INSERT INTO Producto (Pr_Cve_Producto,Pr_Barras,Pv_Cve_Proveedor,Pr_Descripcion,Pr_Descripcion_Corta,Pr_Unidad_Costo,Pr_Costo_Estandar,Cm_Cve_Comprador,Pr_Unidad_Compra,Pr_Unidad_Venta,Pr_Unidad_Control_1,Pr_Unidad_Control_2,Pr_Clave_Corta,Pr_Unidad_Transferencia,Pr_Codigo_Sat,Ct_Cve_Categoria,Dp_Cve_Departamento,Mr_Cve_Marca,Ln_Cve_Linea,Fm_Cve_Familia,Sf_Cve_SubFamilia,Pr_Equivalencia_Inventario,Pr_Equivalencia_Producto,Pr_Venta_Consumo,Pr_Tipo_Producto,Pr_Tipo_Costeo,Pr_Maneja_Talla,Pr_Maneja_Color, Pr_Imagen,Pr_Moneda,Pr_UserDef_1,Pr_UserDef_2,Pr_UserDef_3,Pr_UserDef_4,Pr_UserDef_5,Pr_UserDef_6,Oper_Alta,Fecha_Alta,Oper_Ult_Modif,Fecha_Ult_Modif) VALUES ('0000001434','1343004000','0000000003','SISTEMA TICLA PERFIL LATERAL 6.00MT MOD SCSL04','TICLA PERFIL LAT 6MT SCSL04','PZA',$874.45,'0000','PZA','PZA','PZA','PZA','001434','PZA','30171501','0000', '0000', '0000', '0000', '0000', '0000', 'NO','','VE','01','01','NO','NO','NO','MXN','','',0,0,'2026-04-17','2026-04-17','CONFIG','2026-04-17','CONFIG','2026-04-17') SELECT Pr_Descripcion AS Nombre FROM Producto WHERE Pr_Clave_Corta = '001434' SELECT Pr_Descripcion AS Nombre FROM Producto WHERE Pr_Cve_Producto = '0000001434' SELECT GetDate() as Fecha SELECT GetDate() as Fecha SELECT GetDate() as Fecha SELECT GetDate() as Fecha SELECT col.Name as Columna, typ.Name as Tipo FROM syscolumns col INNER JOIN sysobjects obj on col.id = obj.id and obj.type = 'U' INNER JOIN systypes typ on typ.xusertype = col.xtype LEFT OUTER JOIN syscomments com on com.id = col.cdefault WHERE obj.Name = 'Producto' AND col.Name not in('Pr_Cve_Producto','Pr_Barras','Pv_Cve_Proveedor','Pr_Descripcion','Pr_Descripcion_Corta','Pr_Unidad_Costo','Pr_Costo_Estandar','Cm_Cve_Comprador','Pr_Unidad_Compra','Pr_Unidad_Venta','Pr_Unidad_Control_1','Pr_Unidad_Control_2','Pr_Clave_Corta','Pr_Unidad_Transferencia','Pr_Codigo_Sat','Ct_Cve_Categoria','Dp_Cve_Departamento','Mr_Cve_Marca','Ln_Cve_Linea','Fm_Cve_Familia','Sf_Cve_SubFamilia','Pr_Equivalencia_Inventario','Pr_Equivalencia_Producto','Pr_Venta_Consumo','Pr_Tipo_Producto','Pr_Tipo_Costeo','Pr_Maneja_Talla','Pr_Maneja_Color', 'Pr_Imagen','Pr_Moneda') AND CAST(ISNULL(com.Text,'') as nvarchar(100)) = '' and col.isnullable = 0 SELECT GetDate() as Fecha *** BEGIN TRANSACION *** SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_TALLA' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_COLOR' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FIN_MONEDA_LOCAL' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_SUBFAMILIA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_FAMILIA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_LINEA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_MARCA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_DEPARTAMENTO_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'CAT_CATEGORIA_DEFAULT' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_COMPRADOR' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_PRODUCTO' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_PR_CLAVE_CORTA' SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'FTO_PROVEEDOR' SELECT Pn_Cve_Plantilla_Notificacion, Pn_Descripcion, Pn_Proximo_Envio, Pn_Repetir_Tipo, Pn_Repetir_Valor FROM Plantilla_Notificacion WHERE Pn_Proximo_Envio <= GetDate() AND Es_Cve_Estado = 'AC' AND ((( Pn_Aplica_Domingo = 'SI' OR Pn_Aplica_Lunes = 'SI' OR Pn_Aplica_Martes = 'SI' OR Pn_Aplica_Miercoles = 'SI' OR Pn_Aplica_Jueves = 'SI' OR Pn_Aplica_Viernes = 'SI' OR Pn_Aplica_Sabado = 'SI') AND Pn_Repetir_Tipo IN ('dd','mi','hh') ) OR Pn_Repetir_Tipo IN ('ww','mm')) 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 = 'CA011') 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 = 'CA011') SELECT * FROM Unidad WHERE Un_Cve_Unidad = 'MT'