supplier improvements
This commit is contained in:
@@ -4,6 +4,7 @@ module Suppliers
|
||||
# GET /tables.json
|
||||
def index
|
||||
@tables = Table.for_supplier(current_supplier, page: params[:page], per_page: params[:per_page] || 25, from_number: params[:from_number], to_number: params[:to_number])
|
||||
@tables.include_relation(:section)
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
@@ -88,6 +89,7 @@ module Suppliers
|
||||
|
||||
def qr_codes
|
||||
@tables = current_supplier.tables
|
||||
@tables.select!{|t| t.section_id == params[:section_id]} if params[:section_id].present?
|
||||
render layout: 'qr_sheet'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user