diff --git a/app/views/admin/enterprises/form/_vouchers.html.haml b/app/views/admin/enterprises/form/_vouchers.html.haml index 2e3912475a1..7f8f3436713 100644 --- a/app/views/admin/enterprises/form/_vouchers.html.haml +++ b/app/views/admin/enterprises/form/_vouchers.html.haml @@ -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 @@ -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