[10/31/2020 11:16:50], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/agent_login.php],update agents set last_login_date = '2020-10-31 11:16:50',login_attempt=0 where id = '21';
[10/31/2020 11:16:50], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/agent_login.php],INSERT INTO psa_login_log  SET username = 'ankita', user_type = 'A', branch_id = '3', login_datetime = '2020-10-31 11:16:50', ip = '45.120.147.56', action = 'Login' ;
[10/31/2020 11:17:43], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/hotel_search_list.php],INSERT INTO agent_logs SET  agent_id = '21' , sub_agent_id = '' , sub_user_id = '0' , branch_id = '3' , ip = '45.120.147.56' , city = 'colombo' , service_name = '' , service_type = 'hotel' , arrival_date = '2020/10/31' , departure_date = '2020/11/01' , nationality = '3' , nights = '1' , room_types = '2' , create_date = '2020-10-31 11:17:43' , site_id = '' , country_code = '132' , web_service = '' ;
[10/31/2020 11:17:48], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/call.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', '/request_placeholder.xml', '/response_placeholder.xml', '/response_header_placeholder.xml', 'localsystem', '2020-10-31 11:17:48', '', 'f601a259147536d8954c898b5d8494a17c5ba771bf3d7f4c0b8ee4033ae0c852', '470');
[10/31/2020 11:17:48], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/call.php],UPDATE xmllogs SET
hotel_count = ''
, request_url = '/call.php?s=localsystem&sessionid=f601a259147536d8954c898b5d8494a17c5ba771bf3d7f4c0b8ee4033ae0c852&xml_user_id=21&request_no=0&local_hotel_code=35&#039;,&#039;36&#039;,&#039;60&#039;,&#039;61&#039;,&#039;65&#039;,&#039;77&#039;,&#039;53699&#039;,&#039;53700&#039;,&#039;38&#039;,&#039;39&#039;,&#039;99&#039;,&#039;78&#039;,&#039;51821&#039;,&#039;76&#039;,&#039;51811&#039;,&#039;53701&#039;,&#039;51808&#039;,&#039;53725&#039;,&#039;53733&#039;,&#039;51817&#039;,&#039;53770&#039;,&#039;53777&web_service=no&site_id='
, http_hit_time = '2020-10-31 11:17:47.286'
, request_start_time = '0.000'
, parsing_start_time = '0.000'
, mapping_complete_time = '0.000'
, mongo_start_time = '0.000'
, search_end_time = '0.000'
, total_duration = '1.233'
, error_description = ''
, memory_used = '7909528'
WHERE id = '3247';
[10/31/2020 11:17:48], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/xml_all.php],UPDATE agent_logs SET
  hotel_count = '',
  request_path = '/xml_all.php?userid=21&sessionid=f601a259147536d8954c898b5d8494a17c5ba771bf3d7f4c0b8ee4033ae0c852',
  duration = '1.644',
  merge_duration = '0.075',
  assigned_supplier_count = '1',
  searched_supplier_count = '1',
  system_load_1_min = '1.43',
  system_load_5_min = '1.93',
  system_load_15_min = '1.83',
  system_memory_usage = '92.61',
  memory_usage = (SELECT COALESCE(SUM(memory_used),0) FROM xmllogs WHERE agent_logs_id = '470') + '8043208',
  parallel_search_count = '',
  mongo_archive_collection = '',
  error_description = '',
  is_cached = 'no'
WHERE id = '470';
[10/31/2020 11:18:05], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/book_now.php],INSERT INTO autogenerator_reservation (reservation_id, remote_id) VALUES ('1604143085','45.120.147.56');
[10/31/2020 11:18:58], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/book_now.php],INSERT INTO autogenerator_reservation (reservation_id, remote_id) VALUES ('1604143138','45.120.147.56');
[10/31/2020 11:23:25], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/book_now.php],INSERT INTO autogenerator_reservation (reservation_id, remote_id) VALUES ('1604143405','45.120.147.56');
[10/31/2020 11:29:20], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/book_now.php],INSERT INTO autogenerator_reservation (reservation_id, remote_id) VALUES ('1604143760','203.192.206.228');
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO bookings SET  source_type = 'localsystem', reservation_id = '1865', create_date = '2020-10-31 11:29:34', agent_id = '21', parent_agent_id = '21', agent_ref_no = '', nationality = 'Bahamian', city_id = 'colombo', country_id = '132', current_status = 'inprocess-booking', is_xml = '0', display_room_rate = '7190.4', display_currency_code = 'INR', native_room_rate = '100', native_currency_code = 'USD', supplier_profile_id = '1', service_type = 'hotel', service_date = '2020/10/31', check_out_date = '2020/11/01', sub_user_id = '', booking_status = '1', leader_title = 'Mr', leader_first_name = 'Sanket', leader_last_name = 'Desai', booking_branch_id = '3', expiration_date = '2020-10-31 00:00:00', cancellation_policy = 'Amendment of Dates, Room Category, Passenger Names are considered as Cancel and Rebook by most of the Hotels.
        Any Changes in initial booking may be denied by the supplier or may result in extra charges.
        Confirmation of amendment requests is subject to availablity and rates at the time of amendment.<Br><Br><B><U>Detailed Cancellation Policy:</U></B> <br/> Cancellation Charges of 7190.4 INR applicable if cancelled after 31 Oct 2020 16:48 hrs.', supplier_cancellation_policy = '', status_date = '2020-10-31 11:29:34',  site_url = 'https://alpha.otrams.thefabulousgetaway.com/';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO external_mapping_data_tracking (booking_id,search_hotel_name,booked_hotel_name_supplier,hotel_id,master_id,city_id,supplier,date) VALUES ('3053','THE HERITAGE','THE HERITAGE','53777','53777','colombo','LOCAL_SUPPLIER',NOW());
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],UPDATE
        bookings
        SET
        booking_branch_id= '3'
        WHERE
        id='3053'
        ;
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into bookings_details(booking_id,supplier_id,total_rooms,total_adults,total_children,total_infants,rate_description ,rate_code,hotel_id,local_hotel_id,hotel_name,hotel_address1,hotel_phone,hotel_rating,total_nights,arrival_date,departure_date,room_rate_code,hotel_img)values('3053','S000000243','1','2','0','-','','','53777','53777','THE HERITAGE','Colombo','123456789','4.0','1','2020/10/31','2020/11/01','','https://alpha.otrams.thefabulousgetaway.com/project_folder/tfg_project/images/imagenotavailable.jpg');
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], insert into booking_room_detail set  booking_id = '3053', booking_detail_id = '1191', room_type_code = '2~~~132~~~1049~~~1~~~~~~~~~71100~~~0~~~S000000243', room_name = 'double', room_type_description = 'Standard  -Bed & Breakfast : 2 Pax <font color=\'red\'>-D</font>', display_nightly_rates = 'a:1:{i:0;a:3:{s:18:\"displayNightlyRate\";d:7190.4;s:16:\"promotionDisplay\";s:0:\"\";s:25:\"displayNightlyRateDisplay\";s:228:\"Supplier Name - localsupplier(RateGainSriLanka - S000000243), Rate - 100 USD, Currency Multiplier (USD-INR) - 60 Supplier Commission-0 #localsystem, VAT Markup=7.000%, Agent Hotel Category Markup=12.00 % VAT Markup On Profit=0 %\";}}', native_nightly_rates = 'a:1:{i:0;a:4:{s:19:\"O_nativeNightlyRate\";i:100;s:17:\"nativeNightlyRate\";i:100;s:9:\"free_sale\";s:2:\"no\";s:14:\"Discount/Offer\";a:7:{s:4:\"code\";s:0:\"\";s:4:\"Name\";s:0:\"\";s:7:\"S_Value\";s:0:\"\";s:5:\"Value\";i:0;s:12:\"Display_Name\";s:0:\"\";s:10:\"Offer_Note\";N;s:10:\"Offer_Type\";N;}}}', markup = '0', commission = '0', native_room_rate_total = '100', display_room_rate_total = '7190.4', number_of_rooms = '1';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], insert into passangers set  booking_id = '3053', booking_detail_id = '1191', rid = '1785', room = '0', salutations = 'Mr', first_name = 'Sanket', last_name = 'Desai', passenger_type = 'adult', age = '';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], insert into passangers set  booking_id = '3053', booking_detail_id = '1191', rid = '1785', room = '0', salutations = 'Mrs', first_name = 'Surabhi', last_name = 'Desai', passenger_type = 'adult', age = '';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings set  special_remark = '', itenirary_id = '', confirmation_number = '', display_discount = '0', current_status = 'confirmed', comment_contract = '', consultant_id = 'nitinalpha', sales_manager_id = '', admin_booked = '1', email_id = 'sanket.desai@qtechsoftware.com', leader_phone = '99756737547', agent_currency_multiplier = '1.00000', ip_addr = '203.192.206.228', backoffice_user = 'tfg', customer_id = '', applied_multiplier='60', free_sale='',  applied_markup='19.84',  agent_markup='19.84',  basecurrency_multiplier='0.01533',  basecurrency_multiplier_native='1.00000',  parent_agent_id='21',  sub_agent_rate='0', agent_rate='7190.4',  applicable_service_tax='0',  supplier_rate='100',  original_source='',  uid='08f981bfc0e5b6b1b198b65b4a62da5f'  where id='3053';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings_details set touricoRoomResId ='', gta_item_confirm_ref='' ,gtaToken = '' , special_request='' where booking_id ='3053';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings_details set reservation_pushed = '1', channel_manager = 'rategain',room_type_description='' where booking_id = '3053';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO booking_cancellation_policy(booking_id,from_date,supplier_from_date,supplier_charge,agent_charge,lead_time,create_date)  VALUES('3053','2020-10-31 11:18:00','2020-10-31 11:18:00','100','7190.4','0','2020-10-31 11:29:34');
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], INSERT INTO booking_special_request set booking_id = '3053' , sr_id = '1',approved_status='1' ;
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], INSERT INTO booking_special_request set booking_id = '3053' , sr_id = '2',approved_status='1' ;
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into booking_lat_long(booking_id,latitude,longitude) values ('3053','','');
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO booking_status (booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by) VALUES ('3053','confirmed','2020-10-31 11:29:34','Booking confirmed . Booked by Back Office tfg on behalf of Agent - Ankita  Rao(CD0021)','21','203.192.206.228','0','21');
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO booking_search_log(booking_id, details)
        VALUES(3053, 'a:30:{s:3:\"_id\";a:1:{s:4:\"$oid\";s:24:\"5f9d47dc47ab4728bc35a87e\";}s:7:\"hotelId\";s:25:\"53777----------S000000243\";s:4:\"name\";s:12:\"THE HERITAGE\";s:14:\"local_hotel_id\";s:5:\"53777\";s:8:\"address1\";s:7:\"Colombo\";s:8:\"latitude\";s:0:\"\";s:9:\"longitude\";s:0:\"\";s:4:\"city\";s:5:\"71100\";s:8:\"location\";s:0:\"\";s:14:\"prefered_hotel\";s:1:\"0\";s:10:\"mlosSlogan\";s:0:\"\";s:16:\"isMlosApplicable\";s:2:\"no\";s:7:\"country\";s:3:\"132\";s:16:\"rateCurrencyCode\";s:3:\"INR\";s:5:\"phone\";s:9:\"123456789\";s:16:\"shortDescription\";s:24:\"No Description Available\";s:11:\"website_url\";s:0:\"\";s:12:\"thumbNailUrl\";s:99:\"https://alpha.otrams.thefabulousgetaway.com/project_folder/tfg_project/images/imagenotavailable.jpg\";s:10:\"sourceType\";s:11:\"localsystem\";s:10:\"supplierid\";s:10:\"S000000243\";s:12:\"suppliername\";s:16:\"RateGainSriLanka\";s:14:\"propertyRating\";s:3:\"4.0\";s:15:\"specialCategory\";a:1:{i:0;s:1:\"1\";}s:13:\"HotelProperty\";a:1:{s:11:\"localsystem\";a:1:{i:0;a:1:{s:8:\"RateInfo\";a:13:{s:10:\"room_rates\";a:1:{i:0;a:33:{s:11:\"ratebreakup\";a:4:{s:6:\"markup\";i:0;s:10:\"commission\";i:0;s:18:\"NativeNightlyRates\";a:1:{i:0;a:4:{s:19:\"O_nativeNightlyRate\";i:100;s:17:\"nativeNightlyRate\";i:100;s:9:\"free_sale\";s:2:\"no\";s:14:\"Discount/Offer\";a:7:{s:4:\"code\";s:0:\"\";s:4:\"Name\";s:0:\"\";s:7:\"S_Value\";s:0:\"\";s:5:\"Value\";i:0;s:12:\"Display_Name\";s:0:\"\";s:10:\"Offer_Note\";N;s:10:\"Offer_Type\";N;}}}s:19:\"DisplayNightlyRates\";a:1:{i:0;a:3:{s:18:\"displayNightlyRate\";d:7190.4;s:16:\"promotionDisplay\";s:0:\"\";s:25:\"displayNightlyRateDisplay\";s:228:\"Supplier Name - localsupplier(RateGainSriLanka - S000000243), Rate - 100 USD, Currency Multiplier (USD-INR) - 60 Supplier Commission-0 #localsystem, VAT Markup=7.000%, Agent Hotel Category Markup=12.00 % VAT Markup On Profit=0 %\";}}}s:20:\"offer_promotion_note\";s:0:\"\";s:19:\"offer_discount_type\";s:0:\"\";s:27:\"offer_discount_note_details\";N;s:9:\"room_name\";s:6:\"double\";s:9:\"stay_note\";N;s:10:\"time_stamp\";s:32:\"f3bdd95dc6517d18e0ced6f0f6080cfd\";s:16:\"number_of_adults\";s:1:\"2\";s:10:\"view_basis\";s:0:\"\";s:13:\"view_basis_id\";s:1:\"0\";s:9:\"available\";i:1;s:9:\"free_sale\";N;s:7:\"minStay\";s:1:\"1\";s:19:\"displayCurrencyCode\";s:3:\"INR\";s:18:\"nativeCurrencyCode\";s:3:\"USD\";s:20:\"displayRoomTypeRates\";d:7190.4;s:20:\"sortingRoomTypeRates\";d:7190.4;s:19:\"nativeRoomTypeRates\";i:100;s:12:\"offerApplied\";N;s:7:\"room_id\";s:49:\"2~~~132~~~1049~~~1~~~~~~~~~71100~~~0~~~S000000243\";s:14:\"room_type_code\";s:1:\"2\";s:14:\"boardtype_code\";s:1:\"1\";s:16:\"valuation_number\";s:49:\"2~~~132~~~1049~~~1~~~~~~~~~71100~~~0~~~S000000243\";s:15:\"number_of_child\";i:0;s:13:\"NumberOfRooms\";i:1;s:10:\"supplierId\";s:10:\"S000000243\";s:12:\"supplierName\";s:16:\"RateGainSriLanka\";s:10:\"meal_basis\";s:15:\"Bed & Breakfast\";s:4:\"note\";s:0:\"\";s:13:\"room_category\";s:13:\"Standard Room\";s:9:\"room_type\";s:62:\"Standard  -Bed & Breakfast : 2 Pax <font color=\'red\'>-D</font>\";s:14:\"non_refundable\";s:1:\"0\";s:15:\"class_unique_id\";s:17:\"0_0_53777_9878854\";}}s:9:\"available\";i:1;s:15:\"displayRoomRate\";d:7190.4;s:14:\"nativeRoomRate\";i:100;s:9:\"unique_id\";s:37:\"1_53777----------S000000243_3_0_23573\";s:10:\"supplierId\";s:10:\"S000000243\";s:19:\"displayCurrencyCode\";s:3:\"INR\";s:18:\"nativeCurrencyCode\";s:3:\"USD\";s:18:\"applied_markup_per\";d:19.84;s:18:\"applied_multiplier\";i:60;s:19:\"supplier_profile_id\";s:1:\"1\";s:13:\"supplier_data\";a:5:{s:7:\"hotelId\";s:25:\"53777----------S000000243\";s:10:\"sourceType\";s:11:\"localsystem\";s:15:\"supp_hotel_name\";s:12:\"THE HERITAGE\";s:18:\"supp_hotel_address\";s:7:\"Colombo\";s:10:\"supplierId\";s:10:\"S000000243\";}s:8:\"no_class\";i:0;}}}}s:13:\"total_charges\";d:7190.4;s:17:\"propertyAvailable\";i:1;s:8:\"no_class\";i:0;s:18:\"sort_total_charges\";d:7190.4;s:16:\"hotel_name_ascii\";s:12:\"the heritage\";s:13:\"supplier_data\";a:5:{s:7:\"hotelId\";s:25:\"53777----------S000000243\";s:10:\"sourceType\";s:11:\"localsystem\";s:15:\"supp_hotel_name\";s:12:\"THE HERITAGE\";s:18:\"supp_hotel_address\";s:7:\"Colombo\";s:10:\"supplierId\";s:10:\"S000000243\";}}');
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO booking_cancellation_policy(booking_id,from_date,supplier_from_date,to_date,supplier_to_date,supplier_charge,agent_charge,lead_time,create_date,applied_agent_charges)  VALUES('3053','2020-10-31 11:18:00','2020-10-31 11:18:00','1970-01-01 00:00:00','1970-01-01 00:00:00','100','7190.4','0','2020-10-31 11:29:34','');
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings_details set reservation_pushed = '1', channel_manager = 'rategain',room_type_description='' where booking_id = '3053';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO bookings_applicable_offer set  oid= '',  offer_type_code= '',  booking_id= '3053',  room_id= '2~~~132~~~1049~~~1~~~~~~~~~71100~~~0~~~S000000243',  room_name= 'double',  supplier_id= 'S000000243',  agent_id= '',  applied_native_discount= '0',  original_native_rate= '100',  native_rate= '100',  promotion_text= '',  offer_disc_type= '',  offer_disc_value= '',  offer_disc_currency= '',  create_date= '2020-10-31 11:29:34' ;
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings set confirmation_number='',itenirary_id='3053' where  id ='3053';
[10/31/2020 11:29:34], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],UPDATE room_rates SET availability = availability-1,consumed_inventory = consumed_inventory+1 WHERE hotel_id = '53777' and inventory_class_id = '132' and supplier_id = 'S000000243' and date_from = '2020-10-31';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update supplement_rate set inventory = '0' where supplement_rate_id = '1';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], insert into booking_configuration set  booking_id = '3053', config_key = 'BOOKING OTP', config_value = 'VjBBQkuU';;
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into email_logs SET `subject`= ' TFG103053 /  Booking Confirmed ',from_email_id= 'sanket.desai@qtechsoftware.com',body= '[encoded data, 41524 characters]',to_email_id= 'snehal.valanju@qtechsoftware.com',cc= '',bcc= '',status= 'Success',page_url= '/confirm_booking.php',create_date= '2020-10-31 11:29:35';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into temp(booking_id,mail_send_to)values('3053','snehal.valanju@qtechsoftware.com');
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into temp(booking_id,mail_send_to)values('3053','snehal.valanju@qtechsoftware.com');
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update posted_bookings set booking_id='3053',status='1' where reservation_id='1865' and booking_id ='0';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update xmllogs set reservation_id='3053' where agent_logs_id='470' and source_type='localsystem';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO booking_commission set agent_commission='',  supplier_commission='',  profit_percent='',  gross_profit='',  commission_tax='',  booking_id ='3053',  create_date ='2020-10-31 11:29:35', supplier_tax='';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings set voucher_id='Vucher Id',status_date='2020-10-31 11:29:35',current_status='vouchered',voucher_hashcode='e6796f97c90007316a2e67781b8be777437713053',vouchered_by ='' where id='3053';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],Insert into booking_configuration set booking_id='3053',config_key='VOUCHER_DATE', config_value='2020-10-31 11:29:35',create_date='2020-10-31 11:29:35';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO autogenerator_invoice_number (id, number) VALUES ('','1604143775');
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings set is_invoiced='yes',invoice_number= '2020/390' where id='3053' and is_invoiced!='yes';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],UPDATE agents SET credit_usage=credit_usage+('7190.4'),   credit_value= credit_value-('7190.4') ,  cd_credit_usage=cd_credit_usage+('7190.4') , cd_credit_value=cd_credit_value-('7190.4')  WHERE id = '21';
[10/31/2020 11:29:35], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into  agent_credit_log SET agent_id= '21',credit_value= '-875269.262',credit_usage= '3703986.782',credit_limit= '2828717.52',receipt_id= '',amount= '7190.4',booking_id='3053',booking_cost= '7190.4',receipt_allocation= '',balance= '7190.4',ip='203.192.206.228',user_type='User',admin_id='Agent - Ankita  Rao(CD0021)',temp_credit_limit='',log_type='Add Invoice',note='Add Invoice',create_date='2020-10-31 11:10:35';
[10/31/2020 11:29:36], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into booking_rate_info set agent_price='0',sub_agent_price='0',supplier_currency='USD',supplier_price='100',supplier_type='offline',supplier_id='S000000243',acc_type='purchase',accounting_multiplier='1.00000',booking_id='3053',booking_log='Booking Vouchered',type='Sale',create_date='2020-10-31 11:29:35',account_invoice='2020/390',particulars='';
[10/31/2020 11:29:36], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into booking_rate_info set agent_price='7190.4',sub_agent_price='0',supplier_price='0',acc_type='sale',accounting_multiplier='0.01533',booking_id='3053',booking_log='Booking Vouchered',type='Sale',create_date='2020-10-31 11:29:35',account_invoice='2020/390',particulars='';
[10/31/2020 11:29:36], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],DELETE FROM accounts_invoice_transaction WHERE bid = 1502;
[10/31/2020 11:29:36], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO accounts_invoice_transaction SET bid= '1502',booking_id= '3053',invoice_number= '2020/390',service_type= 'hotel',booking_type= 'online',service_name= 'THE HERITAGE',type= 'sale',room_type= 'double',quantity_room= '1',from_date= '2020/10/31',to_date= '2020/11/01',quantity= '1',price= '7190.4',total_price= '7190.4';
[10/31/2020 11:29:36], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into email_logs SET `subject`= 'The Fabulous Getaway Tax Dispute(TaxInvoice)',from_email_id= 'sanket.desai@qtechsoftware.com',body= 'Rm9yIEZvbGxvd2luZyBib29raW5nIFRheCBpcyBub3QgaW5zZXJ0ZWQ8YnI+Qm9va2luZ0lkOi0zMDUzPGJyPkludm9pY2Ugbm86LTIwMjAvMzkwPGJyPmJyYW5jaF9pZDotMzxicj5UeXBlOi1hZ2VudDxicj5BY2NvdW50IHR5cGU6LXNhbGU8YnI+',to_email_id= 'sanket.desai@qtechsoftware.com',cc= '',bcc= '',status= 'Success',page_url= '/confirm_booking.php',create_date= '2020-10-31 11:29:36';
[10/31/2020 11:29:36], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], insert into email_trigger set  subject ='The Fabulous Getaway Tax Dispute',  message='For Following booking Tax is not inserted<br>BookingId:-3053<br>Invoice no:-2020/390<br>branch_id:-3<br>Type:-agent<br>Account type:-sale<br>',  email_sent ='yes', create_date ='2020-10-31 11:29:36', email_sent_to ='sanket.desai@qtechsoftware.com,TESTER_EMAIL_ID', email_type ='TaxInvoice';
[10/31/2020 11:29:37], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
        ('','','3053','vouchered-invoiced','2020-10-31 11:29:37','Booking invoiced by Back Office tfg on behalf of Agent - Ankita  Rao(CD0021)','21','203.192.206.228','','','');
[10/31/2020 11:29:37], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO agent_commission SET booking_id ='3053',booking_detail_id ='3053',agent_id ='21',is_sub_agent ='N',parent_id ='',display_commission ='1190.4',display_currency ='INR',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 19.84 %',create_date ='2020-10-31 11:29:37';
[10/31/2020 11:29:37], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into accounting_status set booking_id ='3053',acc_sales_export='0',acc_purchase_export='0',acc_status='A';
[10/31/2020 11:29:37], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
        ('','','3053','vouchered','2020-10-31 11:29:37','Voucherd by Back Office tfg on behalf of Agent - Ankita  Rao(CD0021)','21','203.192.206.228','','','');
[10/31/2020 11:29:39], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into email_logs SET `subject`= ' TFG103053 /  Booking Vouchered ',from_email_id= 'sanket.desai@qtechsoftware.com',body= '[encoded data, 29884 characters]',to_email_id= 'snehal.valanju@qtechsoftware.com,nitin@qtechsoftware.com',cc= '',bcc= '',status= 'Success',page_url= '/confirm_booking.php',create_date= '2020-10-31 11:29:39';
[10/31/2020 11:29:39], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into temp(booking_id,mail_send_to)values('3053','snehal.valanju@qtechsoftware.com');
[10/31/2020 11:29:39], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into temp(booking_id,mail_send_to)values('3053','nitin@qtechsoftware.com');
[10/31/2020 11:29:40], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into email_logs SET `subject`= 'Special Remark / Request Added  For Booking ID-3053 - The Fabulous Getaway',from_email_id= 'sanket.desai@qtechsoftware.com',body= 'RGVhciBUZWFtICwgPGJyPjxici8+U3BlY2lhbCBSZW1hcmsgLyBSZXF1ZXN0IEFkZGVkICBGb3IgQm9va2luZyBJRC0gPGI+MzA1MyA8L2I+PGJyLz4gQmVsb3cgYXJlIHRoZSBEZXRhaWxzIDxicj48YnIvPlNwZWNpYWwgUmVxdWVzdCA8YnI+MSk6IFRFU1QgU1JJIExBTktBIFJFUTxicj4yKTogTk9OIFNNT0tJTkcgUk9PTTxicj5PdGhlciBSZW1hcmsgOjxicj48YnIvPg==',to_email_id= '',cc= '',bcc= '',status= 'You must provide at least one recipient email address.',page_url= '/confirm_booking.php',create_date= '2020-10-31 11:29:40';
[10/31/2020 11:29:40], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO mails_error_log set mailfrom='sanket.desai@qtechsoftware.com',mailsubject='Special Remark / Request Added  For Booking ID-3053 - The Fabulous Getaway',mailbody='Dear Team , &lt;br&gt;&lt;br/&gt;Special Remark / Request Added  For Booking ID- &lt;b&gt;3053 &lt;/b&gt;&lt;br/&gt; Below are the Details &lt;br&gt;&lt;br/&gt;Special Request &lt;br&gt;1): TEST SRI LANKA REQ&lt;br&gt;2): NON SMOKING ROOM&lt;br&gt;Other Remark :&lt;br&gt;&lt;br/&gt;',mailto='',mailcc='',mailbcc='',mailattachment='',reason='You must provide at least one recipient email address.',date_time='2020-10-31 11:29:40';
[10/31/2020 11:34:42], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],UPDATE room_rates SET availability = availability+1,consumed_inventory = consumed_inventory-1 WHERE hotel_id = '53777' and inventory_class_id = '132' and supplier_id = 'S000000243' and date_from = '2020-10-31';
[10/31/2020 11:34:42], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],update supplement_rate set inventory = '0' where supplement_rate_id = '1';
[10/31/2020 11:34:42], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],INSERT INTO history_bookings set history_booking_id ='3053', agent_id ='21', itenirary_id ='3053', confirmation_number ='', payment_confirmation_no ='', voucher_id ='Vucher Id', voucher_hashcode ='e6796f97c90007316a2e67781b8be777437713053', email_id ='sanket.desai@qtechsoftware.com', leader_title ='Mr', leader_first_name ='Sanket', leader_last_name ='Desai', city_id ='colombo', country_id ='132', display_room_rate ='7190.400', native_room_rate ='100.000', native_currency_code ='USD', additional_charge ='0.000', cancellation_policy ='Amendment of Dates, Room Category, Passenger Names are considered as Cancel and Rebook by most of the Hotels.
        Any Changes in initial booking may be denied by the supplier or may result in extra charges.
        Confirmation of amendment requests is subject to availablity and rates at the time of amendment.<Br><Br><B><U>Detailed Cancellation Policy:</U></B> <br/> Cancellation Charges of 7190.4 INR applicable if cancelled after 31 Oct 2020 16:48 hrs.', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2020-10-31 11:29:35', create_date ='2020-10-31 11:29:34', source_type ='localsystem', expiration_date ='2020-10-31 00:00:00', comment_contract ='', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='7190.400', wh_sub_agent_rate ='0.000', wh_agent_rate ='0.000', supplier_rate ='100.000', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='nitinalpha', admin_booked ='1', emailed_status ='0', applied_multiplier ='60', applied_markup ='19.84', wh_applied_markup ='0.000', original_voucher ='', subagent_markup ='', agent_markup ='19.84', wh_agent_markup ='0.000', basecurrency_multiplier ='0.01533', wh_basecurrency_multiplier ='1', basecurrency_multiplier_native ='1.00000', wh_basecurrency_multiplier_native ='1', agent_currency_multiplier ='1.00000', wh_agent_currency_multiplier ='1.000', modified_datetime ='2020-10-31 11:34:42', modified_by ='tfg', display_currency_code ='INR', created_datetime ='2020-10-31 11:34:42', sub_agent_rate ='0.000', created_by ='tfg', site_id ='0', applicable_service_tax ='0.000', wh_parent_agent_id ='0', wh_agent_id ='0', nationality ='Bahamian', ip_addr ='203.192.206.228', is_cancel_history ='1';
[10/31/2020 11:34:42], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],INSERT INTO booking_status (visa_id,visa_status,booking_id,status,create_date,memo,agent_id,ip_address,admin,modify_by,crons) VALUES
        ('','','3053','cancelled','2020-10-31 11:34:42','Cancellation Confirmation Number: Cancellation done on 2020-10-31 11:34:42  by tfg','tfg','203.192.206.228','tfg','','');
[10/31/2020 11:34:42], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],UPDATE bookings SET current_status='cancelled',accounts_processed ='0',status_date='2020-10-31 11:34:42' , pending_cancellation = 'no'WHERE reservation_id = 'RDT2020101865' AND id = '3053' AND (current_status = 'pending' OR  current_status = 'confirmed' OR  current_status = 'vouchered' OR  current_status = 'on_request' OR  current_status = 'inprocess_cancel') ;
[10/31/2020 11:34:42], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],UPDATE bookings SET  agent_rate='7190.4' , sub_agent_rate='0' , supplier_rate='100' , applicable_service_tax='' WHERE id = '3053' AND (current_status = 'cancelled' ) ;
[10/31/2020 11:34:42], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],delete from cancellations where booking_id =? ;
[10/31/2020 11:34:42], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],INSERT INTO cancellations (native_charge,display_charge,native_currency_code,display_currency_code,reservation_id,booking_id,cancellation_date,confirmation_no,note,cancellation_reason) values ('100','7190.4','USD','INR','RDT2020101865','3053','2020-10-31 11:34:42','Cancellation done on 2020-10-31 11:34:42 ','Confirmed charges. ','');
[10/31/2020 11:34:43], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.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 = '21';
[10/31/2020 11:34:43], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],insert into  agent_credit_log SET agent_id= '21',credit_value= '-875269.262',credit_usage= '3703986.782',credit_limit= '2828717.52',receipt_id= '',amount= '',booking_id='3053',booking_cost= '',receipt_allocation= '',balance= '',ip='203.192.206.228',user_type='admin',admin_id='tfg',temp_credit_limit='',log_type='Booking Cancelled',note='Booking Cancelled',create_date='2020-10-31 11:10:43';
[10/31/2020 11:34:43], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],update bookings_details set reservation_pushed = '3', channel_manager = 'rategain',room_type_description='' where booking_id = '3053';
[10/31/2020 11:34:44], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],insert into email_logs SET `subject`= ' TFG103053 /  Booking Cancelled ',from_email_id= 'sanket.desai@qtechsoftware.com',body= '[encoded data, 20592 characters]',to_email_id= 'snehal.valanju@qtechsoftware.com,nitin@qtechsoftware.com',cc= '',bcc= '',status= 'Success',page_url= '/tms/view_booking.php',create_date= '2020-10-31 11:34:44';
[10/31/2020 11:34:44], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],insert into temp(booking_id,mail_send_to)values('3053','snehal.valanju@qtechsoftware.com');
[10/31/2020 11:34:44], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],insert into temp(booking_id,mail_send_to)values('3053','nitin@qtechsoftware.com');
[10/31/2020 11:34:45], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],insert into email_logs SET `subject`= ' TFG103053 /  Booking Cancelled ',from_email_id= 'sanket.desai@qtechsoftware.com',body= '[encoded data, 28160 characters]',to_email_id= 'snehal.valanju@qtechsoftware.com',cc= '',bcc= '',status= 'Success',page_url= '/tms/view_booking.php',create_date= '2020-10-31 11:34:45';
[10/31/2020 11:34:45], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],insert into temp(booking_id,mail_send_to)values('3053','snehal.valanju@qtechsoftware.com');
[10/31/2020 11:34:45], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/view_booking.php],insert into temp(booking_id,mail_send_to)values('3053','snehal.valanju@qtechsoftware.com');
[10/31/2020 11:52:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/crons/channel_manager_push_reservation.php],update bookings_details set reservation_pushed = '0', channel_manager = 'rategain',room_type_description='' where booking_id = '3050';
[10/31/2020 11:52:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/crons/channel_manager_push_reservation.php],update bookings_details set reservation_pushed = '0', channel_manager = 'rategain',room_type_description='' where booking_id = '3051';
[10/31/2020 11:52:20], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/crons/channel_manager_push_reservation.php],update bookings_details set reservation_pushed = '0', channel_manager = 'rategain',room_type_description='' where booking_id = '3052';
[10/31/2020 11:52:21], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/crons/channel_manager_push_reservation.php],update bookings_details set reservation_pushed = '0', channel_manager = 'rategain',room_type_description='' where booking_id = '3053';
