Add pickup date

This additional date helps users to find the correct order if the time
between end and pickup varies a lot.
This commit is contained in:
Patrick Gansterer 2016-04-29 15:28:05 +02:00
parent 97f81d9826
commit f286dd6053
15 changed files with 59 additions and 9 deletions

View file

@ -15,6 +15,7 @@ class OrdersController < ApplicationController
if params['sort']
sort = case params['sort']
when "supplier" then "suppliers.name, ends DESC"
when "pickup" then "pickup DESC"
when "ends" then "ends DESC"
when "supplier_reverse" then "suppliers.name DESC"
when "ends_reverse" then "ends"