|
//push weeklybookingback 1 week //add an new bookingat week + duration //duration +1 extend_weeklyBooking($db, $cust, $service) { $req = getAllocation_req($db,$customer, $service); $week = $req[week_no] + $req[duration]; //the week of the new booking $prev_booking=getServiceBooking($db, $customer_id, $service_id) $service_provider = $prev_booking['sp_id']; addBooking($db, $week, $req['day'], "scheduled", $service_provider, $customer, $service, null); updateAllocationReq($db, $customer, $service, $req['frequency'], $req['week_no'], $req['duration']+1, $req['day'],$req['prerequisite']); } #find all the booking that is dependent on a particular booking function all_affected_bookings ($db, $bid) { $booking = getBooking($db, $bid); $customer = $booking['cid']; $dep_bookings = array(); $last_round = array($bid); while(count($last_round)!=0) { $new =array(); $cust_bookings = getCustomerBookings($customer); for($i=0; $i
Approximate Word count = 444 Approximate Pages = 1.8 (250 words per page double spaced)
|
|