Exemplo n.º 1
0
 $old_status = $_SESSION['old_status'];
 $problem = $_POST['problem'];
 $service_type = $_POST['serviceSection'];
 $editComments = $_POST['comment2'];
 $reason = $_POST['reason'];
 $user->updateJobRequest($jrNumber, $new_status, $client_office, $client_name, $client_email, $client_telnum, $client_designation, $problem);
 if ($service_type != "Rent to Own") {
     $service_name = $_POST['service'];
     $details = $_POST['details'];
     $total_time = $_POST['total_hours'];
     $assigned_personnel = $_POST['ass_tech'];
     $total_amount = $_POST['total_amount'];
     if ($service_type != "MIS") {
         $r_materials = $_POST['material'];
         $r_comments = $_POST['comment'];
         $user->updateGeneral($jrNumber, $service_name, $details, $total_time, $assigned_personnel, $total_amount, $r_materials, $r_comments);
         if ($service_type == "Tech Support") {
             $e_newold = $_POST['newOld'];
             $e_brand = $_POST['brand'];
             $e_type = $_POST['type'];
             $e_par = $_POST['parno'];
             $e_accesory = $_POST['accesories'];
             if ($new_status == "Done") {
                 //released status will only be saved if new status is done
                 $released_status = $_POST['released_status'];
                 $released_by = $_POST['released_by'];
                 $released_date = $_POST['released_date'];
             } else {
                 //released status won't be changed if new status is not equal to done
                 $released_status = "Not Released";
                 $released_by = "";