X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main.cgi;h=c6266ce34523484425e1c4966662c1a9531fb86d;hb=9fae251fc1e3069694ebaf4fae62bde844f45cff;hp=cdea49dee2d7a9b01325f36f784f5f7c3e001d73;hpb=c2f4d21edfe3434c02c9dbd666e684c2deb3258e;p=freeside.git
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index cdea49dee..c6266ce34 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -191,79 +191,14 @@ function areyousure(href, message) {
% if ( $view eq 'notes' || $view eq 'jumbo' ) {
-%if ( $cust_main->comments =~ /[^\s\n\r]/ ) {
-
<% mt('Comments') |h %>
-<% ntable("#cccccc") %>
<% ntable("#cccccc",2) %>
- |
-
- <% encode_entities($cust_main->comments) %>
- |
-
-
-
-% }
-
-% my $notecount = scalar($cust_main->notes(0));
-% if ( ! $conf->exists('cust_main-disable_notes') || $notecount) {
-
-% unless ( $view eq 'notes' && $cust_main->comments !~ /[^\s\n\r]/ ) {
-
- <% mt('Notes') |h %>
-% }
-
-% if ( $curuser->access_right('Add customer note') &&
-% ! $conf->exists('cust_main-disable_notes')
-% ) {
-
- <& /elements/popup_link-cust_main.html,
- 'label' => emt('Add customer note'),
- 'action' => $p. 'edit/cust_main_note.cgi',
- 'actionlabel' => emt('Enter customer note'),
- 'cust_main' => $cust_main,
- 'width' => 616,
- 'height' => 538, #575
- &>
-
-% }
-
-
-
-<& cust_main/notes.html, 'custnum' => $cust_main->custnum &>
-
-% }
-
-
-% if(! $conf->config('disable_cust_attachment')
-% and $curuser->access_right('Add attachment')) {
-<& /elements/popup_link-cust_main.html,
- 'label' => emt('Attach file'),
- 'action' => $p.'edit/cust_main_attach.cgi',
- 'actionlabel' => emt('Upload file'),
- 'cust_main' => $cust_main,
- 'width' => 480,
- 'height' => 296,
-&>
-% }
-% if( $curuser->access_right('View attachments') ) {
-<& cust_main/attachments.html, 'custnum' => $cust_main->custnum &>
-% if ($cgi->param('show_deleted')) {
-">(<% mt('Show active attachments') |h %>)
-% }
-% elsif($curuser->access_right('View deleted attachments')) {
-">(<% mt('Show deleted attachments') |h %>)
-% }
-% }
-
+<& cust_main/notes.html, 'cust_main' => $cust_main &>
% }
% if ( $view eq 'jumbo' ) {
% }
+
% if ( $view eq 'tickets' || $view eq 'jumbo' ) {
@@ -345,6 +280,7 @@ if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
my($query) = $cgi->keywords; # needs parens with my, ->keywords returns array
$query =~ /^(\d+)$/;
$custnum = $1;
+ $cgi->param('custnum', $1);
}
my $cust_main = qsearchs( {