added induties
This commit is contained in:
@@ -914,6 +914,7 @@ $(document).ready(function(){
|
||||
show_customer_details(customer_id);
|
||||
|
||||
var dining_id = $(this).attr("data-id");
|
||||
localStorage.setItem('dinning_type','table');
|
||||
window.location.href = '/origami/table/' + dining_id;
|
||||
});
|
||||
|
||||
@@ -932,6 +933,7 @@ $(document).ready(function(){
|
||||
show_customer_details(customer_id);
|
||||
|
||||
var dining_id = $(this).attr("data-id");
|
||||
localStorage.setItem('dinning_type','room');
|
||||
window.location.href = '/origami/room/' + dining_id;
|
||||
});
|
||||
|
||||
@@ -1367,9 +1369,10 @@ $('#add_invoice').on('click',function(){
|
||||
});
|
||||
|
||||
$('#in_duties').on('click', function () {
|
||||
localStorage.setItem('dinning_id',<%= @room.id %>);
|
||||
var dining_id = "<%= @room.id %>";
|
||||
var booking_id = "<%= @booking.booking_id rescue "" %>";
|
||||
window.location.href = '/origami/assign_in_duty/'+ booking_id;
|
||||
window.location.href = '/induties/'+ booking_id +'/assign';
|
||||
});
|
||||
|
||||
// Ordering
|
||||
|
||||
Reference in New Issue
Block a user