Merhaba Dostlar,
Web de aradım bulamadım, sonrasında kendim yazmak durumunda kaldım, Logo Tiger üzerinde Malzeme (Sınıfı) Satış fiyatları ve Satınalma Fiyatları sorgusu aşağıdaki gibidir,
Kullanmak isteyen buyursun;
CREATE VIEW ERD_MALZEME_SATIS_SATINALMA AS
SELECT
CASE PRCLIST.PTYPE WHEN 2 THEN 'SATIS' WHEN 1 THEN 'SATINALMA' END AS 'KART_TIPI' ,
CASE PRCLIST.ACTIVE WHEN 1 THEN 'KULLANIM DISI' ELSE 'KULLANIMDA' END AS 'KULLANIM_DURUM',
CASE WHEN PRCLIST.CLIENTCODE='' THEN 'GENEL' ELSE 'OZEL'END AS 'TIPI' ,
PRCLIST.CLIENTCODE AS 'CARI',
PRCLIST.CODE AS 'FIS_NO',
ITEMS.CODE AS 'MALZEME_SMK',
ITEMS.NAME AS 'MALZEME_METNI',
PRCLIST.PRICE AS 'TUTAR',
PARABIRIMI=(SELECT DBO.Fn_Currenclist(PRCLIST.CURRENCY)),
PRCLIST.BEGDATE AS 'GECERLILIK_BASLANGIC',
PRCLIST.ENDDATE AS 'GECERLILIK_BITIS',
PRCLIST.CAPIBLOCK_CREADEDDATE AS 'KART_OLUSTURMA_TARIHI'
FROM LG_001_PRCLIST PRCLIST
LEFT JOIN LG_001_ITEMS ITEMS ON PRCLIST.CARDREF=ITEMS.LOGICALREF
LEFT JOIN LG_001_UNITSETL UNITSETL ON PRCLIST.UOMREF=UNITSETL.LOGICALREF
LEFT JOIN LG_001_SRVCARD SRVCARD ON PRCLIST.CARDREF=SRVCARD.LOGICALREF
LEFT JOIN LG_001_PAYPLANS PAYPLANS ON PRCLIST.PAYPLANREF=PAYPLANS.LOGICALREF