select * from STOKHAR WHERE StokKodu ='11113' ORDER BY NoId DESC

exec sp_FifoMaliyetlendirme '20220101','11113'


select FifoFiyat,LifoFiyat,BirimFiyat  from STOKHAR WHERE StokKodu='10' ORDER BY FaturaTarihi 

select count(*) from STOKHAR WHERE StokKodu='10'
SELECT COUNT (*) FROM STOKHAR WHERE FifoFiyat >0  AND StokKodu ='11113'


UPDATE STOKHAR SET FifoFiyat=0 , LifoFiyat=0 WHERE StokKodu ='11113'