[04/03/2024 06:01:07], [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 ='28.670', 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 05:53:49', 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 ='28.670', wh_sub_agent_rate ='0.000', wh_agent_rate ='85.020', 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 ='-10.43423930021', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='-10.43423930021', 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 06:01:07', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:01:07', 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 06:01:07], [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 ='105', 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 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '586', old_reff_id = '105', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '307', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '587', old_reff_id = '105', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '307', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '588', old_reff_id = '105', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '308', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '589', old_reff_id = '105', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '308', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '307', old_reff_id = '105', 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:1:"9";s:13:"whNightlyRate";s:5:"35.84";}}' ,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 = '18' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '308', old_reff_id = '105', 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:"10.67";s:13:"whNightlyRate";s:5:"13.34";}}' ,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.67' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:01:07], [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:"36.95";}}' ,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 06:01:07], [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 = '309', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 06:01:07], [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 = '309', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:01:07], [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 06:01:07], [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 = '310', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:01:07], [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 = '310', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 06:01:07], [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 06:01:07',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '30',display_discount='0',modified_datetime='2024-04-03 06:01:07',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 06:01:07], [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='111.4' where id='383';
[04/03/2024 06:01:07], [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 06:01:07', supplier_currency ='USD', type = 'Ammended', agent_price = '1.33', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 06:01:07], [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 06:01:07', agent_price = '111.400', sub_agent_price = '0.000', supplier_price = '30.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('1.33'),   credit_value= credit_value-('1.33') ,  cd_credit_usage=cd_credit_usage+('1.33') , cd_credit_value=cd_credit_value-('1.33')  WHERE id = '7863';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998242.570',credit_usage= '757.430',credit_limit= '999999000.000',receipt_id= '',amount= '1.33',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 06:04:07';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('26.38'),   credit_value= credit_value-('26.38') ,  cd_credit_usage=cd_credit_usage+('26.38') , cd_credit_value=cd_credit_value-('26.38')  WHERE id = '7866';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1606.500',credit_usage= '1606.500',credit_limit= '10000.000',receipt_id= '',amount= '26.38',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 06:04:07';
[04/03/2024 06:01:07], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 06:01:07], [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 06:01:07';
[04/03/2024 06:01:07], [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 06:01:07], [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 06:01:07','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:04: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 ='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 06:01:07', 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 ='111.400', 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 06:04:03', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:04: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 06:04: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 ='106', 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 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '590', old_reff_id = '106', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '309', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '591', old_reff_id = '106', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '309', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '592', old_reff_id = '106', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '310', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '593', old_reff_id = '106', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '310', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '309', old_reff_id = '106', 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:"36.95";}}' ,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 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '310', old_reff_id = '106', 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 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:04: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:1:"5";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 = '10' ,number_of_rooms = '2';
[04/03/2024 06:04: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 = '311', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 06:04: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 = '311', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:04: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:1:"5";s:13:"whNightlyRate";s:5:"18.75";}}' ,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 = '5' ,number_of_rooms = '1';
[04/03/2024 06:04: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 = '312', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:04: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 = '312', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 06:04: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='-53.139643861293',agent_markup='-53.139643861293',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 06:04:03',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '15',display_discount='0',modified_datetime='2024-04-03 06:04: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 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='15', agent_markup='-53.139643861293', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='68.75' where id='383';
[04/03/2024 06:04: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 06:04:03', supplier_currency ='USD', type = 'Ammended', agent_price = '-15', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 06:04: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 06:04:03', agent_price = '68.750', sub_agent_price = '0.000', supplier_price = '15.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('-15'),   credit_value= credit_value-('-15') ,  cd_credit_usage=cd_credit_usage+('-15') , cd_credit_value=cd_credit_value-('-15')  WHERE id = '7863';
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998257.570',credit_usage= '742.430',credit_limit= '999999000.000',receipt_id= '',amount= '-15',booking_id='383',booking_cost= '15',receipt_allocation= '',balance= '15',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 06:04:03';
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('-42.65'),   credit_value= credit_value-('-42.65') ,  cd_credit_usage=cd_credit_usage+('-42.65') , cd_credit_value=cd_credit_value-('-42.65')  WHERE id = '7866';
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1563.850',credit_usage= '1563.850',credit_limit= '10000.000',receipt_id= '',amount= '-42.65',booking_id='383',booking_cost= '15',receipt_allocation= '',balance= '15',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 06:04:03';
[04/03/2024 06:04:03], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 06:04: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 ='-17.009999999999',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is -53.13964386129 %',create_date ='2024-04-03 06:04:03';
[04/03/2024 06:04: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 06:04: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 06:04:03','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='381', agent_id ='7863', itenirary_id ='7624452078540', confirmation_number ='7624452078540', payment_confirmation_no ='', voucher_id ='', voucher_hashcode ='', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='8.450', native_room_rate ='8.450', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='Free cancellation up to  13:59:59 on  2024-04-20<br>If you cancel between 2024-04-20 14:00:00 and 2024-04-23 00:00:00 , you will be charged 10.56 USD<br>No show is subject to a 100 % cancellation charge<br><br/><b>Amendment Policy</b><br/>
		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 ='confirmed', booking_status ='1', status_date ='2024-02-08 05:54:42', create_date ='2024-02-08 05:54:42', source_type ='expediapackage', expiration_date ='2024-04-20 11:00:00', comment_contract =' Bed Type Selection is not guaranteed.<br/><span style=\'color: red;\'><strong>Note</strong>: Nightly rates might be calculated based on the average of Total Rate</span><br><br><b>Amenities:</b>Free self parking, Free WiFi<br><br><b>Deal:</b> Private sale,<br><br/><br/><br/><b>Checkin Start Time :</b> , <br/><b>Checkin End Time :</b> , <br/><b>Min Checkin Age :</b> , <br/><b>Checkout Time :</b> ,<br/><b>Instructions :</b> ,<br/><b>Special Instructions :</b> ,<br/><b>Important Note :</b> Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='8.450', wh_sub_agent_rate ='0.000', wh_agent_rate ='10.560', supplier_rate ='8.450', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='0', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='0', 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 06:10:41', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:10: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 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='180', old_reff_id ='107', booking_id ='381', supplier_id ='', 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 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '353', old_reff_id = '107', booking_id = '381', booking_detail_id = '1', salutations = 'Mr', room = '0', rid = '183', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '354', old_reff_id = '107', booking_id = '381', booking_detail_id = '1', salutations = 'Mr', room = '0', rid = '183', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '183', old_reff_id = '107', booking_id = '381', booking_detail_id = '1', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)- <font color=\'red\'>Package Deal</font> <b><font color=\'#265db7\'>(Private sale)</font></b><br>(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:3:{s:18:"displayNightlyRate";d:8.4499999999999993;s:25:"displayNightlyRateDisplay";s:195:"Rate - 8.45, Currency Multiplier (USD-USD) - 1.00000, Markup in % - 0.00%, Markup Amount - 0, Markup Amount in SAR- 0.00, Supplier Commission - 0.51 USD, Marketing Fee - 0.51  USD #expediapackage";s:13:"whNightlyRate";d:10.56;}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";d:8.4499999999999993;}}' ,native_room_rate_total = '8.45' ,display_room_rate_total = '8.45' ,wh_room_rate_total = '10.56' ,number_of_rooms = '1';
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '381', booking_detail_id = '180', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)- Package Deal (Private sale)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:1:"9";s:13:"whNightlyRate";s:5:"11.25";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:4:"8.45";}}' ,native_room_rate_total = '8.45' ,display_room_rate_total = '9' ,number_of_rooms = '1';
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '', rid = '313', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '1', rid = '313', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7624452078540',voucher_id='',voucher_hashcode='',native_currency_code='USD',display_currency_code='USD',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 10.56 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.508875739645',agent_markup='6.508875739645',consultant_id='Ayman',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000'_native,agent_currency_multiplier='1.00000',current_status='confirmed',status_date='2024-04-03 06:10:41',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '9',display_discount='0',modified_datetime='2024-04-03 06:10:41',modified_by ='Ayman',native_room_rate='8.45',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-04-20 11:00:00',source_type='expediapackage',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;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Private sale,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='381';
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='9', agent_markup='6.508875739645', supplier_rate='8.45', wh_sub_agent_rate='', wh_agent_rate='11.25' where id='381';
[04/03/2024 06:10:41], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '1', 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 ='381';
[04/03/2024 06:10: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
		('','','381','confirmed','2024-04-03 06:10:41','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:10:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into temp(booking_id,mail_send_to)values('381','deepak.trivedi@qtechsoftware.com');
[04/03/2024 06:25:32], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],update bookings set invoice_number= '2024/00080', voucher_id='12345',status_date='2024-04-03 06:25:32',current_status='vouchered',voucher_hashcode='ee9fd6730dc580981a9e44d82ffea51834954381',vouchered_by ='Ayman' where id='381';
[04/03/2024 06:25:32], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],update bookings set is_invoiced='yes',invoice_number= '2024/00081' where id='381' and is_invoiced!='yes';
[04/03/2024 06:25:32], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],UPDATE agents SET credit_usage=credit_usage+('9'),   credit_value= credit_value-('9') ,  cd_credit_usage=cd_credit_usage+('9') , cd_credit_value=cd_credit_value-('9')  WHERE id = '7863';
[04/03/2024 06:25:32], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998248.570',credit_usage= '751.430',credit_limit= '999999000.000',receipt_id= '',amount= '9',booking_id='381',booking_cost= '9',receipt_allocation= '',balance= '9',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Add Invoice',note='Add Invoice',create_date='2024-04-03 06:04:32';
[04/03/2024 06:25:32], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],UPDATE agents  SET credit_usage=credit_usage+('11.25'),   credit_value= credit_value-('11.25') ,  cd_credit_usage=cd_credit_usage+('11.25') , cd_credit_value=cd_credit_value-('11.25')  WHERE id = '7866';
[04/03/2024 06:25:32], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1575.100',credit_usage= '1575.100',credit_limit= '10000.000',receipt_id= '',amount= '11.25',booking_id='381',booking_cost= '9',receipt_allocation= '',balance= '9',ip='43.239.53.130',user_type='admin',admin_id='Ayman',temp_credit_limit='',log_type='Add Invoice',note='Add Invoice',create_date='2024-04-03 06:04:32';
[04/03/2024 06:25:32], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php], insert into wh_booking_rate_info set  booking_id = '381', booking_log = 'Booking Vouchered', create_date = '2024-04-03 06:25:32', type = 'Sale', agent_price = '11.250', sub_agent_price = '0.000', supplier_price = '9.000';
[04/03/2024 06:25:32], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php], insert into booking_rate_info set  booking_id = '381', booking_log = 'Booking Vouchered', create_date = '2024-04-03 06:25:32', supplier_currency ='USD', type = 'Sale', agent_price = '9', sub_agent_price ='', supplier_price = '8.450', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:25:36], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','381','vouchered-invoiced','2024-04-03 06:25:36',' by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:25:36], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],INSERT INTO agent_commission SET booking_id ='381',booking_detail_id ='381',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='0.55',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 6.508875739645 %',create_date ='2024-04-03 06:25:36';
[04/03/2024 06:25:36], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','381','vouchered','2024-04-03 06:25:36','Vouchered By Ayman by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:25:37], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],insert into temp(booking_id,mail_send_to)values('381','deepak.trivedi@qtechsoftware.com');
[04/03/2024 06:25:38], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],insert into temp(booking_id,mail_send_to)values('381','sujay.raut@qtechsoftware.com');
[04/03/2024 06:25:39], [file name :-/home/otrams/public_html/beta/tms/add_voucher.php],insert into temp(booking_id,mail_send_to)values('381','branch@email.com');
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='381', agent_id ='7863', itenirary_id ='7624452078540', confirmation_number ='7624452078540', payment_confirmation_no ='', voucher_id ='12345', voucher_hashcode ='ee9fd6730dc580981a9e44d82ffea51834954381', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='9.000', native_room_rate ='8.450', 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 10.56 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:25:32', create_date ='2024-02-08 05:54:42', source_type ='expediapackage', 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;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Private sale,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='9.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='11.250', supplier_rate ='8.450', 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.508875739645', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='6.508875739645', 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 06:25:59', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:25:59', 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 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='180', old_reff_id ='108', booking_id ='381', supplier_id ='expediapack', 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 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '598', old_reff_id = '108', booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '0', rid = '313', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '599', old_reff_id = '108', booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '1', rid = '313', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '313', old_reff_id = '108', booking_id = '381', booking_detail_id = '180', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)- Package Deal (Private sale)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:1:"9";s:13:"whNightlyRate";s:5:"11.25";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:4:"8.45";}}' ,native_room_rate_total = '8.45' ,display_room_rate_total = '9' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '381', booking_detail_id = '180', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)- Package Deal (Private sale)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:1:"4";s:13:"whNightlyRate";s:1:"5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:4:"8.45";}}' ,native_room_rate_total = '8.45' ,display_room_rate_total = '4' ,number_of_rooms = '1';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '', rid = '314', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '1', rid = '314', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7624452078540',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 10.56 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='-52.662721893491',agent_markup='-52.662721893491',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 06:25:59',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '4',display_discount='0',modified_datetime='2024-04-03 06:25:59',modified_by ='Ayman',native_room_rate='8.45',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-04-20 11:00:00',source_type='expediapackage',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;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Private sale,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='381';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='4', agent_markup='-52.662721893491', supplier_rate='8.45', wh_sub_agent_rate='', wh_agent_rate='5' where id='381';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '381', booking_log = 'Booking Modified', create_date = '2024-04-03 06:25:59', supplier_currency ='USD', type = 'Ammended', agent_price = '-5', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '381', booking_log = 'Booking Modified', create_date = '2024-04-03 06:25:59', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapack', supplier_type = 'online';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '381', booking_log = 'Booking Modified', create_date = '2024-04-03 06:25:59', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '8.450', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '381', booking_log = 'Booking Modified', create_date = '2024-04-03 06:25:59', agent_price = '5.000', sub_agent_price = '0.000', supplier_price = '4.000' where booking_id = '381'  and type = "Sale";
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('-5'),   credit_value= credit_value-('-5') ,  cd_credit_usage=cd_credit_usage+('-5') , cd_credit_value=cd_credit_value-('-5')  WHERE id = '7863';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998253.570',credit_usage= '746.430',credit_limit= '999999000.000',receipt_id= '',amount= '-5',booking_id='381',booking_cost= '4',receipt_allocation= '',balance= '4',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 06:04:59';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('-6.25'),   credit_value= credit_value-('-6.25') ,  cd_credit_usage=cd_credit_usage+('-6.25') , cd_credit_value=cd_credit_value-('-6.25')  WHERE id = '7866';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1568.850',credit_usage= '1568.850',credit_limit= '10000.000',receipt_id= '',amount= '-6.25',booking_id='381',booking_cost= '4',receipt_allocation= '',balance= '4',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 06:04:59';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='381';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='381',booking_detail_id ='381',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='-4.4499999999999',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is -52.66272189349 %',create_date ='2024-04-03 06:25:59';
[04/03/2024 06:25:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '1', 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 ='381';
[04/03/2024 06:25:59], [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
		('','','381','vouchered','2024-04-03 06:25:59','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:26:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into temp(booking_id,mail_send_to)values('381','deepak.trivedi@qtechsoftware.com');
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='381', agent_id ='7863', itenirary_id ='7624452078540', confirmation_number ='7624452078540', payment_confirmation_no ='', voucher_id ='12345', voucher_hashcode ='ee9fd6730dc580981a9e44d82ffea51834954381', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='4.000', native_room_rate ='8.450', 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 10.56 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:25:59', create_date ='2024-02-08 05:54:42', source_type ='expediapackage', 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;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Private sale,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='4.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='5.000', supplier_rate ='8.450', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='-52.66272189349', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='-52.66272189349', 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 06:30:58', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:30: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 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='180', old_reff_id ='109', booking_id ='381', supplier_id ='expediapack', 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 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '600', old_reff_id = '109', booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '0', rid = '314', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '601', old_reff_id = '109', booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '1', rid = '314', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '314', old_reff_id = '109', booking_id = '381', booking_detail_id = '180', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)- Package Deal (Private sale)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:1:"4";s:13:"whNightlyRate";s:1:"5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:4:"8.45";}}' ,native_room_rate_total = '8.45' ,display_room_rate_total = '4' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '381', booking_detail_id = '180', room_type_code = '', room_name = 'double', room_type_description = 'FullBed Standard Double Room with Fan(Room Only)- Package Deal (Private sale)(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:4:"8.45";}}' ,native_room_rate_total = '8.45' ,display_room_rate_total = '10' ,number_of_rooms = '1';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '', rid = '315', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '381', booking_detail_id = '180', salutations = 'Mr', room = '1', rid = '315', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7624452078540',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 10.56 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='18.343195266272',agent_markup='18.343195266272',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 06:30:58',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '10',display_discount='0',modified_datetime='2024-04-03 06:30:58',modified_by ='Ayman',native_room_rate='8.45',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-04-20 11:00:00',source_type='expediapackage',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;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Private sale,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='381';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='10', agent_markup='18.343195266272', supplier_rate='8.45', wh_sub_agent_rate='', wh_agent_rate='12.5' where id='381';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '381', booking_log = 'Booking Modified', create_date = '2024-04-03 06:30:58', supplier_currency ='USD', type = 'Ammended', agent_price = '6', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '381', booking_log = 'Booking Modified', create_date = '2024-04-03 06:30:58', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapack', supplier_type = 'online';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '381', booking_log = 'Booking Modified', create_date = '2024-04-03 06:30:58', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '8.450', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '381', booking_log = 'Booking Modified', create_date = '2024-04-03 06:30:58', agent_price = '12.500', sub_agent_price = '0.000', supplier_price = '10.000' where booking_id = '381'  and type = "Sale";
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('6'),   credit_value= credit_value-('6') ,  cd_credit_usage=cd_credit_usage+('6') , cd_credit_value=cd_credit_value-('6')  WHERE id = '7863';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998247.570',credit_usage= '752.430',credit_limit= '999999000.000',receipt_id= '',amount= '6',booking_id='381',booking_cost= '10',receipt_allocation= '',balance= '10',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 06:04:58';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('7.5'),   credit_value= credit_value-('7.5') ,  cd_credit_usage=cd_credit_usage+('7.5') , cd_credit_value=cd_credit_value-('7.5')  WHERE id = '7866';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1576.350',credit_usage= '1576.350',credit_limit= '10000.000',receipt_id= '',amount= '7.5',booking_id='381',booking_cost= '10',receipt_allocation= '',balance= '10',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 06:04:58';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='381';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='381',booking_detail_id ='381',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='1.55',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 18.343195266272 %',create_date ='2024-04-03 06:30:58';
[04/03/2024 06:30:58], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '1', 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 ='381';
[04/03/2024 06:30: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
		('','','381','vouchered','2024-04-03 06:30:58','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:30:59], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into temp(booking_id,mail_send_to)values('381','deepak.trivedi@qtechsoftware.com');
[04/03/2024 06:38:40], [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 ='15.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 06:04: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 ='15.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='68.750', 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 ='-53.13964386129', wh_applied_markup ='25.000', original_voucher ='', subagent_markup ='', agent_markup ='-53.13964386129', 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 06:38:40', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:38:40', 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 06:38:40], [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 ='110', 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 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '594', old_reff_id = '110', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '311', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '595', old_reff_id = '110', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '311', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '596', old_reff_id = '110', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '312', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '597', old_reff_id = '110', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '312', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '311', old_reff_id = '110', 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:1:"5";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 = '10' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '312', old_reff_id = '110', 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:1:"5";s:13:"whNightlyRate";s:5:"18.75";}}' ,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 = '5' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:38:40], [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:"31.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 = '20' ,number_of_rooms = '2';
[04/03/2024 06:38:40], [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 = '316', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 06:38:40], [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 = '316', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:38:40], [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 06:38:40], [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 = '317', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:38:40], [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 = '317', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 06:38:40], [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 06:38:40',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '30',display_discount='0',modified_datetime='2024-04-03 06:38:40',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 06:38:40], [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='100' where id='383';
[04/03/2024 06:38:40], [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 06:38:40', supplier_currency ='USD', type = 'Ammended', agent_price = '15', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 06:38:40], [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 06:38:40', agent_price = '100.000', sub_agent_price = '0.000', supplier_price = '30.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('15'),   credit_value= credit_value-('15') ,  cd_credit_usage=cd_credit_usage+('15') , cd_credit_value=cd_credit_value-('15')  WHERE id = '7863';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998232.570',credit_usage= '767.430',credit_limit= '999999000.000',receipt_id= '',amount= '15',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 06:04:40';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('31.25'),   credit_value= credit_value-('31.25') ,  cd_credit_usage=cd_credit_usage+('31.25') , cd_credit_value=cd_credit_value-('31.25')  WHERE id = '7866';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1607.600',credit_usage= '1607.600',credit_limit= '10000.000',receipt_id= '',amount= '31.25',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 06:04:40';
[04/03/2024 06:38:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 06:38:40], [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 06:38:40';
[04/03/2024 06:38:40], [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 06:38:40], [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 06:38:40','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:38:41], [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 06:45:38], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='301', agent_id ='7863', itenirary_id ='7836835171571', confirmation_number ='7836835171571', payment_confirmation_no ='', voucher_id ='33', voucher_hashcode ='993828d8536a85f7e9238e514869385082138301', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='260.000', native_room_rate ='200.000', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																				Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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-03-28 12:42:36', create_date ='2024-01-19 11:04:03', source_type ='expediapackage', expiration_date ='2024-05-14 16:59: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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='260.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='251.260', supplier_rate ='200.000', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='v3alpha', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='30', wh_applied_markup ='0.500', original_voucher ='', subagent_markup ='', agent_markup ='30', wh_agent_markup ='0.500', 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 06:45:38', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:45:38', 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 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='166', old_reff_id ='111', booking_id ='301', supplier_id ='expediapack', total_nights ='1', arrival_date ='2024/05/16', departure_date ='2024/05/17', hotel_id ='2510986', hotel_name ='Phuketa Hotel', hotel_address1 ='24/5 Moo 6, Thepkrasatri Rd.', hotel_phone ='+6676241427', hotel_rating ='4.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '533', old_reff_id = '111', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '280', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '534', old_reff_id = '111', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '280', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '280', old_reff_id = '111', booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"130";s:13:"whNightlyRate";s:6:"125.63";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '260' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"120";s:13:"whNightlyRate";s:5:"241.2";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '240' ,number_of_rooms = '2';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '318', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '318', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7836835171571',cancellation_policy='																																										Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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='20',agent_markup='20',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 06:45:39',service_date='2024-05-16',check_out_date='2024-05-17',display_room_rate= '240',display_discount='0',modified_datetime='2024-04-03 06:45:39',modified_by ='Ayman',native_room_rate='200',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-05-14 16:59:00',source_type='expediapackage',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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='301';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='240', agent_markup='20', supplier_rate='200', wh_sub_agent_rate='', wh_agent_rate='482.4' where id='301';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:45:39', supplier_currency ='USD', type = 'Ammended', agent_price = '-20', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:45:39', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapack', supplier_type = 'online';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:45:39', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '200.000', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:45:39', agent_price = '482.400', sub_agent_price = '0.000', supplier_price = '240.000' where booking_id = '301'  and type = "Sale";
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('-20'),   credit_value= credit_value-('-20') ,  cd_credit_usage=cd_credit_usage+('-20') , cd_credit_value=cd_credit_value-('-20')  WHERE id = '7863';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998252.570',credit_usage= '747.430',credit_limit= '999999000.000',receipt_id= '',amount= '-20',booking_id='301',booking_cost= '240',receipt_allocation= '',balance= '240',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 06:04:39';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('231.14'),   credit_value= credit_value-('231.14') ,  cd_credit_usage=cd_credit_usage+('231.14') , cd_credit_value=cd_credit_value-('231.14')  WHERE id = '7866';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1838.740',credit_usage= '1838.740',credit_limit= '10000.000',receipt_id= '',amount= '231.14',booking_id='301',booking_cost= '240',receipt_allocation= '',balance= '240',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 06:04:39';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='301';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='301',booking_detail_id ='301',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='40',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 20 %',create_date ='2024-04-03 06:45:39';
[04/03/2024 06:45:39], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '2', arrival_date='2024/05/16', departure_date='2024/05/17', rate_code='~', hotel_address1='24/5 Moo 6, Thepkrasatri Rd.', hotel_name='Phuketa Hotel', hotel_phone='+6676241427' where booking_id ='301';
[04/03/2024 06:45:39], [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
		('','','301','vouchered','2024-04-03 06:45:39','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:45:40], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into temp(booking_id,mail_send_to)values('301','deepak.trivedi@qtechsoftware.com');
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='301', agent_id ='7863', itenirary_id ='7836835171571', confirmation_number ='7836835171571', payment_confirmation_no ='', voucher_id ='33', voucher_hashcode ='993828d8536a85f7e9238e514869385082138301', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='240.000', native_room_rate ='200.000', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																										Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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:45:39', create_date ='2024-01-19 11:04:03', source_type ='expediapackage', expiration_date ='2024-05-14 16:59: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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='240.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='482.400', supplier_rate ='200.000', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='20', wh_applied_markup ='0.500', original_voucher ='', subagent_markup ='', agent_markup ='20', wh_agent_markup ='0.500', 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 06:47:45', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:47:45', 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 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='166', old_reff_id ='112', booking_id ='301', supplier_id ='expediapack', total_nights ='1', arrival_date ='2024/05/16', departure_date ='2024/05/17', hotel_id ='2510986', hotel_name ='Phuketa Hotel', hotel_address1 ='24/5 Moo 6, Thepkrasatri Rd.', hotel_phone ='+6676241427', hotel_rating ='4.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '608', old_reff_id = '112', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '318', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '609', old_reff_id = '112', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '318', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '318', old_reff_id = '112', booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"120";s:13:"whNightlyRate";s:5:"241.2";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '240' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"200";s:13:"whNightlyRate";s:3:"402";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '400' ,number_of_rooms = '2';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '319', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '319', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7836835171571',cancellation_policy='																																																Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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='100',agent_markup='100',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 06:47:45',service_date='2024-05-16',check_out_date='2024-05-17',display_room_rate= '400',display_discount='0',modified_datetime='2024-04-03 06:47:45',modified_by ='Ayman',native_room_rate='200',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-05-14 16:59:00',source_type='expediapackage',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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='301';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='400', agent_markup='100', supplier_rate='200', wh_sub_agent_rate='', wh_agent_rate='804' where id='301';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:47:45', supplier_currency ='USD', type = 'Ammended', agent_price = '160', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:47:45', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapack', supplier_type = 'online';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:47:45', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '200.000', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:47:45', agent_price = '804.000', sub_agent_price = '0.000', supplier_price = '400.000' where booking_id = '301'  and type = "Sale";
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('160'),   credit_value= credit_value-('160') ,  cd_credit_usage=cd_credit_usage+('160') , cd_credit_value=cd_credit_value-('160')  WHERE id = '7863';
[04/03/2024 06:47:45], [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= '160',booking_id='301',booking_cost= '400',receipt_allocation= '',balance= '400',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 06:04:45';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('321.6'),   credit_value= credit_value-('321.6') ,  cd_credit_usage=cd_credit_usage+('321.6') , cd_credit_value=cd_credit_value-('321.6')  WHERE id = '7866';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-2160.340',credit_usage= '2160.340',credit_limit= '10000.000',receipt_id= '',amount= '321.6',booking_id='301',booking_cost= '400',receipt_allocation= '',balance= '400',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 06:04:45';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='301';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='301',booking_detail_id ='301',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='200',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 100 %',create_date ='2024-04-03 06:47:45';
[04/03/2024 06:47:45], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '2', arrival_date='2024/05/16', departure_date='2024/05/17', rate_code='~', hotel_address1='24/5 Moo 6, Thepkrasatri Rd.', hotel_name='Phuketa Hotel', hotel_phone='+6676241427' where booking_id ='301';
[04/03/2024 06:47:45], [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
		('','','301','vouchered','2024-04-03 06:47:45','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:47:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into temp(booking_id,mail_send_to)values('301','deepak.trivedi@qtechsoftware.com');
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='301', agent_id ='7863', itenirary_id ='7836835171571', confirmation_number ='7836835171571', payment_confirmation_no ='', voucher_id ='33', voucher_hashcode ='993828d8536a85f7e9238e514869385082138301', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='400.000', native_room_rate ='200.000', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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:47:45', create_date ='2024-01-19 11:04:03', source_type ='expediapackage', expiration_date ='2024-05-14 16:59: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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='400.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='804.000', supplier_rate ='200.000', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='100', wh_applied_markup ='0.500', original_voucher ='', subagent_markup ='', agent_markup ='100', wh_agent_markup ='0.500', 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 06:51:32', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:51:32', 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 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='166', old_reff_id ='113', booking_id ='301', supplier_id ='expediapack', total_nights ='1', arrival_date ='2024/05/16', departure_date ='2024/05/17', hotel_id ='2510986', hotel_name ='Phuketa Hotel', hotel_address1 ='24/5 Moo 6, Thepkrasatri Rd.', hotel_phone ='+6676241427', hotel_rating ='4.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '610', old_reff_id = '113', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '319', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '611', old_reff_id = '113', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '319', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '319', old_reff_id = '113', booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"200";s:13:"whNightlyRate";s:3:"402";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '400' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"100";s:13:"whNightlyRate";s:3:"201";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '200' ,number_of_rooms = '2';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '320', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '320', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7836835171571',cancellation_policy='																																																						Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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='0',agent_markup='0',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 06:51:32',service_date='2024-05-16',check_out_date='2024-05-17',display_room_rate= '200',display_discount='0',modified_datetime='2024-04-03 06:51:32',modified_by ='Ayman',native_room_rate='200',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-05-14 16:59:00',source_type='expediapackage',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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='301';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='200', agent_markup='0', supplier_rate='200', wh_sub_agent_rate='', wh_agent_rate='402' where id='301';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:51:32', supplier_currency ='USD', type = 'Ammended', agent_price = '-200', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:51:32', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapack', supplier_type = 'online';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:51:32', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '200.000', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:51:32', agent_price = '402.000', sub_agent_price = '0.000', supplier_price = '200.000' where booking_id = '301'  and type = "Sale";
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('-200'),   credit_value= credit_value-('-200') ,  cd_credit_usage=cd_credit_usage+('-200') , cd_credit_value=cd_credit_value-('-200')  WHERE id = '7863';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998292.570',credit_usage= '707.430',credit_limit= '999999000.000',receipt_id= '',amount= '-200',booking_id='301',booking_cost= '200',receipt_allocation= '',balance= '200',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 06:04:32';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('-402'),   credit_value= credit_value-('-402') ,  cd_credit_usage=cd_credit_usage+('-402') , cd_credit_value=cd_credit_value-('-402')  WHERE id = '7866';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1758.340',credit_usage= '1758.340',credit_limit= '10000.000',receipt_id= '',amount= '-402',booking_id='301',booking_cost= '200',receipt_allocation= '',balance= '200',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 06:04:32';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='301';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='301',booking_detail_id ='301',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='0',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 0 %',create_date ='2024-04-03 06:51:32';
[04/03/2024 06:51:32], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '2', arrival_date='2024/05/16', departure_date='2024/05/17', rate_code='~', hotel_address1='24/5 Moo 6, Thepkrasatri Rd.', hotel_name='Phuketa Hotel', hotel_phone='+6676241427' where booking_id ='301';
[04/03/2024 06:51:32], [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
		('','','301','vouchered','2024-04-03 06:51:32','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:51:33], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into temp(booking_id,mail_send_to)values('301','deepak.trivedi@qtechsoftware.com');
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='301', agent_id ='7863', itenirary_id ='7836835171571', confirmation_number ='7836835171571', payment_confirmation_no ='', voucher_id ='33', voucher_hashcode ='993828d8536a85f7e9238e514869385082138301', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='200.000', native_room_rate ='200.000', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																						Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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:51:32', create_date ='2024-01-19 11:04:03', source_type ='expediapackage', expiration_date ='2024-05-14 16:59: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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='200.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='402.000', supplier_rate ='200.000', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='0', wh_applied_markup ='0.500', original_voucher ='', subagent_markup ='', agent_markup ='0', wh_agent_markup ='0.500', 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 06:51:54', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:51:54', 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 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='166', old_reff_id ='114', booking_id ='301', supplier_id ='expediapack', total_nights ='1', arrival_date ='2024/05/16', departure_date ='2024/05/17', hotel_id ='2510986', hotel_name ='Phuketa Hotel', hotel_address1 ='24/5 Moo 6, Thepkrasatri Rd.', hotel_phone ='+6676241427', hotel_rating ='4.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '612', old_reff_id = '114', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '320', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '613', old_reff_id = '114', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '320', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '320', old_reff_id = '114', booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"100";s:13:"whNightlyRate";s:3:"201";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '200' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"100";s:13:"whNightlyRate";s:5:"100.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '200' ,number_of_rooms = '2';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '321', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '321', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7836835171571',cancellation_policy='																																																												Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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='0',agent_markup='0',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 06:51:54',service_date='2024-05-16',check_out_date='2024-05-17',display_room_rate= '200',display_discount='0',modified_datetime='2024-04-03 06:51:54',modified_by ='Ayman',native_room_rate='200',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-05-14 16:59:00',source_type='expediapackage',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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='301';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='200', agent_markup='0', supplier_rate='200', wh_sub_agent_rate='', wh_agent_rate='201' where id='301';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:51:54', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapack', supplier_type = 'online';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:51:54', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '200.000', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:51:54', agent_price = '201.000', sub_agent_price = '0.000', supplier_price = '200.000' where booking_id = '301'  and type = "Sale";
[04/03/2024 06:51:54], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '2', arrival_date='2024/05/16', departure_date='2024/05/17', rate_code='~', hotel_address1='24/5 Moo 6, Thepkrasatri Rd.', hotel_name='Phuketa Hotel', hotel_phone='+6676241427' where booking_id ='301';
[04/03/2024 06:51:54], [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
		('','','301','vouchered','2024-04-03 06:51:54','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='301', agent_id ='7863', itenirary_id ='7836835171571', confirmation_number ='7836835171571', payment_confirmation_no ='', voucher_id ='33', voucher_hashcode ='993828d8536a85f7e9238e514869385082138301', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='200.000', native_room_rate ='200.000', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																												Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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:51:54', create_date ='2024-01-19 11:04:03', source_type ='expediapackage', expiration_date ='2024-05-14 16:59: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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='200.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='201.000', supplier_rate ='200.000', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='0', wh_applied_markup ='0.500', original_voucher ='', subagent_markup ='', agent_markup ='0', wh_agent_markup ='0.500', 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 06:52:24', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:52:24', 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 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='166', old_reff_id ='115', booking_id ='301', supplier_id ='expediapack', total_nights ='1', arrival_date ='2024/05/16', departure_date ='2024/05/17', hotel_id ='2510986', hotel_name ='Phuketa Hotel', hotel_address1 ='24/5 Moo 6, Thepkrasatri Rd.', hotel_phone ='+6676241427', hotel_rating ='4.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '614', old_reff_id = '115', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '321', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '615', old_reff_id = '115', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '321', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '321', old_reff_id = '115', booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"100";s:13:"whNightlyRate";s:5:"100.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '200' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"200";s:13:"whNightlyRate";s:5:"100.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '400' ,number_of_rooms = '2';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '322', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '322', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7836835171571',cancellation_policy='																																																																		Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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='100',agent_markup='100',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 06:52:24',service_date='2024-05-16',check_out_date='2024-05-17',display_room_rate= '400',display_discount='0',modified_datetime='2024-04-03 06:52:24',modified_by ='Ayman',native_room_rate='200',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-05-14 16:59:00',source_type='expediapackage',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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='301';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='400', agent_markup='100', supplier_rate='200', wh_sub_agent_rate='', wh_agent_rate='201' where id='301';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:52:24', supplier_currency ='USD', type = 'Ammended', agent_price = '200', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:52:24', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapack', supplier_type = 'online';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:52:24', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '200.000', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:52:24', agent_price = '201.000', sub_agent_price = '0.000', supplier_price = '400.000' where booking_id = '301'  and type = "Sale";
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('200'),   credit_value= credit_value-('200') ,  cd_credit_usage=cd_credit_usage+('200') , cd_credit_value=cd_credit_value-('200')  WHERE id = '7863';
[04/03/2024 06:52:24], [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= '200',booking_id='301',booking_cost= '400',receipt_allocation= '',balance= '400',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 06:04:24';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('0'),   credit_value= credit_value-('0') ,  cd_credit_usage=cd_credit_usage+('0') , cd_credit_value=cd_credit_value-('0')  WHERE id = '7866';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1758.340',credit_usage= '1758.340',credit_limit= '10000.000',receipt_id= '',amount= '',booking_id='301',booking_cost= '400',receipt_allocation= '',balance= '400',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 06:04:24';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='301';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='301',booking_detail_id ='301',agent_id ='7863',is_sub_agent ='N',parent_id ='',display_commission ='200',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 100 %',create_date ='2024-04-03 06:52:24';
[04/03/2024 06:52:24], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '2', arrival_date='2024/05/16', departure_date='2024/05/17', rate_code='~', hotel_address1='24/5 Moo 6, Thepkrasatri Rd.', hotel_name='Phuketa Hotel', hotel_phone='+6676241427' where booking_id ='301';
[04/03/2024 06:52:24], [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
		('','','301','vouchered','2024-04-03 06:52:24','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='301', agent_id ='7863', itenirary_id ='7836835171571', confirmation_number ='7836835171571', payment_confirmation_no ='', voucher_id ='33', voucher_hashcode ='993828d8536a85f7e9238e514869385082138301', email_id ='', leader_title ='Mr', leader_first_name ='Sujay', leader_last_name ='Raut', city_id ='phuket', country_id ='136', display_room_rate ='400.000', native_room_rate ='200.000', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='																																																																		Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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:52:24', create_date ='2024-01-19 11:04:03', source_type ='expediapackage', expiration_date ='2024-05-14 16:59: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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='400.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='201.000', supplier_rate ='200.000', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='Ayman', admin_booked ='0', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='100', wh_applied_markup ='0.500', original_voucher ='', subagent_markup ='', agent_markup ='100', wh_agent_markup ='0.500', 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 06:52:46', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:52:46', 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 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='166', old_reff_id ='116', booking_id ='301', supplier_id ='expediapack', total_nights ='1', arrival_date ='2024/05/16', departure_date ='2024/05/17', hotel_id ='2510986', hotel_name ='Phuketa Hotel', hotel_address1 ='24/5 Moo 6, Thepkrasatri Rd.', hotel_phone ='+6676241427', hotel_rating ='4.0', rate_code ='~', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='', reservation_pushed ='0', gtaToken ='';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '616', old_reff_id = '116', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '322', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '617', old_reff_id = '116', booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '0', rid = '322', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '322', old_reff_id = '116', booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"200";s:13:"whNightlyRate";s:5:"100.5";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '400' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '301', booking_detail_id = '166', room_type_code = '', room_name = 'single', room_type_description = 'FullBed Deluxe Front View (Double)(Room Only)- Package Deal (Book now and save)(1 Double Bed)', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"200";s:13:"whNightlyRate";s:3:"201";}}' ,native_nightly_rates = 'a:1:{i:0;a:1:{s:17:"nativeNightlyRate";s:3:"100";}}' ,native_room_rate_total = '200' ,display_room_rate_total = '400' ,number_of_rooms = '2';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '323', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '301', booking_detail_id = '166', salutations = 'Mr', room = '', rid = '323', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='7836835171571',cancellation_policy='																																																																								Free cancellation up to  19:58:59 on  2024-05-14&lt;br&gt;If you cancel between 2024-05-14 19:59:00 and 2024-05-16 00:00:00 , you will be charged 48.02 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 19:59 on 14th of May 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='100',agent_markup='100',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 06:52:46',service_date='2024-05-16',check_out_date='2024-05-17',display_room_rate= '400',display_discount='0',modified_datetime='2024-04-03 06:52:46',modified_by ='Ayman',native_room_rate='200',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Sujay',leader_last_name='Raut',nationality ='Emirati',booking_type ='online',supplier_profile_id ='43',expiration_date= '2024-05-14 16:59:00',source_type='expediapackage',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 parking, Free WiFi&lt;br&gt;&lt;br&gt;&lt;b&gt;Deal:&lt;/b&gt; Book now and save,&lt;br&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;Important Note :&lt;/b&gt; Agent agree that this rate is being sold with approved transport component.' WHERE id='301';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='400', agent_markup='100', supplier_rate='200', wh_sub_agent_rate='', wh_agent_rate='402' where id='301';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:52:46', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '', supplier_id = 'expediapack', supplier_type = 'online';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], insert into booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:52:46', supplier_currency ='USD', type = 'Ammended', agent_price = '', sub_agent_price ='', supplier_price = '200.000', supplier_id = 'expediapackage', supplier_type = 'online';
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '301', booking_log = 'Booking Modified', create_date = '2024-04-03 06:52:46', agent_price = '402.000', sub_agent_price = '0.000', supplier_price = '400.000' where booking_id = '301'  and type = "Sale";
[04/03/2024 06:52:46], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'expediapackage' , total_rooms= '2', arrival_date='2024/05/16', departure_date='2024/05/17', rate_code='~', hotel_address1='24/5 Moo 6, Thepkrasatri Rd.', hotel_name='Phuketa Hotel', hotel_phone='+6676241427' where booking_id ='301';
[04/03/2024 06:52:46], [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
		('','','301','vouchered','2024-04-03 06:52:46','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:52:47], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into temp(booking_id,mail_send_to)values('301','deepak.trivedi@qtechsoftware.com');
[04/03/2024 06:54:42], [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 06:38:40', 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 ='100.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 ='-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 06:54:42', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:54:42', 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 06:54:42], [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 ='117', 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 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '604', old_reff_id = '117', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '316', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '605', old_reff_id = '117', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '316', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '606', old_reff_id = '117', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '317', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '607', old_reff_id = '117', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '317', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '316', old_reff_id = '117', 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:"31.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 = '20' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '317', old_reff_id = '117', 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 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:54:42], [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:1:"5";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 = '10' ,number_of_rooms = '2';
[04/03/2024 06:54:42], [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 = '324', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 06:54:42], [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 = '324', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:54:42], [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:"15";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 = '15' ,number_of_rooms = '1';
[04/03/2024 06:54:42], [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 = '325', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:54:42], [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 = '325', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 06:54:42], [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='-21.899406435489',agent_markup='-21.899406435489',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 06:54:42',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '25',display_discount='0',modified_datetime='2024-04-03 06:54:42',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 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='25', agent_markup='-21.899406435489', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='37.5' where id='383';
[04/03/2024 06:54:42], [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 06:54:42', supplier_currency ='USD', type = 'Ammended', agent_price = '-5', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 06:54:42], [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 06:54:42', agent_price = '37.500', sub_agent_price = '0.000', supplier_price = '25.000' where booking_id = '383'  and type = "Sale";
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents SET credit_usage=credit_usage+('-5'),   credit_value= credit_value-('-5') ,  cd_credit_usage=cd_credit_usage+('-5') , cd_credit_value=cd_credit_value-('-5')  WHERE id = '7863';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998097.570',credit_usage= '902.430',credit_limit= '999999000.000',receipt_id= '',amount= '-5',booking_id='383',booking_cost= '25',receipt_allocation= '',balance= '25',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 06:04:42';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('-62.5'),   credit_value= credit_value-('-62.5') ,  cd_credit_usage=cd_credit_usage+('-62.5') , cd_credit_value=cd_credit_value-('-62.5')  WHERE id = '7866';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1695.840',credit_usage= '1695.840',credit_limit= '10000.000',receipt_id= '',amount= '-62.5',booking_id='383',booking_cost= '25',receipt_allocation= '',balance= '25',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 06:04:42';
[04/03/2024 06:54:42], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 06:54:42], [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.0099999999971',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is -21.89940643548 %',create_date ='2024-04-03 06:54:42';
[04/03/2024 06:54:42], [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 06:54:42], [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 06:54:42','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
[04/03/2024 06:55:00], [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 ='25.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 06:54:42', 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 ='25.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 ='-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 06:55:00', modified_by ='Ayman', display_currency_code ='USD', created_datetime ='2024-04-03 06:55:00', 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 06:55:00], [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 ='118', 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 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '620', old_reff_id = '118', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '324', first_name = 'TBac', last_name = 'TBAc' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '621', old_reff_id = '118', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '324', first_name = 'TBA', last_name = 'TBA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '622', old_reff_id = '118', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '0', rid = '325', first_name = 'Sujay', last_name = 'Raut' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '623', old_reff_id = '118', booking_id = '383', booking_detail_id = '182', salutations = 'Mr', room = '1', rid = '325', first_name = 'TBAA', last_name = 'TBAA' ,passenger_type = 'adult' ,age = '';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '324', old_reff_id = '118', 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:1:"5";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 = '10' ,wh_room_rate_total = '' ,number_of_rooms = '2';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '325', old_reff_id = '118', 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:"15";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 = '15' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[04/03/2024 06:55:00], [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: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' ,number_of_rooms = '2';
[04/03/2024 06:55:00], [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 = '326', first_name = 'TBac', last_name = 'TBAc' ,age = '';
[04/03/2024 06:55:00], [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 = '326', first_name = 'TBA', last_name = 'TBA' ,age = '';
[04/03/2024 06:55:00], [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: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' ,number_of_rooms = '1';
[04/03/2024 06:55:00], [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 = '327', first_name = 'Sujay', last_name = 'Raut' ,age = '';
[04/03/2024 06:55:00], [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 = '327', first_name = 'TBAA', last_name = 'TBAA' ,age = '';
[04/03/2024 06:55:00], [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='-21.89940643548',agent_markup='-21.89940643548',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 06:55:00',service_date='2024-04-23',check_out_date='2024-04-24',display_room_rate= '24.99',display_discount='0',modified_datetime='2024-04-03 06:55:00',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 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],update bookings set  parent_agent_id='7863', sub_agent_rate='', agent_rate='24.99', agent_markup='-21.89940643548', supplier_rate='32.01', wh_sub_agent_rate='', wh_agent_rate='31.23' where id='383';
[04/03/2024 06:55:00], [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 06:55:00', supplier_currency ='USD', type = 'Ammended', agent_price = '-0.01', sub_agent_price ='', supplier_price = '', supplier_id = 'expedia', supplier_type = 'online';
[04/03/2024 06:55:00], [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 06:55:00', agent_price = '31.230', sub_agent_price = '0.000', supplier_price = '24.990' where booking_id = '383'  and type = "Sale";
[04/03/2024 06:55:00], [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 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7863',credit_value= '999998097.580',credit_usage= '902.420',credit_limit= '999999000.000',receipt_id= '',amount= '-0.01',booking_id='383',booking_cost= '24.99',receipt_allocation= '',balance= '24.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 06:04:00';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],UPDATE agents  SET credit_usage=credit_usage+('-6.27'),   credit_value= credit_value-('-6.27') ,  cd_credit_usage=cd_credit_usage+('-6.27') , cd_credit_value=cd_credit_value-('-6.27')  WHERE id = '7866';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],insert into  agent_credit_log SET agent_id= '7866',credit_value= '-1689.570',credit_usage= '1689.570',credit_limit= '10000.000',receipt_id= '',amount= '-6.27',booking_id='383',booking_cost= '24.99',receipt_allocation= '',balance= '24.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 06:04:00';
[04/03/2024 06:55:00], [file name :-/home/otrams/public_html/beta/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='383';
[04/03/2024 06:55:00], [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.0099999999971',display_currency ='USD',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is -21.89940643548 %',create_date ='2024-04-03 06:55:00';
[04/03/2024 06:55:00], [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 06:55:00], [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 06:55:00','Booking Modified by Ayman','Ayman','43.239.53.130','Ayman','','');
