From efd7197a35a333cae239cf535c827b7e23bf52da Mon Sep 17 00:00:00 2001 From: Louis Knapp Date: Sun, 11 Oct 2015 13:58:10 -0500 Subject: [PATCH] lk | print bike sale labels does not show freecyclery bikes --- app/controllers/bikes_controller.rb | 2 +- notes.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/bikes_controller.rb b/app/controllers/bikes_controller.rb index 1c75293..1098e54 100644 --- a/app/controllers/bikes_controller.rb +++ b/app/controllers/bikes_controller.rb @@ -17,7 +17,7 @@ class BikesController < ApplicationController def edit; end def print_select - @bikes = Bike.order(:log_number).reverse_order.paginate(:page => params[:page], :per_page => 30) + @bikes = Bike.where.not(purpose: "Freecyclery").order(:log_number).reverse_order.paginate(:page => params[:page], :per_page => 30) end def print_labels diff --git a/notes.txt b/notes.txt index 099835b..9920283 100644 --- a/notes.txt +++ b/notes.txt @@ -1,7 +1,6 @@ make sure you can mark bike completion dates Freecyclery Receipts -print sales labels should not show freecyclery bikes convert to bootstrap-less integrate with autocomplete to get manufacturers & models