update crmad ability

This commit is contained in:
Aung Myo
2017-06-26 19:22:16 +06:30
parent 376af85c64
commit 60fe3b9a67
4 changed files with 23 additions and 5 deletions

View File

@@ -20,9 +20,9 @@ class Ability
can :manage, Zone can :manage, Zone
can :manage, CashierTerminal can :manage, CashierTerminal
can :manage, Employee can :manage, Employee
can :manage, MembershipSetting # can :manage, MembershipSetting
can :manage, MembershipAction # can :manage, MembershipAction
can :manage, PaymentMethodSetting # can :manage, PaymentMethodSetting
can :manage, TaxProfile can :manage, TaxProfile
can :manage, PrintSetting can :manage, PrintSetting
can :manage, Account can :manage, Account
@@ -30,9 +30,26 @@ class Ability
can :manage, Order can :manage, Order
can :manage, Sale can :manage, Sale
can :manage, Customer
can :index, :dailysale can :index, :dailysale
can :index, :saleitem can :index, :saleitem
can :add_customer, Customer
can :update_sale_by_customer, Customer
can :index, :discount
can :create, :discount
can :show, :payment
can :create, :payment
can :reprint, :payment
can :move_dining, :movetable
can :moving, :movetable
can :move_dining, :moveroom
elsif user.role == "cashier" elsif user.role == "cashier"
can :read, Order can :read, Order

View File

@@ -47,7 +47,7 @@
<tbody> <tbody>
<% @i = 0 %> <% @i = 0 %>
<% @crm_customers.each do |crm_customer| %> <% @crm_customers.each do |crm_customer| %>
<% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> <% if crm_customer.customer_id != "CUS-00001" && crm_customer.customer_id != "CUS-000000000" %>
<tr class="customer_tr" data-ref="<%= crm_customer.customer_id %>"> <tr class="customer_tr" data-ref="<%= crm_customer.customer_id %>">
<td> <td>
<input type="radio" style="width:20px;" name="checkbox" class="checkbox_check" ></td> <input type="radio" style="width:20px;" name="checkbox" class="checkbox_check" ></td>

View File

@@ -41,7 +41,7 @@
<% if @crm_customers.count > 0 %> <% if @crm_customers.count > 0 %>
<% @i = 0 %> <% @i = 0 %>
<% @crm_customers.each do |crm_customer| %> <% @crm_customers.each do |crm_customer| %>
<% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> <% if crm_customer.customer_id != "CUS-00000" && crm_customer.customer_id != "CUS-00000000" %>
<tr class="customer_tr" data-ref="<%= crm_customer.customer_id %>"> <tr class="customer_tr" data-ref="<%= crm_customer.customer_id %>">
<td> <td>
<input type="radio" style="width:20px;" name="checkbox" class="checkbox_check" ></td> <input type="radio" style="width:20px;" name="checkbox" class="checkbox_check" ></td>

View File

@@ -13,6 +13,7 @@ module SXRestaurants
# -- all .rb files in that directory are automatically loaded. # -- all .rb files in that directory are automatically loaded.
config.active_record.time_zone_aware_types = [:datetime, :time] config.active_record.time_zone_aware_types = [:datetime, :time]
config.active_job.queue_adapter = :sidekiq config.active_job.queue_adapter = :sidekiq
config.time_zone = 'Asia/Rangoon'
end end
end end