Files

17 lines
464 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Fiyat hesaplama — Atölye Dükkânı
const INDIRIM = 25; // yüzde — büyük kampanya (çakışma çözümü: kampanya kazandı)
function sonFiyat(fiyat) {
return fiyat - (fiyat * INDIRIM / 100);
}
const KDV = 10; // yüzde — gıda indirimi kaldı (rebase çözümü: dalın niyeti korundu)
function kdvliFiyat(fiyat) {
return fiyat + (fiyat * KDV / 100);
}
function kargoluToplam(sepetTutari) {
return sepetTutari + kargoUcreti(sepetTutari);
}