From f7532e8ebc760ba063ce1b22d852f2786d74098f Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 7 May 2010 07:29:31 +0000 Subject: [PATCH] Add address to the primary contact in an awards report --- admin/reports_awards.inc.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/admin/reports_awards.inc.php b/admin/reports_awards.inc.php index 64924dc..77da9aa 100644 --- a/admin/reports_awards.inc.php +++ b/admin/reports_awards.inc.php @@ -197,6 +197,36 @@ $report_awards_fields = array( 'width' => 3, 'table' => 'PRIMARYCONTACT.notes' ), + 'pcontact_address' => array( + 'name' => 'Primary Contact Address -- Street', + 'header' => 'Address', + 'width' => 2.0, + 'table' => "CONCAT(PRIMARYCONTACTUSER.address, ' ', PRIMARYCONTACTUSER.address2)"), + + 'pcontact_city' => array( + 'name' => 'Primary Contact Address -- City', + 'header' => 'City', + 'width' => 1.5, + 'table' => 'PRIMARYCONTACTUSER.city'), + + 'pcontact_province' => array( + 'name' => 'Primary Contact Address -- '.$config['provincestate'], + 'header' => $config['provincestate'], + 'width' => 0.75, + 'table' => 'PRIMARYCONTACTUSER.province'), + + 'pcontact_postal' => array( + 'name' => 'Primary Contact Address -- '.$config['postalzip'], + 'header' => $config['postalzip'], + 'width' => 0.75, + 'table' => 'PRIMARYCONTACTUSER.postalcode' ), + + 'pcontact_city_prov' => array( + 'name' => 'Primary Contact Address -- City, '.$config['provincestate'].' (for mailing)', + 'header' => 'City', + 'width' => 1.5, + 'table' => "CONCAT(PRIMARYCONTACTUSER.city, ', ', PRIMARYCONTACTUSER.province)"), + 'judgeteamname' => array( 'start_option_group' => 'Judging Team', 'components' => array('judgingteam'),