SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013118' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013117' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' INSERT INTO Fisico (Fi_Folio, Fi_ID, Fi_Auto, Fi_Fecha, Sc_Cve_Sucursal, Al_Cve_Almacen, Pr_Cve_Producto, Tl_Cve_Talla, Cl_Cve_Color, Fi_Comentario, Fi_Cantidad_1, Fi_Unidad_1, Fi_Cantidad_Control_1, Fi_Unidad_Control_1, Fi_Cantidad_Control_2, Fi_Unidad_Control_2, Fi_Cantidad_Costo, Fi_Unidad_Costo, Fi_Costo, Fi_Costo_Importe, Oper_Alta, Fecha_Alta, Oper_Ult_Modif, Fecha_Ult_Modif) VALUES('01-0000002', '0825', 'NO' , '2019-08-16', '0001', '0001', '0000013117', '00', '00', 'inventario papeleria', 1, 'PZ', 1, 'PZ', 1, 'PZ', 1, 'PZ', 0, 0, 'CONFIG', '2019-08-16 13:07:12', 'CONFIG', '2019-08-16 13:07:12') SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_FACTOR_CONVERSION' SELECT Ex_Costo_Promedio FROM Existencia WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' AND Pr_Cve_Producto = '0000013117' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' SELECT Pr_Tipo_Costeo FROM Producto WHERE Pr_Cve_Producto = '0000013117' SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013117' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013116' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' INSERT INTO Fisico (Fi_Folio, Fi_ID, Fi_Auto, Fi_Fecha, Sc_Cve_Sucursal, Al_Cve_Almacen, Pr_Cve_Producto, Tl_Cve_Talla, Cl_Cve_Color, Fi_Comentario, Fi_Cantidad_1, Fi_Unidad_1, Fi_Cantidad_Control_1, Fi_Unidad_Control_1, Fi_Cantidad_Control_2, Fi_Unidad_Control_2, Fi_Cantidad_Costo, Fi_Unidad_Costo, Fi_Costo, Fi_Costo_Importe, Oper_Alta, Fecha_Alta, Oper_Ult_Modif, Fecha_Ult_Modif) VALUES('01-0000002', '0824', 'NO' , '2019-08-16', '0001', '0001', '0000013116', '00', '00', 'inventario papeleria', 5, 'PZ', 5, 'PZ', 5, 'PZ', 5, 'PZ', 0, 0, 'CONFIG', '2019-08-16 13:07:12', 'CONFIG', '2019-08-16 13:07:12') SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_FACTOR_CONVERSION' SELECT Ex_Costo_Promedio FROM Existencia WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' AND Pr_Cve_Producto = '0000013116' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' SELECT Pr_Tipo_Costeo FROM Producto WHERE Pr_Cve_Producto = '0000013116' SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013116' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013115' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' INSERT INTO Fisico (Fi_Folio, Fi_ID, Fi_Auto, Fi_Fecha, Sc_Cve_Sucursal, Al_Cve_Almacen, Pr_Cve_Producto, Tl_Cve_Talla, Cl_Cve_Color, Fi_Comentario, Fi_Cantidad_1, Fi_Unidad_1, Fi_Cantidad_Control_1, Fi_Unidad_Control_1, Fi_Cantidad_Control_2, Fi_Unidad_Control_2, Fi_Cantidad_Costo, Fi_Unidad_Costo, Fi_Costo, Fi_Costo_Importe, Oper_Alta, Fecha_Alta, Oper_Ult_Modif, Fecha_Ult_Modif) VALUES('01-0000002', '0823', 'NO' , '2019-08-16', '0001', '0001', '0000013115', '00', '00', 'inventario papeleria', 5, 'PZ', 5, 'PZ', 5, 'PZ', 5, 'PZ', 0, 0, 'CONFIG', '2019-08-16 13:07:12', 'CONFIG', '2019-08-16 13:07:12') SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_FACTOR_CONVERSION' SELECT Ex_Costo_Promedio FROM Existencia WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' AND Pr_Cve_Producto = '0000013115' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' SELECT Pr_Tipo_Costeo FROM Producto WHERE Pr_Cve_Producto = '0000013115' SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013115' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013114' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' INSERT INTO Fisico (Fi_Folio, Fi_ID, Fi_Auto, Fi_Fecha, Sc_Cve_Sucursal, Al_Cve_Almacen, Pr_Cve_Producto, Tl_Cve_Talla, Cl_Cve_Color, Fi_Comentario, Fi_Cantidad_1, Fi_Unidad_1, Fi_Cantidad_Control_1, Fi_Unidad_Control_1, Fi_Cantidad_Control_2, Fi_Unidad_Control_2, Fi_Cantidad_Costo, Fi_Unidad_Costo, Fi_Costo, Fi_Costo_Importe, Oper_Alta, Fecha_Alta, Oper_Ult_Modif, Fecha_Ult_Modif) VALUES('01-0000002', '0822', 'NO' , '2019-08-16', '0001', '0001', '0000013114', '00', '00', 'inventario papeleria', 5, 'PZ', 5, 'PZ', 5, 'PZ', 5, 'PZ', 0, 0, 'CONFIG', '2019-08-16 13:07:12', 'CONFIG', '2019-08-16 13:07:12') SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_FACTOR_CONVERSION' SELECT Ex_Costo_Promedio FROM Existencia WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' AND Pr_Cve_Producto = '0000013114' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' SELECT Pr_Tipo_Costeo FROM Producto WHERE Pr_Cve_Producto = '0000013114' SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013114' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013113' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' INSERT INTO Fisico (Fi_Folio, Fi_ID, Fi_Auto, Fi_Fecha, Sc_Cve_Sucursal, Al_Cve_Almacen, Pr_Cve_Producto, Tl_Cve_Talla, Cl_Cve_Color, Fi_Comentario, Fi_Cantidad_1, Fi_Unidad_1, Fi_Cantidad_Control_1, Fi_Unidad_Control_1, Fi_Cantidad_Control_2, Fi_Unidad_Control_2, Fi_Cantidad_Costo, Fi_Unidad_Costo, Fi_Costo, Fi_Costo_Importe, Oper_Alta, Fecha_Alta, Oper_Ult_Modif, Fecha_Ult_Modif) VALUES('01-0000002', '0821', 'NO' , '2019-08-16', '0001', '0001', '0000013113', '00', '00', 'inventario papeleria', 3, 'PZ', 3, 'PZ', 3, 'PZ', 3, 'PZ', 0, 0, 'CONFIG', '2019-08-16 13:07:12', 'CONFIG', '2019-08-16 13:07:12') SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_FACTOR_CONVERSION' SELECT Ex_Costo_Promedio FROM Existencia WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' AND Pr_Cve_Producto = '0000013113' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' SELECT Pr_Tipo_Costeo FROM Producto WHERE Pr_Cve_Producto = '0000013113' SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013113' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013112' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' INSERT INTO Fisico (Fi_Folio, Fi_ID, Fi_Auto, Fi_Fecha, Sc_Cve_Sucursal, Al_Cve_Almacen, Pr_Cve_Producto, Tl_Cve_Talla, Cl_Cve_Color, Fi_Comentario, Fi_Cantidad_1, Fi_Unidad_1, Fi_Cantidad_Control_1, Fi_Unidad_Control_1, Fi_Cantidad_Control_2, Fi_Unidad_Control_2, Fi_Cantidad_Costo, Fi_Unidad_Costo, Fi_Costo, Fi_Costo_Importe, Oper_Alta, Fecha_Alta, Oper_Ult_Modif, Fecha_Ult_Modif) VALUES('01-0000002', '0820', 'NO' , '2019-08-16', '0001', '0001', '0000013112', '00', '00', 'inventario papeleria', 5, 'PZ', 5, 'PZ', 5, 'PZ', 5, 'PZ', 0, 0, 'CONFIG', '2019-08-16 13:07:12', 'CONFIG', '2019-08-16 13:07:12') SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_FACTOR_CONVERSION' SELECT Ex_Costo_Promedio FROM Existencia WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' AND Pr_Cve_Producto = '0000013112' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' SELECT Pr_Tipo_Costeo FROM Producto WHERE Pr_Cve_Producto = '0000013112' SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013112' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013111' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' INSERT INTO Fisico (Fi_Folio, Fi_ID, Fi_Auto, Fi_Fecha, Sc_Cve_Sucursal, Al_Cve_Almacen, Pr_Cve_Producto, Tl_Cve_Talla, Cl_Cve_Color, Fi_Comentario, Fi_Cantidad_1, Fi_Unidad_1, Fi_Cantidad_Control_1, Fi_Unidad_Control_1, Fi_Cantidad_Control_2, Fi_Unidad_Control_2, Fi_Cantidad_Costo, Fi_Unidad_Costo, Fi_Costo, Fi_Costo_Importe, Oper_Alta, Fecha_Alta, Oper_Ult_Modif, Fecha_Ult_Modif) VALUES('01-0000002', '0819', 'NO' , '2019-08-16', '0001', '0001', '0000013111', '00', '00', 'inventario papeleria', 5, 'PZ', 5, 'PZ', 5, 'PZ', 5, 'PZ', 0, 0, 'CONFIG', '2019-08-16 13:07:12', 'CONFIG', '2019-08-16 13:07:12') SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_FACTOR_CONVERSION' SELECT Ex_Costo_Promedio FROM Existencia WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' AND Pr_Cve_Producto = '0000013111' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' SELECT Pr_Tipo_Costeo FROM Producto WHERE Pr_Cve_Producto = '0000013111' SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013111' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013110' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' INSERT INTO Fisico (Fi_Folio, Fi_ID, Fi_Auto, Fi_Fecha, Sc_Cve_Sucursal, Al_Cve_Almacen, Pr_Cve_Producto, Tl_Cve_Talla, Cl_Cve_Color, Fi_Comentario, Fi_Cantidad_1, Fi_Unidad_1, Fi_Cantidad_Control_1, Fi_Unidad_Control_1, Fi_Cantidad_Control_2, Fi_Unidad_Control_2, Fi_Cantidad_Costo, Fi_Unidad_Costo, Fi_Costo, Fi_Costo_Importe, Oper_Alta, Fecha_Alta, Oper_Ult_Modif, Fecha_Ult_Modif) VALUES('01-0000002', '0818', 'NO' , '2019-08-16', '0001', '0001', '0000013110', '00', '00', 'inventario papeleria', 5, 'PZ', 5, 'PZ', 5, 'PZ', 5, 'PZ', 0, 0, 'CONFIG', '2019-08-16 13:07:12', 'CONFIG', '2019-08-16 13:07:12') SELECT Cf_Tipo, Cf_Descripcion, Cf_Valor FROM Configuracion WHERE Cf_Variable = 'GEN_FORMATO_FACTOR_CONVERSION' SELECT Ex_Costo_Promedio FROM Existencia WHERE Sc_Cve_Sucursal = '0001' AND Al_Cve_Almacen = '0001' AND Pr_Cve_Producto = '0000013110' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00' SELECT Pr_Tipo_Costeo FROM Producto WHERE Pr_Cve_Producto = '0000013110' SELECT ISNULL(SUM(Fi_Cantidad_1),0) as Cantidad, Sr_Cve_Serie as Lote FROM ZBG_Fisico WHERE Pr_Cve_Producto = '0000013110' and Fi_Folio = '0000000008' AND ZBG_Fisico.Es_Cve_Estado <> 'CA'GROUP BY Sr_Cve_Serie SELECT Pr_Cve_Producto FROM Producto_Talla_Color WHERE Pr_Cve_Producto = '0000013109' AND Tl_Cve_Talla = '00' AND Cl_Cve_Color = '00'