diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-02-01 11:31:43 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-02-01 11:31:43 -0800 |
commit | 41586592a424ce02595237d2048b0fdb18033ddd (patch) | |
tree | f4d36939a2368c23b40f200e5f4f84988c1a5e1e | |
parent | 238d6ec0e724981f7142ec6eff8b39da9b2d02fb (diff) |
fix customer add success message
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index 354e22ee6..088576fe2 100755 --- a/httemplate/edit/process/cust_main.cgi +++ b/httemplate/edit/process/cust_main.cgi @@ -18,7 +18,7 @@ <% $cgi->redirect( -uri => popurl(3). "view/cust_main.cgi?". $new->custnum, -cookie => CGI::Cookie->new( -name => 'freeside_status', - -value => mt('Customer edited'), + -value => mt($freeside_status), -expires => '+5m', ), ) @@ -220,8 +220,11 @@ if ( $vendor eq 'avalara' or $vendor eq 'suretax' ) { } #perhaps this stuff should go to cust_main.pm +my $freeside_status = ''; if ( $new->custnum eq '' or $duplicate_of ) { + $freeside_status = 'Customer added'; + my $cust_pkg = ''; my $svc; @@ -343,6 +346,8 @@ if ( $new->custnum eq '' or $duplicate_of ) { } else { #create old record object + $freeside_status = 'Customer edited'; + my $old = qsearchs( 'cust_main', { 'custnum' => $new->custnum } ); $error ||= "Old record not found!" unless $old; |