diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2017-08-03 11:53:07 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2017-08-03 11:53:07 -0400 |
| commit | 184b8e2c118ef3bd17f36b59f2a3f9690bf3d1bc (patch) | |
| tree | 129bf9ff4eef9c72810130b9c2fd4062bb80a02c /httemplate/edit | |
| parent | 639929eeb498d7f893e09084b72bccbaf91bf894 (diff) | |
| parent | c5bafe5c81eed4223adad4b313d060fc14d88bc2 (diff) | |
Merge branch 'FREESIDE_3_BRANCH' of freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'httemplate/edit')
| -rwxr-xr-x | httemplate/edit/cust_main.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index d84679d4e..fbd292ffb 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -320,8 +320,13 @@ if ( $cgi->param('error') ) { $custnum=''; $cust_main = new FS::cust_main ( {} ); + + my @agentnums = $curuser->agentnums; + $cust_main->agentnum( $agentnums[0] ) + if scalar(@agentnums) == 1; $cust_main->agentnum( $conf->config('default_agentnum') ) if $conf->exists('default_agentnum'); + $cust_main->otaker( &getotaker ); $cust_main->referral_custnum( $cgi->param('referral_custnum') ); @invoicing_list = (); |
