[01/28/2024 03:22:18], [file name :-/home/otrams/public_html/beta/agent_login.php],update agents set last_login_date = '2024-01-28 03:22:18',login_attempt=0 where id = '7851';
[01/28/2024 03:22:18], [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-01-28 03:22:18', ip = '43.239.53.130', action = 'Login' ;
[01/28/2024 03:22:18], [file name :-/home/otrams/public_html/beta/hotel_search.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:18' WHERE id= '309';
[01/28/2024 03:22:22], [file name :-/home/otrams/public_html/beta/sight_search.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:22' WHERE id= '309';
[01/28/2024 03:22:25], [file name :-/home/otrams/public_html/beta/get_city_list.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:25' WHERE id= '309';
[01/28/2024 03:22:33], [file name :-/home/otrams/public_html/beta/sight_search_list.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:33' WHERE id= '309';
[01/28/2024 03:22:33], [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/01/31',  departure_date='2024/01/31',  nights='1',  create_date='2024-01-28 :03:22:33',  nationality='',  additional_markup='',  selected_currency='USD',  service_type='sightseeing',  total_adult='',  total_children='',  site_id = '' ;
[01/28/2024 03:22:34], [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/28_01_2024/request_availability_Viator_test_03_22_33_1706412153.json', 'v1/28_01_2024/response_availability_Viator_test_03_22_33_1706412153.json', 'v1/28_01_2024/response_header_availability_Viator_test_03_22_33_1706412153.json', 'viator', '2024-01-28 03:22:34', '', '', '1142');
[01/28/2024 03:22:35], [file name :-/home/otrams/public_html/beta/sight_search_list.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:35' WHERE id= '309';
[01/28/2024 03:22:35], [file name :-/home/otrams/public_html/beta/ajax/ajax_categories.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:35' WHERE id= '309';
[01/28/2024 03:22:37], [file name :-/home/otrams/public_html/beta/user_sight_details.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:37' WHERE id= '309';
[01/28/2024 03:22:38], [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/28_01_2024/request_sight_details_Viator_test_03_22_37_1706412157.json', 'v1/28_01_2024/response_sight_details_Viator_test_03_22_37_1706412157.json', 'v1/28_01_2024/response_header_sight_details_Viator_test_03_22_37_1706412157.json', 'viator', '2024-01-28 03:22:38', '', '', '1142');
[01/28/2024 03:22:42], [file name :-/home/otrams/public_html/beta/user_sight_details.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:42' WHERE id= '309';
[01/28/2024 03:22:43], [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/28_01_2024/request_sight_details_Viator_test_03_22_42_1706412162.json', 'v1/28_01_2024/response_sight_details_Viator_test_03_22_42_1706412162.json', 'v1/28_01_2024/response_header_sight_details_Viator_test_03_22_42_1706412162.json', 'viator', '2024-01-28 03:22:43', '', '', '1142');
[01/28/2024 03:22:48], [file name :-/home/otrams/public_html/beta/user_sight_details.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:48' WHERE id= '309';
[01/28/2024 03:22:49], [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/28_01_2024/request_check_availability_Viator_test_03_22_48_1706412168.json', 'v1/28_01_2024/response_check_availability_Viator_test_03_22_48_1706412168.json', 'v1/28_01_2024/response_header_check_availability_Viator_test_03_22_48_1706412168.json', 'viator', '2024-01-28 03:22:49', '', '', '1142');
[01/28/2024 03:22:53], [file name :-/home/otrams/public_html/beta/book_sightseeing.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:53' WHERE id= '309';
[01/28/2024 03:22:53], [file name :-/home/otrams/public_html/beta/book_sightseeing.php],INSERT INTO autogenerator_reservation (reservation_id, remote_id) VALUES ('1706412173','43.239.53.130');
[01/28/2024 03:22:58], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:22:58' WHERE id= '309';
[01/28/2024 03:23:01], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:23:01' WHERE id= '309';
[01/28/2024 03:23:08], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:23:08' WHERE id= '309';
[01/28/2024 03:23:11], [file name :-/home/otrams/public_html/beta/frontendfunc.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:23:11' WHERE id= '309';
[01/28/2024 03:24:04], [file name :-/home/otrams/public_html/beta/book_sightseeing.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:24:04' WHERE id= '309';
[01/28/2024 03:24:04], [file name :-/home/otrams/public_html/beta/book_sightseeing.php],INSERT INTO autogenerator_reservation (reservation_id, remote_id) VALUES ('1706412244','43.239.53.130');
[01/28/2024 03:24:05], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:24:05' WHERE id= '309';
[01/28/2024 03:24:05], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],INSERT INTO bookings set reservation_id='2323',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 31 Jan 2024 00:00 hrs.<BR>Late amendment charge may apply.',current_status='inprocess-booking',booking_status='1',sales_manager_id='0',create_date='2024-01-28 03:24:05',source_type='viator',expiration_date= '2024-01-30 21: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-01-31',sub_user_id='',check_out_date='2024-01-31',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';
[01/28/2024 03:24:05], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],INSERT INTO sight_bookings set booking_id='367',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='A<br/>',tour_exclusive=',<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-01-31',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='';
[01/28/2024 03:24:05], [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','2323','2024-01-28 03:24:05',0);
[01/28/2024 03:24:08], [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/28_01_2024/request_reservation_sight_Viator_test_03_24_05_1706412245.json', 'v1/28_01_2024/response_reservation_sight_Viator_test_03_24_05_1706412245.json', 'v1/28_01_2024/response_header_reservation_sight_Viator_test_03_24_05_1706412245.json', 'viator', '2024-01-28 03:24:08', '', '', '1142');
[01/28/2024 03:24:08], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],UPDATE posted_bookings set status=1 where id= '203';
[01/28/2024 03:24:08], [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='2323518', confirmation_number='BR-595301739', comment_contract='', current_status='confirmed', original_source='' where id='367';
[01/28/2024 03:24:08], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],update sight_bookings set gtaToken='',gta_item_confirm_ref='',tour_supplier='',textaddition_activities='N;' where booking_id='367';
[01/28/2024 03:24:08], [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
		('','','367','confirmed','2024-01-28 03:24:08','Sightseeing Booking confirmed by Agent..7851','7851','43.239.53.130','','','');
[01/28/2024 03:24:08], [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('367','Mr','1','shiv','chauhan','adult','0');
[01/28/2024 03:24:08], [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('367','Mr','1','tejas','kamble','adult','0');
[01/28/2024 03:24:08], [file name :-/home/otrams/public_html/beta/confirm_booking_sightseeing.php],update xmllogs set reservation_id='367' where agent_logs_id='1142' and source_type='viator';
[01/28/2024 03:24:28], [file name :-/home/otrams/public_html/beta/booking_list.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:24:28' WHERE id= '309';
[01/28/2024 03:24:34], [file name :-/home/otrams/public_html/beta/booking_list.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:24:34' WHERE id= '309';
[01/28/2024 03:24:39], [file name :-/home/otrams/public_html/beta/booking_list_sight.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:24:39' WHERE id= '309';
[01/28/2024 03:24:47], [file name :-/home/otrams/public_html/beta/add_voucher.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:24:47' WHERE id= '309';
[01/28/2024 03:24:56], [file name :-/home/otrams/public_html/beta/add_voucher.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:24:56' WHERE id= '309';
[01/28/2024 03:24:56], [file name :-/home/otrams/public_html/beta/add_voucher.php],update bookings set invoice_number= 'INV28012400001', voucher_id='HGS45',status_date='2024-01-28 03:24:56',current_status='vouchered',voucher_hashcode='d791434d32c7c6ed438c9890e87800d131435367',vouchered_by ='' where id='367';
[01/28/2024 03:24:56], [file name :-/home/otrams/public_html/beta/add_voucher.php],update bookings set is_invoiced='yes',invoice_number= 'INV28012400001' where id='367' and is_invoiced!='yes';
[01/28/2024 03:24:56], [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';
[01/28/2024 03:24:56], [file name :-/home/otrams/public_html/beta/add_voucher.php],insert into  agent_credit_log SET agent_id= '7851',credit_value= '3203.315',credit_usage= '6796.685',credit_limit= '10000.000',receipt_id= '',amount= '334.487426',booking_id='367',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-01-28 03:01:56';
[01/28/2024 03:24:56], [file name :-/home/otrams/public_html/beta/add_voucher.php], insert into booking_rate_info set  booking_id = '367', booking_log = 'Booking Vouchered', create_date = '2024-01-28 03:24:56', supplier_currency ='USD', type = 'Sale', agent_price = '89.18', sub_agent_price ='', supplier_price = '89.180', supplier_id = 'viator', supplier_type = 'online';
[01/28/2024 03:24:58], [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
		('','','367','vouchered-invoiced','2024-01-28 03:24:58','Booking invoiced by Back Office v3alpha on behalf of Agent - Viator  Viator(CD7851)','7851','43.239.53.130','','','');
[01/28/2024 03:24:58], [file name :-/home/otrams/public_html/beta/add_voucher.php],INSERT INTO agent_commission SET booking_id ='367',booking_detail_id ='367',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-01-28 03:24:58';
[01/28/2024 03:24:58], [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
		('','','367','vouchered','2024-01-28 03:24:58','Voucherd by Back Office v3alpha on behalf of Agent - Viator  Viator(CD7851)','7851','43.239.53.130','','','');
[01/28/2024 03:25:05], [file name :-/home/otrams/public_html/beta/booking_list_sight.php],UPDATE user_sessions_ip SET update_date = '2024-01-28 03:25:05' WHERE id= '309';
