RT# 73422 Fix report Customer Contacts
[freeside.git] / httemplate / search / report_contact.html
index ba91b4e..309f11e 100644 (file)
@@ -4,25 +4,39 @@
 
 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
 
-  <& /elements/tr-select-agent.html,
-                 'curr_value'    => scalar( $cgi->param('agentnum') ),
-                 'label'         => emt('Contacts for agent: '),
-                 'disable_empty' => 0,
-  &>
+%#  This has never been actually supported on this report.
+%#  Remove the selectbox until support is implemented
+%#
+%#  <& /elements/tr-select-agent.html,
+%#                 'curr_value'    => scalar( $cgi->param('agentnum') ),
+%#                 'label'         => emt('Contacts for agent: '),
+%#                 'disable_empty' => 0,
+%#  &>
 
   <& /elements/tr-select.html,
-       'label'      => 'Contact source', #??? not "type" - contacts have a type
+       'label'      => 'Contact source:', #??? not "type" - contacts have a type
        'field'      => 'link',
-       'options'    => [ 'prospect_main', 'cust_main', '' ],
+       'options'    => [ 'prospect_main', 'cust_main', 'both' ],
        'labels'     => { 'prospect_main' => 'Prospect contacts',
                          'cust_main'     => 'Customer contacts',
-                         ''              => 'All contacts',
+                         'both'          => 'All contacts',
                        },
        'curr_value' => scalar( $cgi->param('link') ),
   &>
 
+  <& /elements/tr-checkbox-multiple.html,
+    label => emt('Destinations').':',
+    field => 'dest',
+    options => [ 'message', 'invoice' ],
+    labels => {
+      invoice => 'Invoice recipients',
+      message => 'Message recipients',
+    },
+    value => { message => 1 },
+  &>
+
   <& /elements/tr-select-multiple-contact_class.html,
-    label => 'Contact Type',
+    label => emt('Contact Type').':',
     field => 'classnum',
   &>