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:
parent
97f81d9826
commit
f286dd6053
15 changed files with 59 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue