X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htdocs%2Fedit%2Fcust_main.cgi;h=d144beba6b5a20ded64d69967448ce8e815dfe80;hb=b6d1aed30d51bdae49ca22e5aa5baab635969097;hp=901923d98a50c82ae69dc2356c5af2307dafe879;hpb=59518b8dec0720fdf32aab8a1ecc2dbb689a0b85;p=freeside.git diff --git a/htdocs/edit/cust_main.cgi b/htdocs/edit/cust_main.cgi index 901923d98..d144beba6 100755 --- a/htdocs/edit/cust_main.cgi +++ b/htdocs/edit/cust_main.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: cust_main.cgi,v 1.11 1999-03-25 13:55:10 ivan Exp $ +# $Id: cust_main.cgi,v 1.13 1999-04-09 03:52:55 ivan Exp $ # # Usage: cust_main.cgi custnum # http://server.name/path/cust_main.cgi?custnum @@ -38,7 +38,14 @@ # fixed one missed day->daytime ivan@sisd.com 98-jul-13 # # $Log: cust_main.cgi,v $ -# Revision 1.11 1999-03-25 13:55:10 ivan +# Revision 1.13 1999-04-09 03:52:55 ivan +# explicit & for table/itable/ntable +# +# Revision 1.12 1999/04/06 11:16:16 ivan +# give a meaningful error message if you try to create a customer before you've +# created an agent +# +# Revision 1.11 1999/03/25 13:55:10 ivan # one-screen new customer entry (including package and service) for simple # packages with one svc_acct service # @@ -152,6 +159,7 @@ print qq!
!, $r = qq!*!; @agents = qsearch( 'agent', {} ); +die "No agents created!" unless @agents; $agentnum = $cust_main->agentnum || $agents[0]->agentnum; #default to first if ( scalar(@agents) == 1 ) { print qq!!; @@ -206,7 +214,7 @@ if ( $custnum ) { $cust_main->zip, ); -print "

Contact information", itable("#c0c0c0"), <
Contact information", &itable("#c0c0c0"), <${r}Contact name
(last, first), SS# Company ${r}Address @@ -269,7 +277,7 @@ sub expselect { $return; } -print "
Billing information", itable("#c0c0c0"), +print "
Billing information", &itable("#c0c0c0"), qq!tax eq "Y"; print qq!>Tax Exempt!; @@ -283,7 +291,7 @@ print qq!Email invoice Billing type", "", - table("#c0c0c0"), ""; + &table("#c0c0c0"), ""; ($payinfo, $payname)=( $cust_main->payinfo, @@ -370,7 +378,7 @@ unless ( $custnum ) { if ( @part_pkg ) { - print "

First package", itable("#c0c0c0"), + print "

First package", &itable("#c0c0c0"), qq!