summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2019-04-04 10:59:48 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-04-04 10:59:48 -0400
commit3ebf876779b2a89e81a767d3cdd6690a88bdd3de (patch)
tree87229a7a8bb50f44ce5929a1eca59c863c2d8aa7
parentb1d26754480ee77604521236d9cf9952df2d3e12 (diff)
RT# 75357 - Prospects can now be disabled
-rw-r--r--FS/FS/prospect_main.pm2
-rw-r--r--httemplate/edit/prospect_main.html5
2 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/prospect_main.pm b/FS/FS/prospect_main.pm
index c54c569..5d909a3 100644
--- a/FS/FS/prospect_main.pm
+++ b/FS/FS/prospect_main.pm
@@ -462,7 +462,7 @@ sub search {
# here is the agent virtualization
push @where, $FS::CurrentUser::CurrentUser->agentnums_sql;
- my $extra_sql = scalar(@where) ? ' WHERE '. join(' AND ', @where) : '';
+ my $extra_sql = scalar(@where) ? ' WHERE prospect_main.custnum IS NULL AND '. join(' AND ', @where) : '';
my $count_query = "SELECT COUNT(*) FROM prospect_main $extra_sql";
diff --git a/httemplate/edit/prospect_main.html b/httemplate/edit/prospect_main.html
index 6adb471..b812dc3 100644
--- a/httemplate/edit/prospect_main.html
+++ b/httemplate/edit/prospect_main.html
@@ -3,6 +3,7 @@
'table' => 'prospect_main',
'html_table_class'=> 'fsinnerbox',
'labels' => { 'prospectnum' => 'Prospect',
+ 'disabled' => 'Disabled',
'agentnum' => 'Agent',
'refnum' => 'Advertising source',
'company' => 'Company',
@@ -16,6 +17,10 @@
'options' => [ 'Residential', 'Commercial', ],
'onchange' => 'rescom_changed',
},
+ { 'field' => 'disabled',
+ 'type' => 'checkbox',
+ 'value' => 'Y',
+ },
{ 'field' => 'agentnum',
'type' => 'select-agent',
'empty_label' => 'Select agent',