Explorar o código

added to admin the ability to print cash out receipts

jose miguel %!s(int64=7) %!d(string=hai) anos
pai
achega
932e3bd17c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/models/ability.rb

+ 1 - 1
app/models/ability.rb

@@ -37,7 +37,7 @@ class Ability
       can :read, [CashRegister, Purchase, PaymentMethod, ProductsReturn, CashOut]
       # Categorias
       can :manage, [Category, Customer, BillingInformation, Expensesconcept, Pointsale, Product, Supplier, Unit, Sale, PosConfig, Purchase, SpecialPrice, ProductWaste, Seller, Transfer, Expense, User, Warehouse, Commission, Sellerscommission]
-      can [:opened_cash_registers, :find_cash_outs_by_date], CashOut
+      can [:opened_cash_registers, :find_cash_outs_by_date, :print_receipt], CashOut
       cannot [:create, :delete, :liquidate_reserve], Sale
       cannot :create, ProductWaste
     elsif user.usertype == "G"