diff --git a/app/assets/javascripts/origami.js b/app/assets/javascripts/origami.js index 2f9fcee4..c799c0be 100755 --- a/app/assets/javascripts/origami.js +++ b/app/assets/javascripts/origami.js @@ -4,6 +4,7 @@ //= require bootstrap/js/bootstrap-material-design.min //= require jquery_ujs //= require turbolinks +//= require cable //= require jquery-slimscroll/jquery.slimscroll.js //= require node-waves/waves.js //= require sweetalert/sweetalert.min.js diff --git a/app/assets/stylesheets/origami.scss b/app/assets/stylesheets/origami.scss index 9c2dcbb1..6e06b1e5 100755 --- a/app/assets/stylesheets/origami.scss +++ b/app/assets/stylesheets/origami.scss @@ -97,15 +97,15 @@ select.form-control { } .cash-color{ - background-color:#80CBC4; + background-color:#2196F3; } .credit-color{ - background-color:#FFCCBC; + background-color:#FF5722; } .other-payment-color{ - background-color:#E1BEE7; + background-color:#795548; } .cashier_number:hover{ @@ -201,7 +201,7 @@ select.form-control { } .red { - background-color:#ff0000; + background-color:#F44336; } .green{ diff --git a/app/views/origami/addorders/detail.html.erb b/app/views/origami/addorders/detail.html.erb index 1056d477..be16da51 100755 --- a/app/views/origami/addorders/detail.html.erb +++ b/app/views/origami/addorders/detail.html.erb @@ -1,5 +1,8 @@ <%= stylesheet_link_tag 'addorder', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'addorder', 'data-turbolinks-track': 'reload' %> +
-
1000
+
1000
3000
-
5000
+
5000
10000
@@ -106,7 +106,7 @@
- +
diff --git a/app/views/origami/discounts/index.html.erb b/app/views/origami/discounts/index.html.erb index ada238bb..4fbaff3f 100755 --- a/app/views/origami/discounts/index.html.erb +++ b/app/views/origami/discounts/index.html.erb @@ -1,4 +1,7 @@
+
@@ -366,6 +369,7 @@ // Pay Discount for Payment $("#pay-discount").on('click', function(e){ e.preventDefault(); + $("#loading_wrapper").show(); var sale_id = $('#sale-id').text(); var discount_items = JSON.stringify(get_discount_item_rows()); var overall_discount = $("#order-discount").text(); @@ -379,6 +383,7 @@ url: ajax_url, data: params, success:function(result){ + $("#loading_wrapper").hide(); swal({ title: "Infomation!", text: result.status, diff --git a/app/views/origami/jcb/index.html.erb b/app/views/origami/jcb/index.html.erb index e1ec43d4..c27013d2 100755 --- a/app/views/origami/jcb/index.html.erb +++ b/app/views/origami/jcb/index.html.erb @@ -76,11 +76,11 @@
-
1000
+
1000
3000
-
5000
+
5000
10000
@@ -92,7 +92,7 @@
- +
diff --git a/app/views/origami/master/index.html.erb b/app/views/origami/master/index.html.erb index bdbbf6d4..b817effd 100755 --- a/app/views/origami/master/index.html.erb +++ b/app/views/origami/master/index.html.erb @@ -76,11 +76,11 @@
-
1000
+
1000
3000
-
5000
+
5000
10000
@@ -92,7 +92,7 @@
- +
diff --git a/app/views/origami/mpu/index.html.erb b/app/views/origami/mpu/index.html.erb index ce2947fd..92a87dd2 100755 --- a/app/views/origami/mpu/index.html.erb +++ b/app/views/origami/mpu/index.html.erb @@ -79,11 +79,11 @@
-
1000
+
1000
3000
-
5000
+
5000
10000
@@ -95,7 +95,7 @@
- +
diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index af8cde00..0cd18f0f 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -265,7 +265,7 @@ - + diff --git a/app/views/origami/sales/show.html.erb b/app/views/origami/sales/show.html.erb index 2152deb1..904d5896 100755 --- a/app/views/origami/sales/show.html.erb +++ b/app/views/origami/sales/show.html.erb @@ -25,7 +25,7 @@
<% @complete.each do |sale| %> -
+
<%= sale.receipt_no %><%= sale.sale_status %>
@@ -39,7 +39,7 @@
<% @tables.each do |table| %> <% if table.status == 'occupied' %> -
+
<%= table.name %> <% if table.get_booking.nil? %> @@ -50,7 +50,7 @@
<% else %> -
+
<%= table.name %>
@@ -65,7 +65,7 @@
<% @rooms.each do |room| %> <% if room.status == 'occupied' %> -
+
<%= room.name %> <% if room.get_booking.nil? %> @@ -76,7 +76,7 @@
<% else %> -
+
<%= room.name %>
@@ -90,7 +90,7 @@
<% @orders.each do |order| %> -
+
<%= order.order_id %>
@@ -198,9 +198,9 @@
<% if @sale.sale_status != 'void' %> - + <% end %> - +
diff --git a/app/views/origami/visa/index.html.erb b/app/views/origami/visa/index.html.erb index 53cf8dcf..53589c89 100755 --- a/app/views/origami/visa/index.html.erb +++ b/app/views/origami/visa/index.html.erb @@ -76,11 +76,11 @@
-
1000
+
1000
3000
-
5000
+
5000
10000
@@ -92,7 +92,7 @@
- +