diff --git a/app/models/ability.rb b/app/models/ability.rb index 00bb5b2c..1938fb45 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -37,6 +37,8 @@ class Ability can :index, :saleitem can :index, :receipt_no can :index, :shiftsale + can :index, :credit_payment + can :index, :void_sale can :get_customer, Customer can :add_customer, Customer @@ -113,6 +115,8 @@ class Ability can :index, :saleitem can :index, :receipt_no can :index, :shiftsale + can :index, :credit_payment + can :index, :void_sale elsif user.role == "supervisour" diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 2a328cc9..904749e6 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -43,6 +43,8 @@
<%= @sale_array[0].customer_id rescue '' %>
+Customer : <%= @sale_array[0].customer.name rescue '' %>
+ <%else%><%= @customer.customer_id rescue "" %>
Customer : <%= @customer.name rescue "" %>
<%end%> @@ -302,10 +306,10 @@ <% if @dining.bookings.length >= 1 %> - <% if @status_order == 'order' && @status_sale != 'sale' %> + @@ -316,6 +320,7 @@ <% else %> + diff --git a/app/views/origami/room_invoices/index.html.erb b/app/views/origami/room_invoices/index.html.erb index 3d88622e..60baf85f 100644 --- a/app/views/origami/room_invoices/index.html.erb +++ b/app/views/origami/room_invoices/index.html.erb @@ -26,9 +26,15 @@Date: <%= @sale.created_at.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%>
Date: <%= @obj.created_at.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%>
- - - -