[04/03/2024 07:15:01], [file name :-/home/otrams/public_html/beta/terms.php],INSERT INTO psa_login_log  SET username = '', user_type = 'A', branch_id = '7', login_datetime = '2024-04-03 07:15:01', ip = '114.119.136.249', action = 'Login' ;
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='383', agent_id ='7863', itenirary_id ='7774602733976', confirmation_number ='7774602733976', payment_confirmation_no ='', voucher_id ='1234', voucher_hashcode ='044b88d130a4bf441bad3e6887c1eb2815332383', email_id ='', leader_title ='Mr', leader_first_name ='TBac', leader_last_name ='TBAc', city_id ='phuket', country_id ='136', display_room_rate ='24.990', native_room_rate ='32.010', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																				Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2024-04-03 06:55:00', create_date ='2024-02-08 06:43:01', source_type ='expedia', expiration_date ='2024-04-20 11:00:00', comment_contract =' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\\&#039;color: red;\\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\\&#039;color:#2748a3;\\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='24.990', wh_sub_agent_rate ='0.000', wh_agent_rate ='31.230', supplier_rate ='32.010', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='-21.89940643548', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='-21.89940643548', wh_agent_markup ='25.000', basecurrency_multiplier ='1.00000', wh_basecurrency_multiplier ='1.00000', basecurrency_multiplier_native ='1.00000', wh_basecurrency_multiplier_native ='1.00000', agent_currency_multiplier ='1.00000', wh_agent_currency_multiplier ='1.00000', modified_datetime ='2024-04-03 07:23:14', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 07:23:14', sub_agent_rate ='0.000', created_by ='Ayman', site_id ='20', applicable_service_tax ='0.000', wh_parent_agent_id ='7866', wh_agent_id ='7866', nationality ='Emirati', ip_addr ='43.239.53.130';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='182', old_reff_id ='119', booking_id ='383', supplier_id ='expedia', total_nights ='1', arrival_date ='2024/04/23', departure_date ='2024/04/24', hotel_id ='27799390', hotel_name ='Nanachart Mansion', hotel_address1 ='41/34 Mootri Road, Talad Yai, Muang', hotel_phone ='66-76-230041', hotel_rating ='2.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '624', old_reff_id = '119', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '326', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '625', old_reff_id = '119', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '326', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '626', old_reff_id = '119', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '327', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '627', old_reff_id = '119', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '327', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '326', old_reff_id = '119', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:4:"8.33";s:13:"whNightlyRate";s:5:"10.41";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '16.66' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '327', old_reff_id = '119', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:4:"8.33";s:13:"whNightlyRate";s:5:"10.41";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '8.33' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:5:"35.41";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '20' ,number_of_rooms = '2';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '328', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '328', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:4:"37.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '10' ,number_of_rooms = '1';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '329', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '329', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7774602733976',cancellation_policy='																																										Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											',supplier_cancellation_policy='',applied_multiplier='1.00000',applied_markup='-6.2792877225867',agent_markup='-6.2792877225867',consultant_id='Ayman',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000'_native,agent_currency_multiplier='1.00000',current_status='vouchered',status_date='2024-04-03 07:23:14',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '30',display_discount='0',modified_datetime='2024-04-03 07:23:14',modified_by ='Ayman',native_room_rate='32.01',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='TBac',leader_last_name='TBAc',nationality ='Emirati',booking_type ='online',supplier_profile_id ='42',expiration_date= '2024-04-20 11:00:00',source_type='expedia',special_comment='',admin_note='',comment_contract=' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\&#039;color: red;\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\&#039;color:#2748a3;\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.' WHERE id='383';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='30', agent_markup='-6.2792877225867', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='108.32' where id='383';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:23:14', supplier_currency ='USD', type = 'Ammended', agent_price = '5.01', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:23:14', agent_price = '108.320', sub_agent_price = '0.000', supplier_price = '30.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('5.01'),   credit_value= credit_value-('5.01') ,  cd_credit_usage=cd_credit_usage+('5.01') , cd_credit_value=cd_credit_value-('5.01')  WHERE id = '7863';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998092.570',credit_usage= '907.430',credit_limit= '999999000.000',receipt_id= '',amount= '5.01',booking_id='383',booking_cost= '30',receipt_allocation= '',balance= '30',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:14';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('77.09'),   credit_value= credit_value-('77.09') ,  cd_credit_usage=cd_credit_usage+('77.09') , cd_credit_value=cd_credit_value-('77.09')  WHERE id = '7866';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1766.660',credit_usage= '1766.660',credit_limit= '10000.000',receipt_id= '',amount= '77.09',booking_id='383',booking_cost= '30',receipt_allocation= '',balance= '30',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:14';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='383',booking_detail_id ='383',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='-2.0099999999998',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is -6.279287722586 %',create_date ='2024-04-03 07:23:14';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expedia' , total_rooms= '3', arrival_date='2024/04/23', departure_date='2024/04/24', rate_code='~', hotel_address1='41/34 Mootri Road, Talad Yai, Muang', hotel_name='Nanachart Mansion', hotel_phone='66-76-230041' where booking_id ='383';
[04/03/2024 07:23:14], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','383','vouchered','2024-04-03 07:23:14','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 07:23:15], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into temp(booking_id,mail_send_to)values('383','deepak.trivedi@qtechsoftware.com');
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='383', agent_id ='7863', itenirary_id ='7774602733976', confirmation_number ='7774602733976', payment_confirmation_no ='', voucher_id ='1234', voucher_hashcode ='044b88d130a4bf441bad3e6887c1eb2815332383', email_id ='', leader_title ='Mr', leader_first_name ='TBac', leader_last_name ='TBAc', city_id ='phuket', country_id ='136', display_room_rate ='30.000', native_room_rate ='32.010', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																										Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2024-04-03 07:23:14', create_date ='2024-02-08 06:43:01', source_type ='expedia', expiration_date ='2024-04-20 11:00:00', comment_contract =' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\\&#039;color: red;\\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\\&#039;color:#2748a3;\\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='30.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='108.320', supplier_rate ='32.010', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='-6.279287722586', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='-6.279287722586', wh_agent_markup ='25.000', basecurrency_multiplier ='1.00000', wh_basecurrency_multiplier ='1.00000', basecurrency_multiplier_native ='1.00000', wh_basecurrency_multiplier_native ='1.00000', agent_currency_multiplier ='1.00000', wh_agent_currency_multiplier ='1.00000', modified_datetime ='2024-04-03 07:25:27', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 07:25:27', sub_agent_rate ='0.000', created_by ='Ayman', site_id ='20', applicable_service_tax ='0.000', wh_parent_agent_id ='7866', wh_agent_id ='7866', nationality ='Emirati', ip_addr ='43.239.53.130';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='182', old_reff_id ='120', booking_id ='383', supplier_id ='expedia', total_nights ='1', arrival_date ='2024/04/23', departure_date ='2024/04/24', hotel_id ='27799390', hotel_name ='Nanachart Mansion', hotel_address1 ='41/34 Mootri Road, Talad Yai, Muang', hotel_phone ='66-76-230041', hotel_rating ='2.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '628', old_reff_id = '120', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '328', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '629', old_reff_id = '120', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '328', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '630', old_reff_id = '120', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '329', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '631', old_reff_id = '120', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '329', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '328', old_reff_id = '120', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:5:"35.41";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '20' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '329', old_reff_id = '120', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:4:"37.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '10' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:4:"12.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '20' ,number_of_rooms = '2';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '330', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '330', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:4:"12.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '10' ,number_of_rooms = '1';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '331', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '331', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7774602733976',cancellation_policy='																																																Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											',supplier_cancellation_policy='',applied_multiplier='1.00000',applied_markup='-6.279287722586',agent_markup='-6.279287722586',consultant_id='Ayman',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000'_native,agent_currency_multiplier='1.00000',current_status='vouchered',status_date='2024-04-03 07:25:27',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '30',display_discount='0',modified_datetime='2024-04-03 07:25:27',modified_by ='Ayman',native_room_rate='32.01',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='TBac',leader_last_name='TBAc',nationality ='Emirati',booking_type ='online',supplier_profile_id ='42',expiration_date= '2024-04-20 11:00:00',source_type='expedia',special_comment='',admin_note='',comment_contract=' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\&#039;color: red;\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\&#039;color:#2748a3;\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.' WHERE id='383';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='30', agent_markup='-6.279287722586', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='37.5' where id='383';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:25:27', agent_price = '37.500', sub_agent_price = '0.000', supplier_price = '30.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expedia' , total_rooms= '3', arrival_date='2024/04/23', departure_date='2024/04/24', rate_code='~', hotel_address1='41/34 Mootri Road, Talad Yai, Muang', hotel_name='Nanachart Mansion', hotel_phone='66-76-230041' where booking_id ='383';
[04/03/2024 07:25:27], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','383','vouchered','2024-04-03 07:25:27','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='383', agent_id ='7863', itenirary_id ='7774602733976', confirmation_number ='7774602733976', payment_confirmation_no ='', voucher_id ='1234', voucher_hashcode ='044b88d130a4bf441bad3e6887c1eb2815332383', email_id ='', leader_title ='Mr', leader_first_name ='TBac', leader_last_name ='TBAc', city_id ='phuket', country_id ='136', display_room_rate ='30.000', native_room_rate ='32.010', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2024-04-03 07:25:27', create_date ='2024-02-08 06:43:01', source_type ='expedia', expiration_date ='2024-04-20 11:00:00', comment_contract =' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\\&#039;color: red;\\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\\&#039;color:#2748a3;\\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='30.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='37.500', supplier_rate ='32.010', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='-6.279287722586', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='-6.279287722586', wh_agent_markup ='25.000', basecurrency_multiplier ='1.00000', wh_basecurrency_multiplier ='1.00000', basecurrency_multiplier_native ='1.00000', wh_basecurrency_multiplier_native ='1.00000', agent_currency_multiplier ='1.00000', wh_agent_currency_multiplier ='1.00000', modified_datetime ='2024-04-03 07:27:41', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 07:27:41', sub_agent_rate ='0.000', created_by ='Ayman', site_id ='20', applicable_service_tax ='0.000', wh_parent_agent_id ='7866', wh_agent_id ='7866', nationality ='Emirati', ip_addr ='43.239.53.130';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='182', old_reff_id ='121', booking_id ='383', supplier_id ='expedia', total_nights ='1', arrival_date ='2024/04/23', departure_date ='2024/04/24', hotel_id ='27799390', hotel_name ='Nanachart Mansion', hotel_address1 ='41/34 Mootri Road, Talad Yai, Muang', hotel_phone ='66-76-230041', hotel_rating ='2.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '632', old_reff_id = '121', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '330', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '633', old_reff_id = '121', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '330', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '634', old_reff_id = '121', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '331', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '635', old_reff_id = '121', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '331', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '330', old_reff_id = '121', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:4:"12.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '20' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '331', old_reff_id = '121', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:4:"12.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '10' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"15";s:13:"whNightlyRate";s:2:"50";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '30' ,number_of_rooms = '2';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '332', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '332', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:4:"12.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '10' ,number_of_rooms = '1';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '333', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '333', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7774602733976',cancellation_policy='																																																						Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											',supplier_cancellation_policy='',applied_multiplier='1.00000',applied_markup='24.960949703218',agent_markup='24.960949703218',consultant_id='Ayman',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000'_native,agent_currency_multiplier='1.00000',current_status='vouchered',status_date='2024-04-03 07:27:41',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '40',display_discount='0',modified_datetime='2024-04-03 07:27:41',modified_by ='Ayman',native_room_rate='32.01',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='TBac',leader_last_name='TBAc',nationality ='Emirati',booking_type ='online',supplier_profile_id ='42',expiration_date= '2024-04-20 11:00:00',source_type='expedia',special_comment='',admin_note='',comment_contract=' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\&#039;color: red;\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\&#039;color:#2748a3;\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.' WHERE id='383';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='40', agent_markup='24.960949703218', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='112.5' where id='383';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:27:41', supplier_currency ='USD', type = 'Ammended', agent_price = '10', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:27:41', agent_price = '112.500', sub_agent_price = '0.000', supplier_price = '40.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('10'),   credit_value= credit_value-('10') ,  cd_credit_usage=cd_credit_usage+('10') , cd_credit_value=cd_credit_value-('10')  WHERE id = '7863';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998082.570',credit_usage= '917.430',credit_limit= '999999000.000',receipt_id= '',amount= '10',booking_id='383',booking_cost= '40',receipt_allocation= '',balance= '40',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:41';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('75'),   credit_value= credit_value-('75') ,  cd_credit_usage=cd_credit_usage+('75') , cd_credit_value=cd_credit_value-('75')  WHERE id = '7866';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1841.660',credit_usage= '1841.660',credit_limit= '10000.000',receipt_id= '',amount= '75',booking_id='383',booking_cost= '40',receipt_allocation= '',balance= '40',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:41';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='383',booking_detail_id ='383',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='7.9900000000001',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 24.960949703218 %',create_date ='2024-04-03 07:27:41';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expedia' , total_rooms= '3', arrival_date='2024/04/23', departure_date='2024/04/24', rate_code='~', hotel_address1='41/34 Mootri Road, Talad Yai, Muang', hotel_name='Nanachart Mansion', hotel_phone='66-76-230041' where booking_id ='383';
[04/03/2024 07:27:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','383','vouchered','2024-04-03 07:27:41','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='383', agent_id ='7863', itenirary_id ='7774602733976', confirmation_number ='7774602733976', payment_confirmation_no ='', voucher_id ='1234', voucher_hashcode ='044b88d130a4bf441bad3e6887c1eb2815332383', email_id ='', leader_title ='Mr', leader_first_name ='TBac', leader_last_name ='TBAc', city_id ='phuket', country_id ='136', display_room_rate ='40.000', native_room_rate ='32.010', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																						Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2024-04-03 07:27:41', create_date ='2024-02-08 06:43:01', source_type ='expedia', expiration_date ='2024-04-20 11:00:00', comment_contract =' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\\&#039;color: red;\\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\\&#039;color:#2748a3;\\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='40.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='112.500', supplier_rate ='32.010', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='24.960949703218', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='24.960949703218', wh_agent_markup ='25.000', basecurrency_multiplier ='1.00000', wh_basecurrency_multiplier ='1.00000', basecurrency_multiplier_native ='1.00000', wh_basecurrency_multiplier_native ='1.00000', agent_currency_multiplier ='1.00000', wh_agent_currency_multiplier ='1.00000', modified_datetime ='2024-04-03 07:29:55', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 07:29:55', sub_agent_rate ='0.000', created_by ='Ayman', site_id ='20', applicable_service_tax ='0.000', wh_parent_agent_id ='7866', wh_agent_id ='7866', nationality ='Emirati', ip_addr ='43.239.53.130';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='182', old_reff_id ='122', booking_id ='383', supplier_id ='expedia', total_nights ='1', arrival_date ='2024/04/23', departure_date ='2024/04/24', hotel_id ='27799390', hotel_name ='Nanachart Mansion', hotel_address1 ='41/34 Mootri Road, Talad Yai, Muang', hotel_phone ='66-76-230041', hotel_rating ='2.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '636', old_reff_id = '122', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '332', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '637', old_reff_id = '122', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '332', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '638', old_reff_id = '122', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '333', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '639', old_reff_id = '122', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '333', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '332', old_reff_id = '122', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"15";s:13:"whNightlyRate";s:2:"50";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '30' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '333', old_reff_id = '122', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:4:"12.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '10' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:5:"13.33";s:13:"whNightlyRate";s:5:"16.66";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '26.66' ,number_of_rooms = '2';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '334', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '334', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:5:"13.33";s:13:"whNightlyRate";s:5:"16.66";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '13.33' ,number_of_rooms = '1';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '335', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '335', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7774602733976',cancellation_policy='																																																												Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											
											',supplier_cancellation_policy='',applied_multiplier='1.00000',applied_markup='24.960949703218',agent_markup='24.960949703218',consultant_id='Ayman',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000'_native,agent_currency_multiplier='1.00000',current_status='vouchered',status_date='2024-04-03 07:29:55',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '39.99',display_discount='0',modified_datetime='2024-04-03 07:29:55',modified_by ='Ayman',native_room_rate='32.01',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='TBac',leader_last_name='TBAc',nationality ='Emirati',booking_type ='online',supplier_profile_id ='42',expiration_date= '2024-04-20 11:00:00',source_type='expedia',special_comment='',admin_note='',comment_contract=' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\&#039;color: red;\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\&#039;color:#2748a3;\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.' WHERE id='383';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='39.99', agent_markup='24.960949703218', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='49.98' where id='383';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:29:55', supplier_currency ='USD', type = 'Ammended', agent_price = '-0.01', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:29:55', agent_price = '49.980', sub_agent_price = '0.000', supplier_price = '39.990' where booking_id = '383'  and type = "Sale";
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('-0.01'),   credit_value= credit_value-('-0.01') ,  cd_credit_usage=cd_credit_usage+('-0.01') , cd_credit_value=cd_credit_value-('-0.01')  WHERE id = '7863';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998082.580',credit_usage= '917.420',credit_limit= '999999000.000',receipt_id= '',amount= '-0.01',booking_id='383',booking_cost= '39.99',receipt_allocation= '',balance= '39.99',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:55';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('-62.52'),   credit_value= credit_value-('-62.52') ,  cd_credit_usage=cd_credit_usage+('-62.52') , cd_credit_value=cd_credit_value-('-62.52')  WHERE id = '7866';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1779.140',credit_usage= '1779.140',credit_limit= '10000.000',receipt_id= '',amount= '-62.52',booking_id='383',booking_cost= '39.99',receipt_allocation= '',balance= '39.99',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:55';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='383',booking_detail_id ='383',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='7.9900000000001',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 24.960949703218 %',create_date ='2024-04-03 07:29:55';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expedia' , total_rooms= '3', arrival_date='2024/04/23', departure_date='2024/04/24', rate_code='~', hotel_address1='41/34 Mootri Road, Talad Yai, Muang', hotel_name='Nanachart Mansion', hotel_phone='66-76-230041' where booking_id ='383';
[04/03/2024 07:29:55], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','383','vouchered','2024-04-03 07:29:55','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='383', agent_id ='7863', itenirary_id ='7774602733976', confirmation_number ='7774602733976', payment_confirmation_no ='', voucher_id ='1234', voucher_hashcode ='044b88d130a4bf441bad3e6887c1eb2815332383', email_id ='', leader_title ='Mr', leader_first_name ='TBac', leader_last_name ='TBAc', city_id ='phuket', country_id ='136', display_room_rate ='39.990', native_room_rate ='32.010', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																												Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											
											', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2024-04-03 07:29:55', create_date ='2024-02-08 06:43:01', source_type ='expedia', expiration_date ='2024-04-20 11:00:00', comment_contract =' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\\&#039;color: red;\\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\\&#039;color:#2748a3;\\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='39.990', wh_sub_agent_rate ='0.000', wh_agent_rate ='49.980', supplier_rate ='32.010', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='24.960949703218', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='24.960949703218', wh_agent_markup ='25.000', basecurrency_multiplier ='1.00000', wh_basecurrency_multiplier ='1.00000', basecurrency_multiplier_native ='1.00000', wh_basecurrency_multiplier_native ='1.00000', agent_currency_multiplier ='1.00000', wh_agent_currency_multiplier ='1.00000', modified_datetime ='2024-04-03 07:36:03', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 07:36:03', sub_agent_rate ='0.000', created_by ='Ayman', site_id ='20', applicable_service_tax ='0.000', wh_parent_agent_id ='7866', wh_agent_id ='7866', nationality ='Emirati', ip_addr ='43.239.53.130';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='182', old_reff_id ='123', booking_id ='383', supplier_id ='expedia', total_nights ='1', arrival_date ='2024/04/23', departure_date ='2024/04/24', hotel_id ='27799390', hotel_name ='Nanachart Mansion', hotel_address1 ='41/34 Mootri Road, Talad Yai, Muang', hotel_phone ='66-76-230041', hotel_rating ='2.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '640', old_reff_id = '123', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '334', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '641', old_reff_id = '123', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '334', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '642', old_reff_id = '123', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '335', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '643', old_reff_id = '123', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '335', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '334', old_reff_id = '123', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:5:"13.33";s:13:"whNightlyRate";s:5:"16.66";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '26.66' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '335', old_reff_id = '123', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:5:"13.33";s:13:"whNightlyRate";s:5:"16.66";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '13.33' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"20";s:13:"whNightlyRate";s:5:"16.66";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '40' ,number_of_rooms = '2';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '336', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '336', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"20";s:13:"whNightlyRate";s:5:"16.66";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '20' ,number_of_rooms = '1';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '337', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '337', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7774602733976',cancellation_policy='																																																																		Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											
											
											',supplier_cancellation_policy='',applied_multiplier='1.00000',applied_markup='87.441424554827',agent_markup='87.441424554827',consultant_id='Ayman',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000'_native,agent_currency_multiplier='1.00000',current_status='vouchered',status_date='2024-04-03 07:36:03',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '60',display_discount='0',modified_datetime='2024-04-03 07:36:03',modified_by ='Ayman',native_room_rate='32.01',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='TBac',leader_last_name='TBAc',nationality ='Emirati',booking_type ='online',supplier_profile_id ='42',expiration_date= '2024-04-20 11:00:00',source_type='expedia',special_comment='',admin_note='',comment_contract=' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\&#039;color: red;\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\&#039;color:#2748a3;\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.' WHERE id='383';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='60', agent_markup='87.441424554827', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='49.98' where id='383';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:36:03', supplier_currency ='USD', type = 'Ammended', agent_price = '20.01', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:36:03', agent_price = '49.980', sub_agent_price = '0.000', supplier_price = '60.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('20.01'),   credit_value= credit_value-('20.01') ,  cd_credit_usage=cd_credit_usage+('20.01') , cd_credit_value=cd_credit_value-('20.01')  WHERE id = '7863';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998062.570',credit_usage= '937.430',credit_limit= '999999000.000',receipt_id= '',amount= '20.01',booking_id='383',booking_cost= '60',receipt_allocation= '',balance= '60',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:03';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('7.105427357601E-15'),   credit_value= credit_value-('7.105427357601E-15') ,  cd_credit_usage=cd_credit_usage+('7.105427357601E-15') , cd_credit_value=cd_credit_value-('7.105427357601E-15')  WHERE id = '7866';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1779.140',credit_usage= '1779.140',credit_limit= '10000.000',receipt_id= '',amount= '7.105427357601E-15',booking_id='383',booking_cost= '60',receipt_allocation= '',balance= '60',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:03';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='383',booking_detail_id ='383',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='27.99',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 87.441424554827 %',create_date ='2024-04-03 07:36:03';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expedia' , total_rooms= '3', arrival_date='2024/04/23', departure_date='2024/04/24', rate_code='~', hotel_address1='41/34 Mootri Road, Talad Yai, Muang', hotel_name='Nanachart Mansion', hotel_phone='66-76-230041' where booking_id ='383';
[04/03/2024 07:36:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','383','vouchered','2024-04-03 07:36:03','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='383', agent_id ='7863', itenirary_id ='7774602733976', confirmation_number ='7774602733976', payment_confirmation_no ='', voucher_id ='1234', voucher_hashcode ='044b88d130a4bf441bad3e6887c1eb2815332383', email_id ='', leader_title ='Mr', leader_first_name ='TBac', leader_last_name ='TBAc', city_id ='phuket', country_id ='136', display_room_rate ='60.000', native_room_rate ='32.010', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																																		Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											
											
											', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2024-04-03 07:36:03', create_date ='2024-02-08 06:43:01', source_type ='expedia', expiration_date ='2024-04-20 11:00:00', comment_contract =' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\\&#039;color: red;\\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\\&#039;color:#2748a3;\\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='60.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='49.980', supplier_rate ='32.010', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='87.441424554827', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='87.441424554827', wh_agent_markup ='25.000', basecurrency_multiplier ='1.00000', wh_basecurrency_multiplier ='1.00000', basecurrency_multiplier_native ='1.00000', wh_basecurrency_multiplier_native ='1.00000', agent_currency_multiplier ='1.00000', wh_agent_currency_multiplier ='1.00000', modified_datetime ='2024-04-03 07:37:58', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 07:37:58', sub_agent_rate ='0.000', created_by ='Ayman', site_id ='20', applicable_service_tax ='0.000', wh_parent_agent_id ='7866', wh_agent_id ='7866', nationality ='Emirati', ip_addr ='43.239.53.130';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='182', old_reff_id ='124', booking_id ='383', supplier_id ='expedia', total_nights ='1', arrival_date ='2024/04/23', departure_date ='2024/04/24', hotel_id ='27799390', hotel_name ='Nanachart Mansion', hotel_address1 ='41/34 Mootri Road, Talad Yai, Muang', hotel_phone ='66-76-230041', hotel_rating ='2.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '644', old_reff_id = '124', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '336', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '645', old_reff_id = '124', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '336', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '646', old_reff_id = '124', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '337', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '647', old_reff_id = '124', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '337', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '336', old_reff_id = '124', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"20";s:13:"whNightlyRate";s:5:"16.66";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '40' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '337', old_reff_id = '124', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"20";s:13:"whNightlyRate";s:5:"16.66";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '20' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"20";s:13:"whNightlyRate";s:2:"25";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '40' ,number_of_rooms = '2';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '338', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '338', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"20";s:13:"whNightlyRate";s:2:"25";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '20' ,number_of_rooms = '1';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '339', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '339', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7774602733976',cancellation_policy='																																																																								Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											
											
											
											',supplier_cancellation_policy='',applied_multiplier='1.00000',applied_markup='87.441424554827',agent_markup='87.441424554827',consultant_id='Ayman',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000'_native,agent_currency_multiplier='1.00000',current_status='vouchered',status_date='2024-04-03 07:37:58',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '60',display_discount='0',modified_datetime='2024-04-03 07:37:58',modified_by ='Ayman',native_room_rate='32.01',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='TBac',leader_last_name='TBAc',nationality ='Emirati',booking_type ='online',supplier_profile_id ='42',expiration_date= '2024-04-20 11:00:00',source_type='expedia',special_comment='',admin_note='',comment_contract=' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\&#039;color: red;\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\&#039;color:#2748a3;\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.' WHERE id='383';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='60', agent_markup='87.441424554827', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='75' where id='383';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:37:58', agent_price = '75.000', sub_agent_price = '0.000', supplier_price = '60.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expedia' , total_rooms= '3', arrival_date='2024/04/23', departure_date='2024/04/24', rate_code='~', hotel_address1='41/34 Mootri Road, Talad Yai, Muang', hotel_name='Nanachart Mansion', hotel_phone='66-76-230041' where booking_id ='383';
[04/03/2024 07:37:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','383','vouchered','2024-04-03 07:37:58','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='383', agent_id ='7863', itenirary_id ='7774602733976', confirmation_number ='7774602733976', payment_confirmation_no ='', voucher_id ='1234', voucher_hashcode ='044b88d130a4bf441bad3e6887c1eb2815332383', email_id ='', leader_title ='Mr', leader_first_name ='TBac', leader_last_name ='TBAc', city_id ='phuket', country_id ='136', display_room_rate ='60.000', native_room_rate ='32.010', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																																								Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											
											
											
											', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2024-04-03 07:37:58', create_date ='2024-02-08 06:43:01', source_type ='expedia', expiration_date ='2024-04-20 11:00:00', comment_contract =' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\\&#039;color: red;\\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\\&#039;color:#2748a3;\\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='60.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='75.000', supplier_rate ='32.010', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='87.441424554827', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='87.441424554827', wh_agent_markup ='25.000', basecurrency_multiplier ='1.00000', wh_basecurrency_multiplier ='1.00000', basecurrency_multiplier_native ='1.00000', wh_basecurrency_multiplier_native ='1.00000', agent_currency_multiplier ='1.00000', wh_agent_currency_multiplier ='1.00000', modified_datetime ='2024-04-03 07:49:31', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 07:49:31', sub_agent_rate ='0.000', created_by ='Ayman', site_id ='20', applicable_service_tax ='0.000', wh_parent_agent_id ='7866', wh_agent_id ='7866', nationality ='Emirati', ip_addr ='43.239.53.130';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='182', old_reff_id ='125', booking_id ='383', supplier_id ='expedia', total_nights ='1', arrival_date ='2024/04/23', departure_date ='2024/04/24', hotel_id ='27799390', hotel_name ='Nanachart Mansion', hotel_address1 ='41/34 Mootri Road, Talad Yai, Muang', hotel_phone ='66-76-230041', hotel_rating ='2.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '648', old_reff_id = '125', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '338', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '649', old_reff_id = '125', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '338', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '650', old_reff_id = '125', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '339', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '651', old_reff_id = '125', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '339', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '338', old_reff_id = '125', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"20";s:13:"whNightlyRate";s:2:"25";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '40' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '339', old_reff_id = '125', booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"20";s:13:"whNightlyRate";s:2:"25";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '20' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:9:"undefined";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '21.34' ,display_room_rate_total = '20' ,number_of_rooms = '2';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '340', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '340', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '383', booking_detail_id = '182', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:2:"10";s:13:"whNightlyRate";s:9:"undefined";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:5:"10.67";}}' ,native_room_rate_total = '10.67' ,display_room_rate_total = '10' ,number_of_rooms = '1';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '', rid = '341', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '341', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7774602733976',cancellation_policy='																																																																														Free cancellation up to  13:59:59 on  2024-04-20&lt;br&gt;If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 40.01 USD&lt;br&gt;No show is subject to a 100 % cancellation charge&lt;br&gt;&lt;br/&gt;&lt;b&gt;Amendment Policy&lt;/b&gt;&lt;br/&gt;
		Please note that most hotels treat changes in pax details, room category and dates as a cancellation of the booking, and charges will apply according to the cancellation policy.
		Late amendment charges may apply if requested after 14:00 on 20th of April 2024.
		Confirmation of amendments is subject to availability and rates at the time of making the amendment.
											
											
											
											
											
											
											
											
											
											
											
											
											',supplier_cancellation_policy='',applied_multiplier='1.00000',applied_markup='-6.2792877225867',agent_markup='-6.2792877225867',consultant_id='Ayman',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000'_native,agent_currency_multiplier='1.00000',current_status='vouchered',status_date='2024-04-03 07:49:31',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '30',display_discount='0',modified_datetime='2024-04-03 07:49:31',modified_by ='Ayman',native_room_rate='32.01',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='TBac',leader_last_name='TBAc',nationality ='Emirati',booking_type ='online',supplier_profile_id ='42',expiration_date= '2024-04-20 11:00:00',source_type='expedia',special_comment='',admin_note='',comment_contract=' Bed Type Selection is not guaranteed.&lt;br/&gt;&lt;span style=\&#039;color: red;\&#039;&gt;&lt;strong&gt;Note&lt;/strong&gt;: Nightly rates might be calculated based on the average of Total Rate&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Amenities:&lt;/b&gt;Free self parking, Free WiFi&lt;br/&gt;&lt;b style=\&#039;color:#2748a3;\&#039;&gt;Booking price includes Taxes and fees 5.04 USD&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Checkin Start Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkin End Time :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Min Checkin Age :&lt;/b&gt; , &lt;br/&gt;&lt;b&gt;Checkout Time :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Special Instructions :&lt;/b&gt; ,&lt;br/&gt;&lt;b&gt;Taxes and Fees:&lt;/b&gt;&lt;br/&gt;This charge includes estimated amounts the travel service provider (i.e. hotel, car rental company) pays for their taxes, and/or taxes that we pay, to taxing authorities on your booking (including but not limited to sales, occupancy, and value added tax). This amount may also include any amounts charged to us for resort fees, cleaning fees, and other fees and/or a fee we, the hotel supplier and/or the website you booked on, retain as part of the compensation for our and/or their services, which varies based on factors such as location, the amount, and how you booked. For more details, please see the Terms and Conditions.' WHERE id='383';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='30', agent_markup='-6.2792877225867', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='' where id='383';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:49:31', supplier_currency ='USD', type = 'Ammended', agent_price = '-30', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '383', booking_log = 'Booking Modified', create_date = '2024-04-03 07:49:31', agent_price = '0.000', sub_agent_price = '0.000', supplier_price = '30.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('-30'),   credit_value= credit_value-('-30') ,  cd_credit_usage=cd_credit_usage+('-30') , cd_credit_value=cd_credit_value-('-30')  WHERE id = '7863';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998092.570',credit_usage= '907.430',credit_limit= '999999000.000',receipt_id= '',amount= '-30',booking_id='383',booking_cost= '30',receipt_allocation= '',balance= '30',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:31';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('-75'),   credit_value= credit_value-('-75') ,  cd_credit_usage=cd_credit_usage+('-75') , cd_credit_value=cd_credit_value-('-75')  WHERE id = '7866';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1704.140',credit_usage= '1704.140',credit_limit= '10000.000',receipt_id= '',amount= '-75',booking_id='383',booking_cost= '30',receipt_allocation= '',balance= '30',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Booking Modified',note='Booking Modified',create_date='2024-04-03 07:04:31';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='383',booking_detail_id ='383',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='-2.0099999999998',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is -6.279287722586 %',create_date ='2024-04-03 07:49:31';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expedia' , total_rooms= '3', arrival_date='2024/04/23', departure_date='2024/04/24', rate_code='~', hotel_address1='41/34 Mootri Road, Talad Yai, Muang', hotel_name='Nanachart Mansion', hotel_phone='66-76-230041' where booking_id ='383';
[04/03/2024 07:49:31], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','383','vouchered','2024-04-03 07:49:31','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
