Skip to content

Commit

Permalink
CRM-21593: New order by options for WalkList Report
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb committed Dec 22, 2017
1 parent 61618e0 commit 12242c6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CRM/Report/Form/Walklist/Walklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ public function __construct() {
'country_id' => array(
'title' => ts('Country'),
),
'odd_street_number' => array(
'title' => ts('Odd/Even Street Number'),
'type' => CRM_Utils_Type::T_INT,
'no_display' => TRUE,
'required' => TRUE,
'dbAlias' => '(address_civireport.street_number % 2)',
),
),
'filters' => array(
'street_number' => array(
Expand All @@ -109,6 +116,18 @@ public function __construct() {
'street_address' => NULL,
'city' => NULL,
),
'order_bys' => array(
'street_name' => array(
'title' => ts('Street Name'),
),
'street_number' => array(
'title' => ts('Street Number'),
),
'odd_street_number' => array(
'title' => ts('Odd/Even Street Number'),
'dbAlias' => 'civicrm_address_odd_street_number',
),
),
'grouping' => 'location-fields',
),
'civicrm_email' => array(
Expand Down

0 comments on commit 12242c6

Please sign in to comment.