Log 4272
16/11/2024 2024-11-18 9:07$discountType = “הנחה קבועה”;
$coursePrice = 100;
$discountAmount = 20;
return ($discountType == “הנחה קבועה”) ? $coursePrice – $discountAmount : (($discountType == “אחוזי הנחה”) ? $coursePrice * (1 – ($discountAmount / 100)) : $coursePrice);