package queries

const GetProductDetail = `
DECLARE @ProductCode VARCHAR(30) = @p1;

SELECT 
    ProductCode,
    '' AS BOS7,
    ProductDescription,
    Product.ProductAtt42,
    Product.ProductAtt42Desc AS URUN_ILK_GRUBU,
    Product.ProductAtt01,
    Product.ProductAtt01Desc AS URUN_ANA_GRUBU,
    Product.ProductAtt02,
    Product.ProductAtt02Desc AS URUN_ALT_GRUBU,
    Product.ProductAtt41,
    Product.ProductAtt41Desc AS ICERIK,
    Product.ProductAtt10,
    Product.ProductAtt10Desc AS MARKA,
    Product.ProductAtt11,
    Product.ProductAtt11Desc AS DROP_,
    Product.ProductAtt29,
    Product.ProductAtt29Desc AS KARISIM,
    Product.ProductAtt45,
    Product.ProductAtt45Desc AS ASKILI_YAN,
    Product.ProductAtt44,
    Product.ProductAtt44Desc AS KATEGORI,
    Product.ProductAtt38,
    Product.ProductAtt38Desc AS FIT1,
    Product.ProductAtt39,
    Product.ProductAtt39Desc AS FIT2
FROM ProductFilterWithDescription('TR') AS Product
WHERE ProductAtt42 IN ('SERI','AKSESUAR')
  AND IsBlocked = 0
  AND ProductCode = @p1;
`
