[02/14/2024 08:01:19], [file name :-/home/otrams/public_html/beta/agent_login.php],update agents set last_login_date = '2024-02-14 08:01:19',login_attempt=0 where id = '7851';
[02/14/2024 08:01:19], [file name :-/home/otrams/public_html/beta/agent_login.php],INSERT INTO psa_login_log  SET username = 'Viator_test', user_type = 'A', branch_id = '27', login_datetime = '2024-02-14 08:01:19', ip = '43.239.53.130', action = 'Login' ;
[02/14/2024 08:01:19], [file name :-/home/otrams/public_html/beta/hotel_search.php],insert into user_sessions_ip SET ip_addr='43.239.53.130', agent_id='7851', session_id='7dd4d2dbd106943af010d6d519f270a66eb1c60f6916d14de0a169974ec53911',create_date='2024-02-14 08:01:19', update_date='2024-02-14 08:01:19',domain='beta.astrabookings.com',sub_agent_id='',sub_user_id='';
[02/14/2024 08:01:24], [file name :-/home/otrams/public_html/beta/sight_search.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:01:24' WHERE id= '553';
[02/14/2024 08:01:28], [file name :-/home/otrams/public_html/beta/get_city_list.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:01:28' WHERE id= '553';
[02/14/2024 08:01:36], [file name :-/home/otrams/public_html/beta/sight_search_list.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:01:36' WHERE id= '553';
[02/14/2024 08:01:36], [file name :-/home/otrams/public_html/beta/sight_search_list.php],INSERT INTO agent_logs SET  agent_id = '7851' , sub_agent_id = '' , sub_user_id = '0' , branch_id = '27' , ip = '43.239.53.130' , city = 'dubai' , arrival_date='2024/03/28',  departure_date='2024/03/28',  nights='1',  create_date='2024-02-14 :08:01:36',  nationality='',  additional_markup='',  selected_currency='USD',  service_type='sightseeing',  total_adult='',  total_children='',  site_id = '' ;
[02/14/2024 08:01:43], [file name :-/home/otrams/public_html/beta/sight_search_list.php],INSERT INTO xmllogs(reservation_id, type, request_path, response_path, header_path, source_type, create_date, header, session_id, agent_logs_id)
                VALUE ('', 'availability', 'v1/14_02_2024/request_availability_Viator_test_08_01_36_1707897696.json', 'v1/14_02_2024/response_availability_Viator_test_08_01_36_1707897696.json', 'v1/14_02_2024/response_header_availability_Viator_test_08_01_36_1707897696.json', 'viator', '2024-02-14 08:01:43', '', '', '1450');
[02/14/2024 08:01:44], [file name :-/home/otrams/public_html/beta/sight_search_list.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:01:44' WHERE id= '553';
[02/14/2024 08:01:44], [file name :-/home/otrams/public_html/beta/ajax/ajax_categories.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:01:44' WHERE id= '553';
[02/14/2024 08:01:52], [file name :-/home/otrams/public_html/beta/user_sight_details.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:01:52' WHERE id= '553';
[02/14/2024 08:01:53], [file name :-/home/otrams/public_html/beta/user_sight_details.php],INSERT INTO xmllogs(reservation_id, type, request_path, response_path, header_path, source_type, create_date, header, session_id, agent_logs_id)
                VALUE ('', 'sight_details', 'v1/14_02_2024/request_sight_details_Viator_test_08_01_52_1707897712.json', 'v1/14_02_2024/response_sight_details_Viator_test_08_01_52_1707897712.json', 'v1/14_02_2024/response_header_sight_details_Viator_test_08_01_52_1707897712.json', 'viator', '2024-02-14 08:01:53', '', '', '1450');
[02/14/2024 08:01:53], [file name :-/home/otrams/public_html/beta/user_sight_details.php],INSERT INTO xmllogs(reservation_id, type, request_path, response_path, header_path, source_type, create_date, header, session_id, agent_logs_id)
                VALUE ('', 'sight_details', 'v1/14_02_2024/request_sight_details_Viator_test_08_01_53_1707897713.json', 'v1/14_02_2024/response_sight_details_Viator_test_08_01_53_1707897713.json', 'v1/14_02_2024/response_header_sight_details_Viator_test_08_01_53_1707897713.json', 'viator', '2024-02-14 08:01:53', '', '', '1450');
[02/14/2024 08:01:56], [file name :-/home/otrams/public_html/beta/user_sight_details.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:01:56' WHERE id= '553';
[02/14/2024 08:01:57], [file name :-/home/otrams/public_html/beta/user_sight_details.php],INSERT INTO xmllogs(reservation_id, type, request_path, response_path, header_path, source_type, create_date, header, session_id, agent_logs_id)
                VALUE ('', 'sight_details', 'v1/14_02_2024/request_sight_details_Viator_test_08_01_56_1707897716.json', 'v1/14_02_2024/response_sight_details_Viator_test_08_01_56_1707897716.json', 'v1/14_02_2024/response_header_sight_details_Viator_test_08_01_56_1707897716.json', 'viator', '2024-02-14 08:01:57', '', '', '1450');
[02/14/2024 08:01:57], [file name :-/home/otrams/public_html/beta/user_sight_details.php],INSERT INTO xmllogs(reservation_id, type, request_path, response_path, header_path, source_type, create_date, header, session_id, agent_logs_id)
                VALUE ('', 'sight_details', 'v1/14_02_2024/request_sight_details_Viator_test_08_01_57_1707897717.json', 'v1/14_02_2024/response_sight_details_Viator_test_08_01_57_1707897717.json', 'v1/14_02_2024/response_header_sight_details_Viator_test_08_01_57_1707897717.json', 'viator', '2024-02-14 08:01:57', '', '', '1450');
[02/14/2024 08:02:01], [file name :-/home/otrams/public_html/beta/user_sight_details.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:02:01' WHERE id= '553';
[02/14/2024 08:02:03], [file name :-/home/otrams/public_html/beta/user_sight_details.php],INSERT INTO xmllogs(reservation_id, type, request_path, response_path, header_path, source_type, create_date, header, session_id, agent_logs_id)
                VALUE ('', 'check_availability', 'v1/14_02_2024/request_check_availability_Viator_test_08_02_01_1707897721.json', 'v1/14_02_2024/response_check_availability_Viator_test_08_02_01_1707897721.json', 'v1/14_02_2024/response_header_check_availability_Viator_test_08_02_01_1707897721.json', 'viator', '2024-02-14 08:02:03', '', '', '1450');
[02/14/2024 08:02:13], [file name :-/home/otrams/public_html/beta/book_sightseeing.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:02:13' WHERE id= '553';
[02/14/2024 08:02:13], [file name :-/home/otrams/public_html/beta/book_sightseeing.php],INSERT INTO autogenerator_reservation (reservation_id, remote_id) VALUES ('1707897733','43.239.53.130');
[02/14/2024 08:02:22], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:02:22' WHERE id= '553';
[02/14/2024 08:02:24], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:02:24' WHERE id= '553';
[02/14/2024 08:02:27], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:02:27' WHERE id= '553';
[02/14/2024 08:02:31], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:02:31' WHERE id= '553';
[02/14/2024 08:02:35], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:02:35' WHERE id= '553';
[02/14/2024 08:03:22], [file name :-/home/otrams/public_html/beta/book_sightseeing.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:03:22' WHERE id= '553';
[02/14/2024 08:03:22], [file name :-/home/otrams/public_html/beta/book_sightseeing.php],INSERT INTO autogenerator_reservation (reservation_id, remote_id) VALUES ('1707897802','43.239.53.130');
[02/14/2024 08:03:23], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:03:23' WHERE id= '553';
[02/14/2024 08:03:23], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],INSERT INTO bookings set reservation_id='2689',agent_id='7851',leader_title='Mr',leader_first_name='Shiv',leader_last_name='Chauhan',city_id='dubai',country_id='138',nationality='Emirati',display_room_rate='89.18',display_currency_code='USD',native_room_rate='89.18',consultant_id='SUJAY_QTECH',native_currency_code='USD',cancellation_policy='Cancellation Charges will be applicable if cancelled after 26 Mar 2024 03:00 hrs.<BR>Late amendment charge may apply.<Br><Br><B><U>Detailed Cancellation Policy:</U></B><Br>Charges - 89.18  applicable if cancelled after 26 Mar 2024 at 03:00 hrs',current_status='inprocess-booking',booking_status='1',sales_manager_id='0',create_date='2024-02-14 08:03:23',source_type='viator',expiration_date= '2024-03-26 00:00:00',applied_multiplier='1.00000',applied_markup='0',agent_markup='0',basecurrency_multiplier='1.00000',basecurrency_multiplier_native='1.00000',admin_booked='0',service_date='2024-03-28',sub_user_id='',check_out_date='2024-03-28',supplier_profile_id='',agent_currency_multiplier='3.7507', booking_branch_id = '27',site_url = 'https://beta.astrabookings.com/',ip_addr='43.239.53.130',leader_phone=' 9823860012',email_id='shiv.chauhan@qtechsoftware.com',service_type='sightseeing';
[02/14/2024 08:03:23], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],INSERT INTO sight_bookings set booking_id='408',native_nightly_rates='a:2:{s:4:\"size\";i:1;s:17:\"nativeNightlyRate\";d:89.180000000000007;}',rate_description='',display_nightly_rates='a:4:{s:4:\"size\";i:1;s:18:\"displayNightlyRate\";d:89.180000000000007;s:25:\"displayNightlyRateDisplay\";s:133:\"Rate - 89.18 USD, Currency Multiplier (USD-USD) - 1.00000, Markup  in % - %, Markup Amount - , Markup Amount in  - ,Other Markup - 0%\";s:23:\"displayNightlyRateStore\";s:134:\"Rate - 89.18 USD, Currency Multiplier (USD-USD) - 1.00000, Markup  in % - %, Markup Amount - , Markup Amount in  -  ,Other Markup - 0%\";}',display_currency_code='USD',native_currency_code='USD',sight_id='333273P2',sight_name='DUBAI LONG SELF-DRIVE QUADBIKE WITH CAMEL AND FALCON- V2',tour_time='',tour_details='',tour_inclusive='0<br/>',tour_exclusive='D<br/>',meeting_point='',tour_dep_point=' ',tour_language='en/SERVICE_GUIDE',tour_supplier_phone='',additional_tour_dep_point='',tour_duration='4 hours 0 minutes<br> Start Time: 07:00',arrival_date='2024-03-28',total_adults='2',total_children='',total_infants='',gta_city_code='828',supplier_id='',pick_up_point='',drop_off_point='',from_slot='',to_slot='',total_adult_rate='',total_child_rate='',adult_rate='',child_rate='',display_total_adult_rate='',display_total_child_rate='',display_adult_rate='',display_child_rate='0',additional_service_rate='0',booking_remark='',emergency_cont_no='',terms_n_condition='';
[02/14/2024 08:03:23], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],INSERT INTO posted_bookings(id,source_type,reservation_id,create_date,status) values ('','viator','2689','2024-02-14 08:03:23',0);
[02/14/2024 08:03:27], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],INSERT INTO xmllogs(reservation_id, type, request_path, response_path, header_path, source_type, create_date, header, session_id, agent_logs_id)
                VALUE ('', 'reservation_sight', 'v1/14_02_2024/request_reservation_sight_Viator_test_08_03_23_1707897803.json', 'v1/14_02_2024/response_reservation_sight_Viator_test_08_03_23_1707897803.json', 'v1/14_02_2024/response_header_reservation_sight_Viator_test_08_03_23_1707897803.json', 'viator', '2024-02-14 08:03:27', '', '', '1450');
[02/14/2024 08:03:27], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],UPDATE posted_bookings set status=1 where id= '225';
[02/14/2024 08:03:27], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],update bookings set  parent_agent_id='7851', applicable_service_tax='0', sub_agent_rate='0', agent_rate='89.18', supplier_rate='89.18', uid='', itenirary_id='2689512', confirmation_number='BR-595579989', comment_contract='', current_status='confirmed', original_source='' where id='408';
[02/14/2024 08:03:27], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],update sight_bookings set gtaToken='',gta_item_confirm_ref='',viator_item_ref='BR-595579989',viator_ref='BR-595579989',viator_item_id='',viator_voucherKey='https://shop.live.rc.viator.com/ticket?code=1020257319:9ad06b5fbf6a1d651c28e6abb563a90d512915bca5ce2054d41b4a9e3d57b377:595579989',tour_supplier='',textaddition_activities='N;' where booking_id='408';
[02/14/2024 08:03:27], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
		('','','408','confirmed','2024-02-14 08:03:27','Sightseeing Booking confirmed by Agent..7851','7851','43.239.53.130','','','');
[02/14/2024 08:03:27], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],insert into sight_passangers(booking_id,salutations,tour,first_name,last_name,passenger_type,age)values('408','Mr','1','Shiv','Chauhan','adult','0');
[02/14/2024 08:03:27], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],insert into sight_passangers(booking_id,salutations,tour,first_name,last_name,passenger_type,age)values('408','Mr','1','Deepak','Trivedi','adult','0');
[02/14/2024 08:03:27], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],update xmllogs set reservation_id='408' where agent_logs_id='1450' and source_type='viator';
[02/14/2024 08:03:47], [file name :-/home/otrams/public_html/beta/add_voucher.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:03:47' WHERE id= '553';
[02/14/2024 08:03:55], [file name :-/home/otrams/public_html/beta/add_voucher.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:03:55' WHERE id= '553';
[02/14/2024 08:03:55], [file name :-/home/otrams/public_html/beta/add_voucher.php],update bookings set invoice_number= 'INV14022400003', voucher_id='Voucher231',status_date='2024-02-14 08:03:55',current_status='vouchered',voucher_hashcode='19510d5ec4039e87ac4f3d3b6a2c746a38018408',vouchered_by ='' where id='408';
[02/14/2024 08:03:55], [file name :-/home/otrams/public_html/beta/add_voucher.php],update bookings set is_invoiced='yes',invoice_number= 'INV14022400003' where id='408' and is_invoiced!='yes';
[02/14/2024 08:03:55], [file name :-/home/otrams/public_html/beta/add_voucher.php],UPDATE agents SET credit_usage=credit_usage+('334.487426'),   credit_value= credit_value-('334.487426') ,  cd_credit_usage=cd_credit_usage+('334.487426') , cd_credit_value=cd_credit_value-('334.487426')  WHERE id = '7851';
[02/14/2024 08:03:55], [file name :-/home/otrams/public_html/beta/add_voucher.php],insert into  agent_credit_log SET agent_id= '7851',credit_value= '2367.097',credit_usage= '7632.903',credit_limit= '10000.000',receipt_id= '',amount= '334.487426',booking_id='408',booking_cost= '',receipt_allocation= '',balance= '',ip='43.239.53.130',user_type='User',admin_id='Agent - Viator  Viator(CD7851)',temp_credit_limit='',log_type='Add Invoice',note='Add Invoice',create_date='2024-02-14 08:02:55';
[02/14/2024 08:03:55], [file name :-/home/otrams/public_html/beta/add_voucher.php], insert into booking_rate_info set  booking_id = '408', booking_log = 'Booking Vouchered', create_date = '2024-02-14 08:03:55', supplier_currency ='USD', type = 'Sale', agent_price = '89.18', sub_agent_price ='', supplier_price = '89.180', supplier_id = 'viator', supplier_type = 'online';
[02/14/2024 08:03:57], [file name :-/home/otrams/public_html/beta/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
		('','','408','vouchered-invoiced','2024-02-14 08:03:57','Booking invoiced by Back Office v3alpha on behalf of Agent - Viator  Viator(CD7851)','7851','43.239.53.130','','','');
[02/14/2024 08:03:57], [file name :-/home/otrams/public_html/beta/add_voucher.php],INSERT INTO agent_commission SET booking_id ='408',booking_detail_id ='408',agent_id ='7851',is_sub_agent ='N',parent_id ='',display_commission ='0',display_currency ='USD',paid ='N',type ='sightseeing',description ='Agent Mark Up Percentage is 0 %',create_date ='2024-02-14 08:03:57';
[02/14/2024 08:03:57], [file name :-/home/otrams/public_html/beta/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
		('','','408','vouchered','2024-02-14 08:03:57','Voucherd by Back Office v3alpha on behalf of Agent - Viator  Viator(CD7851)','7851','43.239.53.130','','','');
[02/14/2024 08:04:06], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:04:06' WHERE id= '553';
[02/14/2024 08:04:14], [file name :-/home/otrams/public_html/beta/print_voucher_sight.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:04:14' WHERE id= '553';
[02/14/2024 08:04:23], [file name :-/home/otrams/public_html/beta/print_voucher_sight.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:04:23' WHERE id= '553';
[02/14/2024 08:05:22], [file name :-/home/otrams/public_html/beta/agent_login.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:05:22' WHERE id= '553';
[02/14/2024 08:05:22], [file name :-/home/otrams/public_html/beta/agent_login.php],update agents set last_login_date = '2024-02-14 08:05:22',login_attempt=0 where id = '7851';
[02/14/2024 08:05:22], [file name :-/home/otrams/public_html/beta/agent_login.php],INSERT INTO psa_login_log  SET username = 'Viator_test', user_type = 'A', branch_id = '27', login_datetime = '2024-02-14 08:05:22', ip = '43.239.53.130', action = 'Login' ;
[02/14/2024 08:05:23], [file name :-/home/otrams/public_html/beta/hotel_search.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:05:23' WHERE id= '553';
[02/14/2024 08:05:26], [file name :-/home/otrams/public_html/beta/sight_search.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:05:26' WHERE id= '553';
[02/14/2024 08:05:30], [file name :-/home/otrams/public_html/beta/get_city_list.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:05:30' WHERE id= '553';
[02/14/2024 08:05:36], [file name :-/home/otrams/public_html/beta/sight_search_list.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:05:36' WHERE id= '553';
[02/14/2024 08:05:36], [file name :-/home/otrams/public_html/beta/sight_search_list.php],INSERT INTO agent_logs SET  agent_id = '7851' , sub_agent_id = '' , sub_user_id = '0' , branch_id = '27' , ip = '43.239.53.130' , city = 'dubai' , arrival_date='2024/03/27',  departure_date='2024/03/27',  nights='1',  create_date='2024-02-14 :08:05:36',  nationality='',  additional_markup='',  selected_currency='USD',  service_type='sightseeing',  total_adult='',  total_children='',  site_id = '' ;
[02/14/2024 08:05:36], [file name :-/home/otrams/public_html/beta/sight_search_list.php],INSERT INTO xmllogs(reservation_id, type, request_path, response_path, header_path, source_type, create_date, header, session_id, agent_logs_id)
                VALUE ('', 'availability', 'v1/14_02_2024/request_availability_Viator_test_08_05_36_1707897936.json', 'v1/14_02_2024/response_availability_Viator_test_08_05_36_1707897936.json', 'v1/14_02_2024/response_header_availability_Viator_test_08_05_36_1707897936.json', 'viator', '2024-02-14 08:05:36', '', '', '1451');
[02/14/2024 08:05:37], [file name :-/home/otrams/public_html/beta/sight_search.php],UPDATE user_sessions_ip SET update_date = '2024-02-14 08:05:37' WHERE id= '553';
