split bill ui

This commit is contained in:
phyusin
2018-02-02 13:41:38 +06:30
parent b553dd0661
commit d1fd92bfd3
4 changed files with 183 additions and 421 deletions

View File

@@ -674,7 +674,7 @@
$('#request_bills').click(function () {
swal({
title: "Alert",
text: "Are you sure want to Split?",
text: "Do you want to Split bill?",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
@@ -683,7 +683,7 @@
}, function (isConfirm) {
if (isConfirm) {
var dining_id = "<%= @dining.id %>";
window.location.href = '/origami/table/' + dining_id + "/split_bill";
window.location.href = '/origami/table/' + dining_id + "/split_bills";
}else{
var order_id = $('#save_order_id').attr('data-order');
var ajax_url = "/origami/" + order_id + "/request_bills";