[freeside-commits] branch FREESIDE_3_BRANCH updated. c5bafe5c81eed4223adad4b313d060fc14d88bc2
Ivan
ivan at 420.am
Thu Aug 3 08:48:00 PDT 2017
The branch, FREESIDE_3_BRANCH has been updated
via c5bafe5c81eed4223adad4b313d060fc14d88bc2 (commit)
from 4ef0cb4a8729c07a7257cd924b6c778e17329d28 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c5bafe5c81eed4223adad4b313d060fc14d88bc2
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Aug 3 08:47:59 2017 -0700
fix agent-specific invoice_default_terms on new customer add, RT#76862
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index d84679d..fbd292f 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 = ();
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/cust_main.cgi | 5 +++++
1 file changed, 5 insertions(+)
More information about the freeside-commits
mailing list