diff --git a/app/controllers/spree/admin/bookkeeping_documents_controller.rb b/app/controllers/spree/admin/bookkeeping_documents_controller.rb index d532823b..d2e6f299 100644 --- a/app/controllers/spree/admin/bookkeeping_documents_controller.rb +++ b/app/controllers/spree/admin/bookkeeping_documents_controller.rb @@ -17,6 +17,7 @@ def index # Massaging the params for the index view like Spree::Admin::Orders#index params[:q] ||= {} @search = Spree::BookkeepingDocument.ransack(params[:q]) + @is_a_purchase_order = @order.po? @bookkeeping_documents = @search.result @bookkeeping_documents = @bookkeeping_documents.where(printable: @order) if order_focused? @bookkeeping_documents = @bookkeeping_documents.page(params[:page] || 1).per(10) diff --git a/app/views/spree/admin/bookkeeping_documents/index.html.erb b/app/views/spree/admin/bookkeeping_documents/index.html.erb index d3deb3d9..9eb49773 100644 --- a/app/views/spree/admin/bookkeeping_documents/index.html.erb +++ b/app/views/spree/admin/bookkeeping_documents/index.html.erb @@ -109,9 +109,11 @@