conflict data
This commit is contained in:
@@ -45,12 +45,14 @@ class Origami::HomeController < BaseOrigamiController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
sale = Sale.find(booking.sale_id)
|
if !booking.sale_id.nil?
|
||||||
if sale.sale_status !='completed'
|
sale = Sale.find(booking.sale_id)
|
||||||
if !@order_items_count.key?(booking.dining_facility_id)
|
if sale.sale_status !='completed'
|
||||||
@order_items_count.store(booking.dining_facility_id, sale.sale_items.count)
|
if !@order_items_count.key?(booking.dining_facility_id)
|
||||||
else
|
@order_items_count.store(booking.dining_facility_id, sale.sale_items.count)
|
||||||
@order_items_count[booking.dining_facility_id] += sale.sale_items.count
|
else
|
||||||
|
@order_items_count[booking.dining_facility_id] += sale.sale_items.count
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -46,12 +46,14 @@ class Origami::OrdersController < BaseOrigamiController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
sale = Sale.find(booking.sale_id)
|
if !booking.sale_id.nil?
|
||||||
if sale.sale_status !='completed'
|
sale = Sale.find(booking.sale_id)
|
||||||
if !@order_items_count.key?(booking.dining_facility_id)
|
if sale.sale_status !='completed'
|
||||||
@order_items_count.store(booking.dining_facility_id, sale.sale_items.count)
|
if !@order_items_count.key?(booking.dining_facility_id)
|
||||||
else
|
@order_items_count.store(booking.dining_facility_id, sale.sale_items.count)
|
||||||
@order_items_count[booking.dining_facility_id] += sale.sale_items.count
|
else
|
||||||
|
@order_items_count[booking.dining_facility_id] += sale.sale_items.count
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -41,12 +41,14 @@ class Origami::RoomsController < BaseOrigamiController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
sale = Sale.find(booking.sale_id)
|
if !booking.sale_id.nil?
|
||||||
if sale.sale_status !='completed'
|
sale = Sale.find(booking.sale_id)
|
||||||
if !@order_items_count.key?(booking.dining_facility_id)
|
if sale.sale_status !='completed'
|
||||||
@order_items_count.store(booking.dining_facility_id, sale.sale_items.count)
|
if !@order_items_count.key?(booking.dining_facility_id)
|
||||||
else
|
@order_items_count.store(booking.dining_facility_id, sale.sale_items.count)
|
||||||
@order_items_count[booking.dining_facility_id] += sale.sale_items.count
|
else
|
||||||
|
@order_items_count[booking.dining_facility_id] += sale.sale_items.count
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -121,6 +121,10 @@ delete from sym_node;
|
|||||||
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
|
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
|
||||||
values('tax_profiles','customers','setting',current_timestamp,current_timestamp);
|
values('tax_profiles','customers','setting',current_timestamp,current_timestamp);
|
||||||
|
|
||||||
|
insert into sym_trigger
|
||||||
|
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
|
||||||
|
values('display_images','customers','setting',current_timestamp,current_timestamp);
|
||||||
|
|
||||||
# Create Trigger for Dining Channel
|
# Create Trigger for Dining Channel
|
||||||
|
|
||||||
insert into sym_trigger
|
insert into sym_trigger
|
||||||
@@ -367,6 +371,10 @@ delete from sym_node;
|
|||||||
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
|
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
|
||||||
values('tax_profiles','cloud_2_sx', 100, current_timestamp, current_timestamp);
|
values('tax_profiles','cloud_2_sx', 100, current_timestamp, current_timestamp);
|
||||||
|
|
||||||
|
insert into sym_trigger_router
|
||||||
|
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
|
||||||
|
values('display_images','cloud_2_sx', 100, current_timestamp, current_timestamp);
|
||||||
|
|
||||||
# Setting Channel # From Master to cloud
|
# Setting Channel # From Master to cloud
|
||||||
insert into sym_trigger_router
|
insert into sym_trigger_router
|
||||||
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
|
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
|
||||||
@@ -400,6 +408,10 @@ delete from sym_node;
|
|||||||
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
|
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
|
||||||
values('tax_profiles','sx_2_cloud', 100, current_timestamp, current_timestamp);
|
values('tax_profiles','sx_2_cloud', 100, current_timestamp, current_timestamp);
|
||||||
|
|
||||||
|
insert into sym_trigger_router
|
||||||
|
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
|
||||||
|
values('display_images','sx_2_cloud', 100, current_timestamp, current_timestamp);
|
||||||
|
|
||||||
#End Setting Channel
|
#End Setting Channel
|
||||||
|
|
||||||
# Dining Channel # From cloud to SX
|
# Dining Channel # From cloud to SX
|
||||||
|
|||||||
Reference in New Issue
Block a user