X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=088e2bb2f4e9670ea38ac56db0d1f47988490f7f;hp=6c260bb7d37fa47114536e64796e4915d809bb0c;hb=cad8a048ce2d89814d1d3b0783310191bc76684e;hpb=51984ac3d3da3006809c6866fdecd4ad83610731
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 6c260bb7d..088e2bb2f 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -1,6 +1,7 @@
-
<%
+#
+use strict;
use vars qw ( $cgi $query $custnum $cust_main $hashref $agent $referral
@packages $package @history @bills $bill @credits $credit
$balance $item @agents @referrals @invoicing_list $n1 $conf );
@@ -94,36 +95,36 @@ print '
';
&ntable("#cccccc",2),
' | Contact name | ',
'',
- $cust_main->get("${$pre}last"), ', ', $cust_main->get("${$pre}first"),
+ $cust_main->get("${pre}last"), ', ', $cust_main->get("${pre}first"),
' |
',
'Company | ',
- $cust_main->get("${$pre}company"),
+ $cust_main->get("${pre}company"),
' |
',
'Address | ',
- $cust_main->get("${$pre}address1"),
+ $cust_main->get("${pre}address1"),
' |
',
;
print ' | ',
- $cust_main->get("${$pre}address2"), ' |
'
- if $cust_main->get("${$pre}address2");
+ $cust_main->get("${pre}address2"), ''
+ if $cust_main->get("${pre}address2");
print 'City | ',
- $cust_main->get("${$pre}city"),
+ $cust_main->get("${pre}city"),
' | State | ',
- $cust_main->get("${$pre}state"),
+ $cust_main->get("${pre}state"),
' | Zip | ',
- $cust_main->get("${$pre}zip"), ' |
',
+ $cust_main->get("${pre}zip"), '',
'Country | ',
- $cust_main->get("${$pre}country"),
+ $cust_main->get("${pre}country"),
' |
',
;
print 'Day Phone | ',
'',
- $cust_main->get("${$pre}daytime") || ' ', ' |
',
+ $cust_main->get("${pre}daytime") || ' ', '',
'Night Phone | '.
'',
- $cust_main->get("${$pre}night") || ' ', ' |
',
+ $cust_main->get("${pre}night") || ' ', '',
'Fax | ',
- $cust_main->get("${$pre}fax") || ' ', ' |
',
+ $cust_main->get("${pre}fax") || ' ', '',
'', ""
;
@@ -209,7 +210,18 @@ print '
';
print '';
-print qq!
Packages !,
+if ( defined $cust_main->dbdef_table->column('comments')
+ && $cust_main->comments )
+{
+ print "
Comments", &ntable("#cccccc"), "",
+ &ntable("#cccccc",2),
+ ' |
', $cust_main->comments,
+ ' |
';
+}
+
+print '';
+
+print qq!
Packages !,
# qq!
Click on package number to view/edit package.!,
qq!( Order and cancel packages (preserves services) )!,
;