$existingPD = $_SESSION["percentDiscount"]; $stackablePD = $strl; $equivalentPD = $existingPD + $stackablePD; // sum discounts percentDiscount($equivalentPD); } else { inputUnknown(); } break; // --- Juice Bar club card added by apbw 2/15/2005 ----- // --- Juice Bar club card added by apbw 2/15/2005 ----- case "JC": // apbw 2/15/05 ClubCard if ($strl == 50) { // apbw 2/15/05 ClubCard clubCard($_SESSION["currentid"]); // apbw 2/15/05 ClubCard } // apbw 2/15/05 ClubCard break; // apbw 2/15/05 ClubCard // apbw 2/15/05 ClubCard case "SC": $strl = str_replace(".", " ", $strl); $strl = str_replace(",", " ", $strl); if (!is_numeric($strl) || strlen($strl) != 6) { inputUnknown(); } else { staffCharge($strl); } break;
// $equivalentPD = 100 - ((100 - $existingPD) * (100 - $stackablePD) / 100); // Compunding discounts $equivalentPD = ($existingPD + $stackablePD); // sum discounts percentDiscount($equivalentPD); } else { inputUnknown(); } break; // ---------------------------------------------------------------- // --- Juice Bar club card added by apbw 2/15/2005 ----- case "JC": // apbw 2/15/05 ClubCard if ($strl == 50) { // apbw 2/15/05 ClubCard clubCard($_SESSION["currentid"]); // apbw 2/15/05 ClubCard } // apbw 2/15/05 ClubCard break; // apbw 2/15/05 ClubCard case "SC": $strl = str_replace(".", " ", $strl); $strl = str_replace(",", " ", $strl); if (!is_numeric($strl) || strlen($strl) != 6) { inputUnknown(); } else { staffCharge($strl); } break; default: