Skip to content

Commit

Permalink
Hide VINE voucher from admin voucher page
Browse files Browse the repository at this point in the history
  • Loading branch information
rioug committed Oct 23, 2024
1 parent b68a662 commit c2ee59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/enterprises/form/_vouchers.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
= t('.add_new')
%br

- if @enterprise.vouchers.with_deleted.present?
- if @enterprise.vouchers.not_vine.with_deleted.present?
%table
%thead
%tr
Expand All @@ -17,7 +17,7 @@
/%th= t('.customers')
/%th= t('.net_value')
%tbody
- @enterprise.vouchers.with_deleted.order(deleted_at: :desc, code: :asc).each do |voucher|
- @enterprise.vouchers.not_vine.with_deleted.order(deleted_at: :desc, code: :asc).each do |voucher|
%tr
%td= voucher.code
%td= voucher.display_value
Expand Down

0 comments on commit c2ee59c

Please sign in to comment.