update shop.name
This commit is contained in:
@@ -126,6 +126,12 @@ class HomeController < ApplicationController
|
|||||||
render :json => {:status=> "Success", :url => root_path }.to_json
|
render :json => {:status=> "Success", :url => root_path }.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#Shop Name in Navbor
|
||||||
|
helper_method :shop_detail
|
||||||
|
def shop_detail
|
||||||
|
@shop = Shop.first
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Never trust parameters from the scary internet, only allow the white list through.
|
# Never trust parameters from the scary internet, only allow the white list through.
|
||||||
@@ -163,4 +169,5 @@ class HomeController < ApplicationController
|
|||||||
redirect_to reports_dailysale_index_path
|
redirect_to reports_dailysale_index_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -56,4 +56,9 @@ class Origami::DashboardController < BaseOrigamiController
|
|||||||
# get printer info
|
# get printer info
|
||||||
@print_settings = PrintSetting.get_precision_delimiter()
|
@print_settings = PrintSetting.get_precision_delimiter()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
helper_method :shop_detail
|
||||||
|
def shop_detail
|
||||||
|
@shop = Shop.first
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -12,4 +12,8 @@ class Origami::PendingOrderController < BaseOrigamiController
|
|||||||
@table_id = Booking.find(@booking).dining_facility_id
|
@table_id = Booking.find(@booking).dining_facility_id
|
||||||
@dining = DiningFacility.find(@table_id)
|
@dining = DiningFacility.find(@table_id)
|
||||||
end
|
end
|
||||||
|
helper_method :shop_detail
|
||||||
|
def shop_detail
|
||||||
|
@shop = Shop.first
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ $('#pay').on('click',function() {
|
|||||||
// location.reload();
|
// location.reload();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
window.location.href = '/origami/sale/'+ sale_id + "/cashier/payment";
|
||||||
});
|
});
|
||||||
$('#back').on('click',function(){
|
$('#back').on('click',function(){
|
||||||
window.location.href = '/origami/table/<%= @table.id %>';
|
window.location.href = '/origami/table/<%= @table.id %>';
|
||||||
|
|||||||
Reference in New Issue
Block a user