diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-11-07 17:33:44 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-11-07 17:33:44 -0800 |
commit | eb0ec87d37ee1548e93e35e80dfad47f48cb7563 (patch) | |
tree | 837e3c89ab4faac2bb3b7650bee8a76fda48eb72 /FS | |
parent | fa70a92d28794ffd206394c8f3a4eff669369c6d (diff) |
add advertising source selection and display to prospect report
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/prospect_main.pm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/FS/FS/prospect_main.pm b/FS/FS/prospect_main.pm index 67e91cf99..76faf0f2c 100644 --- a/FS/FS/prospect_main.pm +++ b/FS/FS/prospect_main.pm @@ -406,15 +406,18 @@ sub search { my @where = (); my $orderby; - ## - # parse agent - ## - + #agent if ( $params->{'agentnum'} =~ /^(\d+)$/ and $1 ) { push @where, "prospect_main.agentnum = $1"; } + #refnum + if ( $params->{'refnum'} =~ /^(\d+)$/ and $1 ) { + push @where, + "prospect_main.refnum = $1"; + } + ## # setup queries, subs, etc. for the search ## |