소스 검색

added to admin the ability to print cash out receipts

jose miguel 7 년 전
부모
커밋
932e3bd17c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"