Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Para generar el reporte de consumo de proveedores del exterior, solamente se debe modificar la fecha según el mes a generar el reporte y luego ejecutar directamente en BAPY PROD.

La linea a modificar esta comentada.

Ej.: Si el reporte de consumo de proveedores del exterior a generar es para el mes de septiembre, entonces la fecha debe definirse between '01092022' and '01102022' y así sucesivamente para el resto de los meses.

--Parametros
--1 &Mes_solicitado_ddmmyyyy: Debe ser el primer dia del Periodo deseado en formato dia, mes y a�o ej: 01072021.
--2 &HastaInicioSiguienteMes_ddmmyyyy: Debe ser el primer dia del Siguiente Mes al Periodo deseado en formato dia, mes y a�o
-- ej: Si el periodo deseado es Julio, entonces corresponde a Agosto 01082021.
SELECT A.NRO_COMERCIO,A.CAN_CODE,A.MCC
,CASE A.MCC
  WHEN 4899 THEN 'Cable and other pay television (previously Cable Services)'
WHEN 5815 THEN 'Digital Goods: Media, Books, Movies, Music'
WHEN 5816 THEN 'Digital Goods: Games'
WHEN 5960 THEN 'Direct Marketing- Insurance Service'
WHEN 5962 THEN 'Direct Marketing � Travel Related Arrangements Services'
WHEN 5964 THEN 'Direct Marketing � Catalog Merchant'
WHEN 5965 THEN 'Direct Marketing � Catalog and Catalog and Retail Merchant'
WHEN 5966 THEN 'Direct Marketing- Outbound Telemarketing Merchant'
WHEN 5967 THEN 'Direct Marketing � Inbound Teleservices Merchant'
WHEN 5968 THEN 'Direct Marketing � Continuity/Subscription Merchant'
WHEN 5969 THEN 'Direct Marketing � Not Elsewhere Classified'
WHEN 7372 THEN 'Computer Programming, Integrated Systems Design and Data Processing Services'
WHEN 7801 THEN 'Government-Licensed On-Line Casinos (On-Line Gambling)'
WHEN 7995 THEN 'Betting (including Lottery Tickets, Casino Gaming Chips, Off-track Betting and Wagers at Race Tracks)'
WHEN 8299 THEN 'Schools and Educational Services ( Not Elsewhere Classified)'
ELSE
  'NO DEFINIDO'
END MCC_DESCRIPCION
,CASE A.MCC
WHEN 4899 THEN 'c) Televisi�n por cable y satelital.'
WHEN 5815 THEN 'a) Distribuci�n digital de contenido multimedia (juegos, pel�culas, m�sica, videos, entre otros).'
WHEN 5816 THEN 'a) Distribuci�n digital de contenido multimedia (juegos, pel�culas, m�sica, videos, entre otros).'
WHEN 5960 THEN 'd) Marketing y publicidad.'
WHEN 5962 THEN 'd) Marketing y publicidad.'
WHEN 5964 THEN 'd) Marketing y publicidad.'
WHEN 5965 THEN 'd) Marketing y publicidad.'
WHEN 5966 THEN 'd) Marketing y publicidad.'
WHEN 5967 THEN 'd) Marketing y publicidad.'
WHEN 5968 THEN 'd) Marketing y publicidad.'
WHEN 5969 THEN 'd) Marketing y publicidad.'
WHEN 7372 THEN 'b) Procesamiento y almacenamiento de datos en general, provisi�n, desarrollo o actualizaci�n de softwares o aplicativos en general.'
WHEN 7801 THEN 'e) Juegos de suerte, azar, apuestas y similares.'
WHEN 7995 THEN 'e) Juegos de suerte, azar, apuestas y similares.'
WHEN 8299 THEN 'f) Servicios educativos prestados a trav�s de plataformas tecnol�gicas.'
ELSE
  'NO DEFINIDO'
END PUNTO_CORREO
,A.TX_INTERNA,A.FECHA,A.NRO_AUTORIZACION,A.IMPORTE USD,ROUND(A.IMPORTE*A.COTIZACION) IMPORTE,A.CUOTAS,A.RES_INTERNO,A.ACQUIRING_INSTITUTION RED
FROM CREDITOPY.LOG_TRANSACC_CR_HIST A
WHERE A.ACQUIRING_INSTITUTION=490000
  AND A.MOVEXTFCH BETWEEN to_date('01092022','ddmmyyyy') AND to_date('01102022','ddmmyyyy') --********Fecha a modificar
  AND A.MCC IN (4899,5815,5816,5960,5962,
                5964,5965,5966,5967,5968,
                5969,7372,7801,7995,8299
                )
ORDER BY A.FECHA,A.MOVEXTFCH;
  • No labels