Motores del proyecto Forseti











 |
|
Catalogo de productos y precios con politicas |
Documentación del reporte "Catalogo de productos y precios con politicas"
|
Estructura del reporte |
Datos del Cabecero |
Clave |
Descripción |
Base |
Módulo |
|
11000 |
Catalogo de productos y precios con politicas |
VENTAS |
COTIZACIONES |
|
|
Datos del Nivel 1 |
Nombre de Columna |
Tipo de Dato |
id_prod |
STRING |
descripcion |
STRING |
un |
STRING |
dh1 |
STRING |
precio |
DECIMAL |
dh2 |
STRING |
precio2 |
DECIMAL |
dh3 |
STRING |
precio3 |
DECIMAL |
dh4 |
STRING |
precio4 |
DECIMAL |
Código fuente |
select ID_Prod, Descripcion, ID_UnidadSalida as UN,
case when ( select count(*) from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod ) < 1
then ''
else case when ( select CantDesde from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) <> 0 and ( select CantHasta from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) <> 0
then cast((select CantDesde from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) as varchar) || ' - ' || cast((select CantHasta from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) as varchar)
else ''
end
end as DH1, Precio,
case when ( select count(*) from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod ) < 1
then ''
else case when ( select CantDesde2 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) <> 0 and ( select CantHasta2 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) <> 0
then cast((select CantDesde2 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) as varchar) || ' - ' || cast((select CantHasta2 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) as varchar)
else ''
end
end as DH2, Precio2,
case when ( select count(*) from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod ) < 1
then ''
else case when ( select CantDesde3 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) <> 0 and ( select CantHasta3 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) <> 0
then cast((select CantDesde3 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) as varchar) || ' - ' || cast((select CantHasta3 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) as varchar)
else ''
end
end as DH3, Precio3,
case when ( select count(*) from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod ) < 1
then ''
else case when ( select CantDesde4 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) <> 0 and ( select CantHasta4 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) <> 0
then cast((select CantDesde4 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) as varchar) || ' - ' || cast((select CantHasta4 from TBL_POLITICAS_INVSERV_CANT_VS_PRECIO where ID_Prod = i.ID_Prod) as varchar)
else ''
end
end as DH4, Precio4
from TBL_INVSERV_INVENTARIOS i
where NoSeVende = '0' and Status = 'V'
|
|
|
|
|
Páginas relacionadas con este tema |
Carga de reportes y gráficas Interfaz de la carga de reportes y gráficas en el CEF y SAF |
|
|