diff options
Diffstat (limited to 'httemplate/browse/sales.html')
-rw-r--r-- | httemplate/browse/sales.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/httemplate/browse/sales.html b/httemplate/browse/sales.html index 6fac058f9..d2b6cfef5 100644 --- a/httemplate/browse/sales.html +++ b/httemplate/browse/sales.html @@ -16,6 +16,8 @@ my $curuser = $FS::CurrentUser::CurrentUser; die "access denied" unless $curuser->access_right('Edit sales people'); +my $conf = new FS::Conf; + #Sales people bring in business.<BR><BR> my @header = ( 'Sales person' ); @@ -28,6 +30,18 @@ if ( $curuser->access_right('Configuration') ) { push @links, [ $p.'edit/agent.cgi?', 'agentnum' ]; } +push @header, 'Master Customer'; +push @fields, sub { + my $sales = shift; + return '' unless $sales->sales_custnum; + include('/elements/small_custview.html', + $sales->sales_custnum, + scalar($conf->config('countrydefault')), + 1, #show balance + ); +}; +push @links, ''; + push @header, 'Commissions'; push @fields, sub { |