diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-08-18 20:12:45 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-08-18 20:12:45 -0700 |
commit | e4419db2b564c53ba0b0aa32590b22a8e114650a (patch) | |
tree | 6ac22f321553084b841964eeaf31a5a998e5fe6e /httemplate/browse | |
parent | ed0b1255389309d81f1e87ad3b1d5bd7ab3dd9b7 (diff) |
continue sales person work: customer and package selection, commissions, reporting. RT#23402
Diffstat (limited to 'httemplate/browse')
-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 { |