delivery driver order list #2431 - changed the default to 12 hours

This commit is contained in:
Daniel Camargo 2014-03-07 16:43:18 -03:00
parent d52246f425
commit c25b0090af
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class Controller_home extends Crunchbutton_Controller_Account {
$justMineOrders = ( c::db()->escape( c::getPagePiece( 0 ) ) == 'mine' );
$hours = c::getPagePiece( 1 ) ? c::getPagePiece( 1 ) : 24;
$hours = c::getPagePiece( 1 ) ? c::getPagePiece( 1 ) : 12;
$orders = Order::deliveryOrders( $hours, ( c::db()->escape( c::getPagePiece( 0 ) ) == 'all' ) );

View File

@ -717,7 +717,7 @@ class Crunchbutton_Order extends Cana_Table {
$where .= ' AND o.delivery_service = 1 ';
$where .= ' AND date > DATE_SUB( NOW(), INTERVAL ' . $interval . ' )';
$query = 'SELECT DISTINCT( o.id_order ) id, o.* FROM `order` o ' . $where . ' ORDER BY o.id_order DESC LIMIT 30';
$query = 'SELECT DISTINCT( o.id_order ) id, o.* FROM `order` o ' . $where . ' ORDER BY o.id_order';
return Order::q( $query );
}