add change tax in table/room and check-in for room
This commit is contained in:
@@ -96,8 +96,16 @@
|
||||
url: '<%= inventory_save_to_journal_path %>',
|
||||
data: 'data=' + check_id,
|
||||
success: function () {
|
||||
alert('Successfully saved to journal.');
|
||||
window.location.href = '/inventory';
|
||||
swal({
|
||||
title: "Information!",
|
||||
text: "Successfully saved to journal",
|
||||
html: true,
|
||||
closeOnConfirm: false,
|
||||
closeOnCancel: false,
|
||||
allowOutsideClick: false
|
||||
}, function () {
|
||||
window.location.href = '/inventory';
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
@@ -107,7 +115,19 @@
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '<%= inventory_print_stock_check_path %>',
|
||||
data: 'stock_check_id=' + check_id
|
||||
data: 'stock_check_id=' + check_id,
|
||||
success: function(){
|
||||
swal({
|
||||
title: "Information!",
|
||||
text: "Print successfully",
|
||||
html: true,
|
||||
closeOnConfirm: false,
|
||||
closeOnCancel: false,
|
||||
allowOutsideClick: false
|
||||
}, function () {
|
||||
window.location.reload();
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user