• satış miktarı<25 ise iskonto oranı 0
• satış miktarı>=25 ve <50 ise iskonto oranı 0,15
• satış miktarı>=50 ve <100 ise iskonto oranı 0,25
• satış miktarı>=100 ve <999 ise iskonto oranı 0,3
arkadaşlar bunları VBA"da yazıyorum fakat olmuyor benim yazdığım kod
Function iskonto(adet, fiyat)
If adet < 25 Then
iskonto = 0
Elseif adet >= 25 and adet < 50 then
iskonto = 0.15
Elseif adet >= 50 and adet< 100 then
iskonto = a 0.25
elseif adet >= 100 and adet< 999 then
iskonto = 0.3
end if
End Function
• satış miktarı>=25 ve <50 ise iskonto oranı 0,15
• satış miktarı>=50 ve <100 ise iskonto oranı 0,25
• satış miktarı>=100 ve <999 ise iskonto oranı 0,3
arkadaşlar bunları VBA"da yazıyorum fakat olmuyor benim yazdığım kod
Function iskonto(adet, fiyat)
If adet < 25 Then
iskonto = 0
Elseif adet >= 25 and adet < 50 then
iskonto = 0.15
Elseif adet >= 50 and adet< 100 then
iskonto = a 0.25
elseif adet >= 100 and adet< 999 then
iskonto = 0.3
end if
End Function
