        SET
        booking_branch_id= '1'
        WHERE
        id='3072'
        ;
[12/03/2020 06:45:15], [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('3072','S000000241','1','1','0','-','','','53773','53773','RATEGAINONE','Mumbai','123456789','5.0','1','2021/06/03','2021/06/04','','https://alpha.otrams.thefabulousgetaway.com/project_folder/tfg_project/images/imagenotavailable.jpg');
[12/03/2020 06:45:15], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], insert into booking_room_detail set  booking_id = '3072', booking_detail_id = '1210', room_type_code = '1~~~132~~~1039~~~1~~~~~~~~~64440~~~0~~~S000000241', room_name = 'single', room_type_description = 'Standard  -Bed & Breakfast : 1 Pax <font color=\'red\'>-D</font>', display_nightly_rates = 'a:1:{i:0;a:3:{s:18:\"displayNightlyRate\";i:440;s:16:\"promotionDisplay\";s:0:\"\";s:25:\"displayNightlyRateDisplay\";s:152:\"Supplier Name - localsupplier(RateGainSupplier - S000000241), Rate - 440 AED, Currency Multiplier (AED-AED) - 1.00000 Supplier Commission-0 #localsystem\";}}', native_nightly_rates = 'a:1:{i:0;a:4:{s:19:\"O_nativeNightlyRate\";i:440;s:17:\"nativeNightlyRate\";i:440;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 = '440', display_room_rate_total = '440', number_of_rooms = '1';
[12/03/2020 06:45:15], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], insert into passangers set  booking_id = '3072', booking_detail_id = '1210', rid = '1808', room = '0', salutations = 'Mr', first_name = 'Deep', last_name = 'Mishra', passenger_type = 'adult', age = '';
[12/03/2020 06:45:16], [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 = 'SalesConsultant', sales_manager_id = '', admin_booked = '1', email_id = 'deep.mishra@rategain.com', leader_phone = '+123451914108628', agent_currency_multiplier = '0.27222', ip_addr = '60.254.11.202', backoffice_user = 'tfg', customer_id = '', applied_multiplier='1.00000', free_sale='',  applied_markup='0',  agent_markup='0',  basecurrency_multiplier='0.27222',  basecurrency_multiplier_native='0.27222',  parent_agent_id='24',  sub_agent_rate='0', agent_rate='440',  applicable_service_tax='0',  supplier_rate='440',  original_source='',  uid='ac1789bd6630a10e374157506a7ea47d'  where id='3072';
[12/03/2020 06:45:16], [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 ='3072';
[12/03/2020 06:45:16], [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 = '3072';
[12/03/2020 06:45:16], [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('3072','2020-12-03 06:44:00','2020-12-03 06:44:00','440','440','0','2020-12-03 06:45:16');
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into booking_lat_long(booking_id,latitude,longitude) values ('3072','','');
[12/03/2020 06:45:16], [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 ('3072','confirmed','2020-12-03 06:45:16','Booking confirmed . Booked by Back Office tfg on behalf of Agent - Snehal  Valanju(CD0024)','24','60.254.11.202','0','24');
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO booking_search_log(booking_id, details)
        VALUES(3072, 'a:30:{s:3:\"_id\";a:1:{s:4:\"$oid\";s:24:\"5fc889543fddcc3c440f5153\";}s:7:\"hotelId\";s:25:\"53773----------S000000241\";s:4:\"name\";s:11:\"RATEGAINONE\";s:14:\"local_hotel_id\";s:5:\"53773\";s:8:\"address1\";s:6:\"Mumbai\";s:8:\"latitude\";s:0:\"\";s:9:\"longitude\";s:0:\"\";s:4:\"city\";s:5:\"64440\";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:\"106\";s:16:\"rateCurrencyCode\";s:3:\"AED\";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:\"S000000241\";s:12:\"suppliername\";s:16:\"RateGainSupplier\";s:14:\"propertyRating\";s:3:\"5.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:440;s:17:\"nativeNightlyRate\";i:440;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\";i:440;s:16:\"promotionDisplay\";s:0:\"\";s:25:\"displayNightlyRateDisplay\";s:152:\"Supplier Name - localsupplier(RateGainSupplier - S000000241), Rate - 440 AED, Currency Multiplier (AED-AED) - 1.00000 Supplier Commission-0 #localsystem\";}}}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:\"single\";s:9:\"stay_note\";N;s:10:\"time_stamp\";s:32:\"45d33fef9a5a7b6ec3a37485aa3da5d1\";s:16:\"number_of_adults\";s:1:\"1\";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:\"AED\";s:18:\"nativeCurrencyCode\";s:3:\"AED\";s:20:\"displayRoomTypeRates\";i:440;s:20:\"sortingRoomTypeRates\";i:440;s:19:\"nativeRoomTypeRates\";i:440;s:12:\"offerApplied\";N;s:7:\"room_id\";s:49:\"1~~~132~~~1039~~~1~~~~~~~~~64440~~~0~~~S000000241\";s:14:\"room_type_code\";s:1:\"1\";s:14:\"boardtype_code\";s:1:\"1\";s:16:\"valuation_number\";s:49:\"1~~~132~~~1039~~~1~~~~~~~~~64440~~~0~~~S000000241\";s:15:\"number_of_child\";i:0;s:13:\"NumberOfRooms\";i:1;s:10:\"supplierId\";s:10:\"S000000241\";s:12:\"supplierName\";s:16:\"RateGainSupplier\";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 : 1 Pax <font color=\'red\'>-D</font>\";s:14:\"non_refundable\";s:1:\"0\";s:15:\"class_unique_id\";s:17:\"0_0_53773_6858318\";}}s:9:\"available\";i:1;s:15:\"displayRoomRate\";i:440;s:14:\"nativeRoomRate\";i:440;s:9:\"unique_id\";s:37:\"1_53773----------S000000241_0_0_55228\";s:10:\"supplierId\";s:10:\"S000000241\";s:19:\"displayCurrencyCode\";s:3:\"AED\";s:18:\"nativeCurrencyCode\";s:3:\"AED\";s:18:\"applied_markup_per\";i:0;s:18:\"applied_multiplier\";s:7:\"1.00000\";s:19:\"supplier_profile_id\";s:1:\"1\";s:13:\"supplier_data\";a:5:{s:7:\"hotelId\";s:25:\"53773----------S000000241\";s:10:\"sourceType\";s:11:\"localsystem\";s:15:\"supp_hotel_name\";s:11:\"RATEGAINONE\";s:18:\"supp_hotel_address\";s:6:\"Mumbai\";s:10:\"supplierId\";s:10:\"S000000241\";}s:8:\"no_class\";i:0;}}}}s:13:\"total_charges\";i:440;s:17:\"propertyAvailable\";i:1;s:8:\"no_class\";i:0;s:18:\"sort_total_charges\";i:440;s:16:\"hotel_name_ascii\";s:11:\"rategainone\";s:13:\"supplier_data\";a:5:{s:7:\"hotelId\";s:25:\"53773----------S000000241\";s:10:\"sourceType\";s:11:\"localsystem\";s:15:\"supp_hotel_name\";s:11:\"RATEGAINONE\";s:18:\"supp_hotel_address\";s:6:\"Mumbai\";s:10:\"supplierId\";s:10:\"S000000241\";}}');
[12/03/2020 06:45:16], [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('3072','2020-12-03 06:44:00','2020-12-03 06:44:00','1970-01-01 00:00:00','1970-01-01 00:00:00','440','440','0','2020-12-03 06:45:16','');
[12/03/2020 06:45:16], [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 = '3072';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO bookings_applicable_offer set  oid= '',  offer_type_code= '',  booking_id= '3072',  room_id= '1~~~132~~~1039~~~1~~~~~~~~~64440~~~0~~~S000000241',  room_name= 'single',  supplier_id= 'S000000241',  agent_id= '',  applied_native_discount= '0',  original_native_rate= '440',  native_rate= '440',  promotion_text= '',  offer_disc_type= '',  offer_disc_value= '',  offer_disc_currency= '',  create_date= '2020-12-03 06:45:16' ;
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings set confirmation_number='',itenirary_id='3072' where  id ='3072';
[12/03/2020 06:45:16], [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 = '53773' and inventory_class_id = '132' and supplier_id = 'S000000241' and date_from = '2021-06-03';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update supplement_rate set inventory = '0' where supplement_rate_id = '1';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php], insert into booking_configuration set  booking_id = '3072', config_key = 'BOOKING OTP', config_value = 'M5Gx1FTz';;
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into email_logs SET `subject`= ' TFG103072 /  Booking Confirmed ',from_email_id= 'sanket.desai@qtechsoftware.com',body= '[encoded data, 40400 characters]',to_email_id= 'snehal.valanju@qtechsoftware.com',cc= '',bcc= '',status= 'Success',page_url= '/confirm_booking.php',create_date= '2020-12-03 06:45:16';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into temp(booking_id,mail_send_to)values('3072','snehal.valanju@qtechsoftware.com');
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into temp(booking_id,mail_send_to)values('3072','snehal.valanju@qtechsoftware.com');
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update posted_bookings set booking_id='3072',status='1' where reservation_id='1908' and booking_id ='0';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update xmllogs set reservation_id='3072' where agent_logs_id='505' and source_type='localsystem';
[12/03/2020 06:45:16], [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 ='3072',  create_date ='2020-12-03 06:45:16', supplier_tax='';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings set voucher_id='Test123',status_date='2020-12-03 06:45:16',current_status='vouchered',voucher_hashcode='5f8d3e5fcc7d4307823e56fed4e4a8ba682843072',vouchered_by ='' where id='3072';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],Insert into booking_configuration set booking_id='3072',config_key='VOUCHER_DATE', config_value='2020-12-03 06:45:16',create_date='2020-12-03 06:45:16';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO autogenerator_invoice_number (id, number) VALUES ('','1606977916');
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],update bookings set is_invoiced='yes',invoice_number= '2020/399' where id='3072' and is_invoiced!='yes';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],UPDATE agents SET credit_usage=credit_usage+('119.7768'),   credit_value= credit_value-('119.7768') ,  cd_credit_usage=cd_credit_usage+('119.7768') , cd_credit_value=cd_credit_value-('119.7768')  WHERE id = '24';
[12/03/2020 06:45:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into  agent_credit_log SET agent_id= '24',credit_value= '8912.563',credit_usage= '1087.437',credit_limit= '10000',receipt_id= '',amount= '119.7768',booking_id='3072',booking_cost= '440',receipt_allocation= '',balance= '440',ip='60.254.11.202',user_type='User',admin_id='Agent - Snehal  Valanju(CD0024)',temp_credit_limit='',log_type='Add Invoice',note='Add Invoice',create_date='2020-12-03 06:12:16';
[12/03/2020 06:45:16], [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='AED',supplier_price='440',supplier_type='offline',supplier_id='S000000241',acc_type='purchase',accounting_multiplier='0.27222',booking_id='3072',booking_log='Booking Vouchered',type='Sale',create_date='2020-12-03 06:45:16',account_invoice='2020/399',particulars='';
[12/03/2020 06:45:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into booking_rate_info set agent_price='440',sub_agent_price='0',supplier_price='0',acc_type='sale',accounting_multiplier='0.27222',booking_id='3072',booking_log='Booking Vouchered',type='Sale',create_date='2020-12-03 06:45:16',account_invoice='2020/399',particulars='';
[12/03/2020 06:45:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],DELETE FROM accounts_invoice_transaction WHERE bid = 1520;
[12/03/2020 06:45:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO accounts_invoice_transaction SET bid= '1520',booking_id= '3072',invoice_number= '2020/399',service_type= 'hotel',booking_type= 'online',service_name= 'RATEGAINONE',type= 'sale',room_type= 'single',quantity_room= '1',from_date= '2021/06/03',to_date= '2021/06/04',quantity= '1',price= '440',total_price= '440';
[12/03/2020 06:45:17], [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+Qm9va2luZ0lkOi0zMDcyPGJyPkludm9pY2Ugbm86LTIwMjAvMzk5PGJyPmJyYW5jaF9pZDotMTxicj5UeXBlOi1hZ2VudDxicj5BY2NvdW50IHR5cGU6LXNhbGU8YnI+',to_email_id= 'sanket.desai@qtechsoftware.com',cc= '',bcc= '',status= 'Success',page_url= '/confirm_booking.php',create_date= '2020-12-03 06:45:17';
[12/03/2020 06:45:17], [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:-3072<br>Invoice no:-2020/399<br>branch_id:-1<br>Type:-agent<br>Account type:-sale<br>',  email_sent ='yes', create_date ='2020-12-03 06:45:17', email_sent_to ='sanket.desai@qtechsoftware.com,TESTER_EMAIL_ID', email_type ='TaxInvoice';
[12/03/2020 06:45:17], [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
        ('','','3072','vouchered-invoiced','2020-12-03 06:45:17','Booking invoiced by Back Office tfg on behalf of Agent - Snehal  Valanju(CD0024)','24','60.254.11.202','','','');
[12/03/2020 06:45:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],INSERT INTO agent_commission SET booking_id ='3072',booking_detail_id ='3072',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 06:45:17';
[12/03/2020 06:45:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into accounting_status set booking_id ='3072',acc_sales_export='0',acc_purchase_export='0',acc_status='A';
[12/03/2020 06:45:17], [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
        ('','','3072','vouchered','2020-12-03 06:45:17','Voucherd by Back Office tfg on behalf of Agent - Snehal  Valanju(CD0024)','24','60.254.11.202','','','');
[12/03/2020 06:45:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into email_logs SET `subject`= ' TFG103072 /  Booking Vouchered ',from_email_id= 'sanket.desai@qtechsoftware.com',body= '[encoded data, 28144 characters]',to_email_id= 'snehal.valanju@qtechsoftware.com,SalesConsultant@gmail.com',cc= '',bcc= '',status= 'Success',page_url= '/confirm_booking.php',create_date= '2020-12-03 06:45:18';
[12/03/2020 06:45:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into temp(booking_id,mail_send_to)values('3072','snehal.valanju@qtechsoftware.com');
[12/03/2020 06:45:18], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/confirm_booking.php],insert into temp(booking_id,mail_send_to)values('3072','SalesConsultant@gmail.com');
[12/03/2020 06:45:25], [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 = '3072';
[12/03/2020 06:50:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_bookings set history_booking_id ='3072', agent_id ='24', itenirary_id ='3072', sequence = '', confirmation_number ='', payment_confirmation_no ='', voucher_id ='Test123', voucher_hashcode ='5f8d3e5fcc7d4307823e56fed4e4a8ba682843072', email_id ='deep.mishra@rategain.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 12:14 hrs.', supplier_cancellation_policy ='', current_status ='vouchered', booking_status ='1', status_date ='2020-12-03 06:45:16', create_date ='2020-12-03 06:45:15', source_type ='localsystem', expiration_date ='2020-12-03 06:45: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 06:50:16', modified_by ='tfg', display_currency_code ='AED', created_datetime ='2020-12-03 06:50:16', 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 06:50:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_bookings_details  set  history_booking_detail_id ='1210', old_reff_id ='543', booking_id ='3072', supplier_id ='S000000241', total_nights ='1', arrival_date ='2021/06/03', departure_date ='2021/06/04', 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 06:50:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_passangers set history_passenger_id = '6411', old_reff_id = '543', booking_id = '3072', booking_detail_id = '1210', salutations = 'Mr', room = '0', rid = '1808', first_name = 'Deep', last_name = 'Mishra' ,passenger_type = 'adult' ,age = '';
[12/03/2020 06:50:16], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO history_booking_room_detail set rid = '1808', old_reff_id = '543', booking_id = '3072', booking_detail_id = '1210', room_type_code = '1~~~132~~~1039~~~1~~~~~~~~~64440~~~0~~~S000000241', room_name = 'single', room_type_description = 'Standard  -Bed & Breakfast : 1 Pax <font color=\'red\'>-D</font>', display_nightly_rates = 'a:1:{i:0;a:3:{s:18:"displayNightlyRate";i:440;s:16:"promotionDisplay";s:0:"";s:25:"displayNightlyRateDisplay";s:152:"Supplier Name - localsupplier(RateGainSupplier - S000000241), Rate - 440 AED, Currency Multiplier (AED-AED) - 1.00000 Supplier Commission-0 #localsystem";}}' ,native_nightly_rates = 'a:1:{i:0;a:4:{s:19:"O_nativeNightlyRate";i:440;s:17:"nativeNightlyRate";i:440;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 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],delete from booking_room_detail WHERE booking_id=?;
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],delete from passangers WHERE booking_id=?;
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO booking_room_detail set booking_id = '3072', booking_detail_id = '1210', room_type_code = '1~~~132~~~1039~~~1~~~~~~~~~64440~~~0~~~S000000241', room_name = 'single', meal_basis = '', room_type_description = 'Standard -Bed & Breakfast : 1 Pax -D', display_nightly_rates = 'a:1:{i:0;a:2:{s:18:"displayNightlyRate";s:6:"120.45";s:13:"whNightlyRate";s:6:"120.45";}}' ,native_nightly_rates = 'a:1:{i:0;a:3:{s:17:"nativeNightlyRate";s:6:"120.45";s:19:"O_nativeNightlyRate";i:440;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 = '120.45' ,display_room_rate_total = '120.45' ,number_of_rooms = '1';
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO passangers set booking_id = '3072', booking_detail_id = '1210', salutations = 'Mr', room = '', rid = '1809', first_name = 'DeepModify', last_name = 'MishraModify' ,age = '';
[12/03/2020 06:50:17], [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 12:14 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 06:50:17',service_date='2021-06-03',check_out_date='2021-06-04',display_room_rate= '120.45',display_discount='0',modified_datetime='2020-12-03 06:50:17',modified_by ='tfg',native_room_rate='120.45',native_discount='0.000',additional_charge='0.000',applicable_service_tax='',leader_title='Mr',leader_first_name='DeepModify',leader_last_name='MishraModify',nationality ='Indian',accounts_processed ='0',booking_type ='online',agent_ref_no ='',supplier_profile_id ='1',expiration_date= '2020-12-03 06:45:00',source_type='localsystem',leader_phone='+123451914108628',admin_note='',comment_contract='' WHERE id='3072';
[12/03/2020 06:50:17], [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 06:50:17',`log_type`= 'Accounts Data Added',`sql_query`= '',`log_description`= 'Accounts Only : Data Added by \&#039;tfg\&#039; From IP \&#039;60.254.11.202\&#039; for booking \&#039;3072\&#039;',`ip`= '60.254.11.202';
[12/03/2020 06:50:17], [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='120.45', agent_markup='0', supplier_rate='120.45', wh_sub_agent_rate='', discount_to_sub='', wh_agent_rate='120.45' where id='3072';
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update bookings_details set total_nights='1' , supplier_id= 'S000000241' , total_rooms= '1', arrival_date='2021/06/03', departure_date='2021/06/04', rate_code='~', hotel_address1='Mumbai', hotel_name='RATEGAINONE', hotel_phone='123456789', reservation_pushed='2' where booking_id ='3072';
[12/03/2020 06:50:17], [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
        ('','','3072','vouchered','2020-12-03 06:50:17','Booking Modified by tfg','tfg','60.254.11.202','tfg','','');
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update booking_rate_info set  supplier_price = supplier_price+('-319.55'), acc_export='0', accounting_multiplier='0.27222' where booking_id='3072' and acc_type='purchase' order by bid asc limit 1;
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update booking_rate_info set  agent_price = agent_price+('-319.55'), acc_export='0', accounting_multiplier='0.27222' where booking_id='3072' and acc_type='sale' order by bid asc limit 1;
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],DELETE FROM accounts_invoice_transaction WHERE bid = 1520;
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO accounts_invoice_transaction SET bid= '1520',booking_id= '3072',invoice_number= '2020/399',service_type= 'hotel',booking_type= 'online',service_name= 'RATEGAINONE',type= 'sale',room_type= 'single',quantity_room= '1',from_date= '2021/06/03',to_date= '2021/06/04',quantity= '1',price= '120.45',total_price= '120.45';
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php], update wh_booking_rate_info set  booking_id = '3072', booking_log = 'Booking Modified', create_date = '2020-12-03 06:50:17', agent_price = '120.450', sub_agent_price = '0.000', supplier_price = '120.450' where booking_id = '3072'  and type = "Sale";
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],delete from  agent_commission   WHERE booking_id='3072';
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],INSERT INTO agent_commission SET booking_id ='3072',booking_detail_id ='3072',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 06:50:17';
[12/03/2020 06:50:17], [file name :-/home/otrams/public_html/otramsphp7/uat/v3otrams/tms/bookings_modification.php],update booking_currency_multiplier set multiplier='1.00000' where booking_id='3072' and from_currency='AED' and to_currency='AED';
[12/03/2020 06:50:34], [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 = '3072';
