![]() |
Stoklar F10'da giriş fiyatı |
Post Reply ![]() |
Author | |
mcitp ![]() Senior Member ![]() Joined: 12 Ekim 2013 Status: Offline Points: 131 |
![]() ![]() ![]() ![]() ![]() Posted: 06 Mart 2019 at 09:13 |
merhaba arkadaşlar stoklar F10 da giriş fiyatları listeliyorum ama alış fiyatlarını KDV hariç getiriyor alış fiyatını KDV dahil olarak nasıl getirebiliriz (013666) nolu listede son giriş fiyatını KDV dahil gösteriyor bunun gibi nasıl yapabiliriz.
Select TOP 100 PERCENT S.sto_RECno AS [msg_S_0088] /* KAYIT NO */ , S.sto_kod AS [msg_S_0078] /* KODU */, S.sto_isim AS [msg_S_0870] /* ADI */, sto_kisa_ismi AS [msg_S_0004] /* KISA İSMİ */ , dbo.fn_StokSatisFiyati(S.sto_kod,1,0) [Satış_Fiyatı], dbo.fn_DovizIsmi(dbo.fn_StokFiyatDovizCinsi(sto_kod, 1, 0)) AS [msg_S_1173], /* DVZ */ S.sto_standartmaliyet As [Standart_Maliyet], ISNULL((Select Top 1 (((sth_tutar + sth_masraf_vergi) - (sth_iskonto1 + sth_iskonto2 + sth_iskonto3 + sth_iskonto4 + sth_iskonto5 + sth_iskonto6) + (sth_masraf1 +sth_masraf2 +sth_masraf3 +sth_masraf4)) / sth_miktar) From STOK_HAREKETLERI Where sth_tip=0 and sth_evraktip=3 and sth_stok_kod=S.sto_kod and sth_normal_iade=0 Order by sth_RECno desc),0) As [Son_Alış_Fiyatı], dbo.fn_EldekiMiktar(sto_kod) AS [msg_S_0165] /* MİKTAR */ From STOKLAR S Order by S.sto_isim |
|
![]() |
|
scorpion_4435 ![]() Groupie ![]() Joined: 17 Kasım 2009 Location: İzmir Status: Offline Points: 74 |
![]() ![]() ![]() ![]() ![]() |
Mrblar
aşağıdaki sorguyu kullanabilirsiniz Select TOP 100 PERCENT S.sto_RECno AS [msg_S_0088] /* KAYIT NO */ , S.sto_kod AS [msg_S_0078] /* KODU */, S.sto_isim AS [msg_S_0870] /* ADI */, sto_kisa_ismi AS [msg_S_0004] /* KISA İSMİ */ , dbo.fn_StokSatisFiyati(S.sto_kod,1,0) [Satış_Fiyatı], dbo.fn_DovizIsmi(dbo.fn_StokFiyatDovizCinsi(sto_kod, 1, 0)) AS [msg_S_1173], /* DVZ */ S.sto_standartmaliyet As [Standart_Maliyet], ISNULL((Select Top 1 (((sth_tutar + sth_masraf_vergi + sth_vergi) - (sth_iskonto1 + sth_iskonto2 + sth_iskonto3 + sth_iskonto4 + sth_iskonto5 + sth_iskonto6) + (sth_masraf1 +sth_masraf2 +sth_masraf3 +sth_masraf4)) / sth_miktar) From STOK_HAREKETLERI Where sth_tip=0 and sth_evraktip=3 and sth_stok_kod=S.sto_kod and sth_normal_iade=0 Order by sth_RECno desc),0) As [Son_Alış_Fiyatı], dbo.fn_EldekiMiktar(sto_kod) AS [msg_S_0165] /* MİKTAR */ From STOKLAR S Order by S.sto_isim |
|
![]() |
|
mcitp ![]() Senior Member ![]() Joined: 12 Ekim 2013 Status: Offline Points: 131 |
![]() ![]() ![]() ![]() ![]() |
teşekkür ederim elinize sağlık tam da istediğim gibi olmuş
|
|
![]() |
|
fatihakcay ![]() Senior Member ![]() ![]() Joined: 04 Kasım 2004 Location: Türkiye Status: Offline Points: 229 |
![]() ![]() ![]() ![]() ![]() |
Selamlar; sorguyu denediğimde standart maliyet sütunu sıfır olarak geliyor, son giriş fiyat sütunu ise son faturadan değil de 2-3 önce ki faturada ki fiyatları getirdi.
|
|
Fatih Akçay
|
|
![]() |
|
a.saidyilmaz ![]() Yeni Üye ![]() ![]() Joined: 09 Haziran 2020 Location: DÜZCE Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Merhabalar ,
F10 da ürünün son alış tarihini getirmek istiyorum fakat günlerdir yapamadım .. ![]() ![]() yardımcı olabilir misiniz ? Mail : [email protected] Tel : 0541 384 5250
|
|
A.SAİD YILMAZ
|
|
![]() |
|
scorpion_4435 ![]() Groupie ![]() Joined: 17 Kasım 2009 Location: İzmir Status: Offline Points: 74 |
![]() ![]() ![]() ![]() ![]() |
Mrblar
Mikro v15xx aşağıdaki sorguyu kullanabilirsiniz ------------------------------------------------------------ SELECT TOP 100 PERCENT sto_RECno AS [msg_S_0088] /* KAYIT NO */ , sto_kod AS [Stok Kodu], sto_isim AS [Stok İsmi], (SELECT TOP 1 dbo.fn_DateTimeKontrol(sth_tarih) FROM STOK_HAREKETLERI WITH (NOLOCK) WHERE (sth_tip = 0) AND (sth_evraktip IN (3, 13)) AND (sth_stok_kod = sto_kod) AND (sth_normal_iade = 0) AND (dbo.fn_DegerFarki_mi(sth_cins)<>1) AND (sth_fat_recid_recno<>0) ORDER BY sth_tarih DESC) AS [Son Giris Tarihi] FROM STOKLAR WITH(NOLOCK) ORDER BY sto_kod Mikro v16xx aşağıdaki sorguyu kullanabilirsiniz ------------------------------------------------------------ SELECT TOP 100 PERCENT sto_Guid AS [msg_S_0088] /* KAYIT NO */ , sto_kod AS [Stok Kodu], sto_isim AS [Stok İsmi], (SELECT TOP 1 dbo.fn_DateTimeKontrol(sth_tarih) FROM STOK_HAREKETLERI WITH (NOLOCK) WHERE (sth_tip = 0) AND (sth_evraktip IN (3, 13)) AND (sth_stok_kod = sto_kod) AND (sth_normal_iade = 0) AND (dbo.fn_DegerFarki_mi(sth_cins)<>1) AND (sth_fat_uid<>'00000000-0000-0000-0000-000000000000') ORDER BY sth_tarih DESC) AS [Son Giris Tarihi] FROM STOKLAR WITH(NOLOCK) ORDER BY sto_kod |
|
![]() |
Post Reply ![]() |
|
Tweet |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |