diff --git a/app/models/order.rb b/app/models/order.rb index 714174fe..5f96e6d6 100644 --- a/app/models/order.rb +++ b/app/models/order.rb @@ -322,8 +322,7 @@ class Order < ApplicationRecord def self.search(search) if search - # find(:all, :conditions => ['name LIKE ? OR contact_no LIKE ?', "%#{search}%", "%#{search}%"]) - where("order_id LIKE ?", "%#{search}%") + where("order_id LIKE ? OR item_count ='#{search}'","%#{search}%",) else find(:all) end diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 83373b8e..77fedb16 100644 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -393,7 +393,7 @@ $( document ).ready(function() { $('#pay').text("Pay") $.confirm({ title: 'Infomation!', - content: 'Thank you !', + content: 'Thank you ! '+msg, buttons: { confirm: { text: 'Ok', diff --git a/app/views/transactions/orders/index.html.erb b/app/views/transactions/orders/index.html.erb index 80befdc1..8463886f 100644 --- a/app/views/transactions/orders/index.html.erb +++ b/app/views/transactions/orders/index.html.erb @@ -1,7 +1,7 @@
-
-
+ <%= form_tag transactions_orders_path, :method => :get do %> +
+   + +
+ <% end %>
- - - +
- <%= form_tag transactions_orders_path, :method => :get do %> -
- - -
- <% end %> -
Order ID Type