Ejemplo n.º 1
0
     $quantity = 1;
     $resdetailID = modify_reservation_details(0, $resid, $roomid, $roomtypeid, $ratesid, $quantity, $status);
 } else {
     if (isset($_POST['remove_id']) && $_POST['remove_id'] != 0) {
         //delete
         delete_resdetails($_POST['remove_id']);
     }
 }
 $details = array();
 $resdetailcount = reservation_details_byResID($resid, $details);
 if ($status == RES_CHECKIN) {
     foreach ($details as $dt) {
         update_resDetails_status($dt['id'], RES_CHECKIN);
     }
 }
 $bill_id = get_billID_byResID($resid);
 echo "<div align=\"center\"><h1>" . $_L['RSV_resv_sccss'] . " ID = " . $resid . "</h1></div>";
 if ($status == RES_ACTIVE && $bill_id) {
     //recording the deposit
     if ($amt > 0) {
         if (!$deposit_made) {
             modify_receipt(0, $bill_id, 0, $resid, 0, $resdtime, $fop, $cctype, $ccnum, $expiry, $cvv, $auth, 'Reservation Deposit', $amt, $userid, '', 1, $currency, $currency);
         }
         if (isset($_POST['payinadvance']) && $resdetailID) {
             if (is_ebridgeCustomer()) {
                 include_once dirname(__FILE__) . "/OTA/advancedFeatures/adv_functions.php";
                 process_advancebilling($bill_id, $ratesid, $checkindate, $checkoutdate, $userid, $roomtypeid);
             } else {
                 $ratedetails = array();
                 if ($ratesid) {
                     get_rateitems($ratesid, $ratedetails);
Ejemplo n.º 2
0
     $bgcolor = "lightgrey";
     $res = "<a href='index.php?menu=roomsview&date=" . $fromdate . "&unlock=" . $rmid . "'> <img src='images/locked.jpg' title='Click to unlock' height='50px' width='50px' /></a><br/>" . $_L['RM_locked'];
     if ($result[$rmid][$dt]['bookid']) {
         $res .= "<br/><a href='" . $path . "/index.php?menu=booking&id=" . $result[$rmid][$dt]['bookid'] . "'>" . $_L['INV_booking'] . "</a>";
     }
     if ($result[$rmid][$dt]['resid']) {
         $res .= "<br/><a href='" . $path . "/index.php?menu=reservation&resid=" . $result[$rmid][$dt]['resid'] . "'>" . $_L['ADM_reservation'] . " (" . $result[$rmid][$dt]['voucher'] . ")</a>";
     }
 }
 if ($result[$rmid][$dt]['status'] == VACANT) {
     $bgcolor = "white";
     $res = "";
 }
 $billid = $result[$rmid][$dt]['bill_id'];
 if ($result[$rmid][$dt]['resid']) {
     $billid = get_billID_byResID($result[$rmid][$dt]['resid']);
 }
 if ($billid && is_bill_inDebit($billid)) {
     $overdue = "<a href='" . $path . "/index.php?menu=invoice&id=" . $billid . "'><img src='images/dollar.png' title='Click to open invoice' height='50px' width='50px' />";
 } else {
     $overdue = "";
 }
 if ($result[$rmid][$dt]['status'] == RESERVED) {
     $bgcolor = "lightblue";
     $res = "<br/>" . $overdue . "<a href='" . $path . "/index.php?menu=reservation&resid=" . $result[$rmid][$dt]['resid'] . "'><img src='images/res_byroom.jpg' title='Click to open reservation' height='50px' width='50px' /><br/>" . $_L['ADM_reservation'] . ": " . $result[$rmid][$dt]['guestname'] . " [" . $result[$rmid][$dt]['reservation_by'] . "] (" . $result[$rmid][$dt]['voucher'] . ")</a>";
     if ($result[$rmid][$dt]['agentname']) {
         $res .= "<br/>" . $_L['ADM_agent'] . ":" . $result[$rmid][$dt]['agentname'];
     }
 }
 if ($result[$rmid][$dt]['status'] == BOOKED) {
     $bgcolor = "lightgreen";