[12/03/2020 11:04:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='3073', agent_id ='24', itenirary_id ='3073', sequence = '', confirmation_number ='', payment_confirmation_no ='', voucher_id ='Test123', voucher_hashcode ='6303385436c534bef0ea81f727e268c5680003073', email_id ='sistemas@juantoselli.com', leader_title ='Mr', leader_first_name ='Deep', leader_last_name ='Mishra', city_id ='mumbai', country_id ='106', display_room_rate ='440.000', native_room_rate ='440.000', native_currency_code ='AED', 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 440 AED applicable if cancelled after 03 Dec 2020 14:56 hrs.', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2020-12-03 09:27:34', create_date ='2020-12-03 09:27:33', source_type ='localsystem', expiration_date ='2020-12-03 09:27:00', comment_contract ='', admin_note ='', is_payment_gateway ='0', service_type ='hotel', service_type_detail ='', native_rate ='', display_rate ='', agent_rate ='440.000', wh_sub_agent_rate ='0.000', wh_agent_rate ='0.000', supplier_rate ='440.000', special_comment ='', special_remark ='', sms_status ='', is_xml ='0', consultant_id ='SalesConsultant', admin_booked ='1', emailed_status ='0', applied_multiplier ='1.00000', applied_markup ='0', wh_applied_markup ='0.000', original_voucher ='', subagent_markup ='', agent_markup ='0', wh_agent_markup ='0.000', basecurrency_multiplier ='0.27222', wh_basecurrency_multiplier ='1', basecurrency_multiplier_native ='0.27222', wh_basecurrency_multiplier_native ='1', agent_currency_multiplier ='0.27222', wh_agent_currency_multiplier ='1.000', modified_datetime ='2020-12-03 11:04:18', modified_by ='tfg', display_currency_code ='AED', created_datetime ='2020-12-03 11:04:18', sub_agent_rate ='0.000', discount_to_sub ='0', created_by ='tfg', site_id ='0', applicable_service_tax ='0.000', wh_parent_agent_id ='0', wh_agent_id ='0', nationality ='Indian', ip_addr ='60.254.11.202';
[12/03/2020 11:04:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='1211', old_reff_id ='546', booking_id ='3073', supplier_id ='S000000241', total_nights ='2', arrival_date ='2021/06/03', departure_date ='2021/06/05', hotel_id ='53773', hotel_name ='RATEGAINONE', hotel_address1 ='Mumbai', hotel_phone ='123456789', hotel_rating ='5.0', rate_code ='', touricoRoomResId ='', gta_item_confirm_ref ='', channel_manager ='rategain', reservation_pushed ='0', gtaToken ='';
[12/03/2020 11:04:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '6414', old_reff_id = '546', booking_id = '3073', booking_detail_id = '1211', salutations = 'Mr', room = '0', rid = '1811', first_name = 'Deep', last_name = 'Mishra' ,passenger_type = 'adult' ,age = '';
[12/03/2020 11:04:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '6415', old_reff_id = '546', booking_id = '3073', booking_detail_id = '1211', salutations = 'Mr', room = '0', rid = '1811', first_name = 'Anand', last_name = 'Sri' ,passenger_type = 'adult' ,age = '';
[12/03/2020 11:04:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[12/03/2020 11:04:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '1811', old_reff_id = '546', booking_id = '3073', booking_detail_id = '1211', room_type_code = '2~~~132~~~1044~~~1~~~~~~~~~64440~~~0~~~S000000241', room_name = 'double', room_type_description = 'Standard  -Bed & Breakfast : 2 Pax <font color=\'red\'>-D</font>', display_nightly_rates = 'a:2:{i:0;a:3:{s:18:"displayNightlyRate";i:220;s:16:"promotionDisplay";s:0:"";s:25:"displayNightlyRateDisplay";s:152:"Supplier Name - localsupplier(RateGainSupplier - S000000241), Rate - 220 AED, Currency Multiplier (AED-AED) - 1.00000 Supplier Commission-0 #localsystem";}i:1;a:3:{s:18:"displayNightlyRate";i:220;s:16:"promotionDisplay";s:0:"";s:25:"displayNightlyRateDisplay";s:152:"Supplier Name - localsupplier(RateGainSupplier - S000000241), Rate - 220 AED, Currency Multiplier (AED-AED) - 1.00000 Supplier Commission-0 #localsystem";}}' ,native_nightly_rates = 'a:2:{i:0;a:4:{s:19:"O_nativeNightlyRate";i:220;s:17:"nativeNightlyRate";i:220;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;}}i:1;a:4:{s:19:"O_nativeNightlyRate";i:220;s:17:"nativeNightlyRate";i:220;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;}}}' ,native_room_rate_total = '440' ,display_room_rate_total = '440' ,wh_room_rate_total = '' ,number_of_rooms = '1';
[12/03/2020 11:04:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[12/03/2020 11:04:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '3073', booking_detail_id = '1211', room_type_code = '2~~~132~~~1044~~~1~~~~~~~~~64440~~~0~~~S000000241', room_name = 'double', meal_basis = 'Bed & Breakfast', room_type_description = 'Standard -Bed & Breakfast : 2 Pax -D', display_nightly_rates = 'a:2:{i:0;a:2:{s:18:"displayNightlyRate";s:3:"200";s:13:"whNightlyRate";s:3:"200";}i:1;a:2:{s:18:"displayNightlyRate";s:3:"200";s:13:"whNightlyRate";s:3:"200";}}' ,native_nightly_rates = 'a:2:{i:0;a:3:{s:17:"nativeNightlyRate";s:3:"200";s:19:"O_nativeNightlyRate";i:220;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;}}i:1;a:3:{s:17:"nativeNightlyRate";s:3:"200";s:19:"O_nativeNightlyRate";i:220;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;}}}' ,native_room_rate_total = '400' ,display_room_rate_total = '400' ,number_of_rooms = '1';
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '3073', booking_detail_id = '1211', salutations = 'Mr', room = '', rid = '1812', first_name = 'Deep', last_name = 'Mishra' ,age = '';
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '3073', booking_detail_id = '1211', salutations = 'Mr', room = '', rid = '1812', first_name = 'Anand', last_name = 'Sri' ,age = '';
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],UPDATE bookings SET confirmation_number='',native_currency_code='AED',display_currency_code='AED',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.&lt;Br&gt;&lt;Br&gt;&lt;B&gt;&lt;U&gt;Detailed Cancellation Policy:&lt;/U&gt;&lt;/B&gt; &lt;br/&gt; Cancellation Charges of 440 AED applicable if cancelled after 03 Dec 2020 14:56 hrs.                                ',supplier_cancellation_policy='',applied_multiplier='1.00000',applied_markup='0',agent_markup='0',consultant_id='tfg',basecurrency_multiplier='0.27222',basecurrency_multiplier_native='0.27222'_native,agent_currency_multiplier='0.27222',service_type_detail='RATEGAINONE',current_status='vouchered',status_date='2020-12-03 11:04:19',service_date='2021-06-03',check_out_date='2021-06-05',display_room_rate= '400',display_discount='0',modified_datetime='2020-12-03 11:04:19',modified_by ='tfg',native_room_rate='400',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='Deep',leader_last_name='Mishra',nationality ='Indian',accounts_processed ='0',booking_type ='online',agent_ref_no ='',supplier_profile_id ='1',expiration_date= '2020-12-03 09:27:00',source_type='localsystem',leader_phone='+543514149600',admin_note='',comment_contract='' WHERE id='3073';
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],insert into `user_logs` set `username`= 'tfg',`create_date`= '2020-12-03 11:04:19',`log_type`= 'Accounts Data Added',`sql_query`= '',`log_description`= 'Accounts Only : Data Added by \&#039;tfg\&#039; From IP \&#039;45.120.147.56\&#039; for booking \&#039;3073\&#039;',`ip`= '45.120.147.56';
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update bookings set  parent_agent_id='24', sub_agent_rate='', agent_rate='400', agent_markup='0', supplier_rate='400', wh_sub_agent_rate='', discount_to_sub='', wh_agent_rate='400' where id='3073';
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update bookings_details set total_nights='2' , supplier_id= 'S000000241' , total_rooms= '1', arrival_date='2021/06/03', departure_date='2021/06/05', rate_code='~', hotel_address1='Mumbai', hotel_name='RATEGAINONE', hotel_phone='123456789', reservation_pushed='2' where booking_id ='3073';
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/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
        ('','','3073','vouchered','2020-12-03 11:04:19','Booking Modified by tfg','tfg','45.120.147.56','tfg','','');
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update booking_rate_info set  supplier_price = supplier_price+('-40'), acc_export='0', accounting_multiplier='0.27222' where booking_id='3073' and acc_type='purchase' order by bid asc limit 1;
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update booking_rate_info set  agent_price = agent_price+('-40'), acc_export='0', accounting_multiplier='0.27222' where booking_id='3073' and acc_type='sale' order by bid asc limit 1;
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],DELETE FROM accounts_invoice_transaction WHERE bid = 1522;
[12/03/2020 11:04:19], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO accounts_invoice_transaction SET bid= '1522',booking_id= '3073',invoice_number= '2020/400',service_type= 'hotel',booking_type= 'online',service_name= 'RATEGAINONE',type= 'sale',room_type= 'double',quantity_room= '1',from_date= '2021/06/03',to_date= '2021/06/05',quantity= '2',price= '200',total_price= '400';
[12/03/2020 11:04:20], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '3073', booking_log = 'Booking Modified', create_date = '2020-12-03 11:04:20', agent_price = '400.000', sub_agent_price = '0.000', supplier_price = '400.000' where booking_id = '3073'  and type = "Sale";
[12/03/2020 11:04:20], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='3073';
[12/03/2020 11:04:20], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='3073',booking_detail_id ='3073',agent_id ='24',is_sub_agent ='N',parent_id ='',display_commission ='0',display_currency ='AED',paid ='N',type ='hotel',description ='Agent Mark Up Percentage is 0 %',create_date ='2020-12-03 11:04:20';
[12/03/2020 11:04:20], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update booking_currency_multiplier set multiplier='1.00000' where booking_id='3073' and from_currency='AED' and to_currency='AED';
