added induties

This commit is contained in:
Myat Zin Wai Maw
2019-06-17 17:45:21 +06:30
parent 98bbf419fe
commit 047f2941cb
37 changed files with 822 additions and 24 deletions

View File

@@ -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