Motores del proyecto Forseti











 |
|
Catalogo de productos y precios con politicas e IVA desglosado |
Documentación del reporte "Catalogo de productos y precios con politicas e IVA desglosado"
|
Estructura del reporte |
Datos del Cabecero |
Clave |
Descripción |
Base |
Módulo |
|
11001 |
Catalogo de productos y precios con politicas e IVA desglosado |
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,
round(Precio/1.16,2) as 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,
round(Precio2/1.16,2) as 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,
round(Precio3/1.16,2) as 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,
round(Precio4/1.16,2) as 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 |
|
|