コード例 #1
0
     echo "<div align=\"center\"><h1>" . $_L['RSV_resvnotmade_err'] . "</h1></div>";
 } else {
     if (isset($_POST['add_id']) && $_POST['add_id'] != 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 {
コード例 #2
0
ファイル: bookings.php プロジェクト: bogiesoft/hotelmis-ota
 if ($action == $_L['REG_checkinbox']) {
     update_booking_status($book_id, BOOK_CHECKEDIN);
 } else {
     if ($action == $_L['REG_Rcheckout']) {
         update_booking_status($book_id, BOOK_CHECKEDIN);
         update_room_status($roomid, BOOKED);
         update_reservation_status($res_id, RES_CHECKIN);
         if ($details_id) {
             update_resDetails_status($details_id, RES_CHECKIN);
         }
     } else {
         if ($action == $_L['REG_checkoutbox']) {
             update_booking_status($book_id, BOOK_CHECKEDOUT);
             update_reservation_status($res_id, RES_CHECKOUT);
             if ($details_id) {
                 update_resDetails_status($details_id, RES_CHECKOUT);
             }
         }
     }
 }
 /*if($details_id){
 			modify_reservation_details($details_id,$res_id,$roomid,$roomtypeid,$ratesid,0,RES_CHECKIN);							
 		}*/
 echo "<div align=\" center\"><h1>" . $_L['REG_success1'] . "</h1></div>";
 if (!$bill_id) {
     $bill_id = create_booking_bill($book_id, $res_id, $guestid, $userid);
     if (!$bill_id) {
         echo "<div align=\" center\"><h1>" . $_L['REG_error2'] . "</h1></div>";
     } else {
         echo "<div align=\" center\"><h1>" . $_L['REG_success2'] . "</h1></div>";
     }