X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=4ca777d6aed04381ec7d9ec72bfe521edc60fd1d;hb=f9938915b0df2609f41c24d761d607595d5d0a34;hp=70d424065c8105af3ffa9d7cafa1995371bb6941;hpb=9186ed8ab4b2b25e91efe6d0dcabeaef191a2709;p=freeside.git
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 70d424065..4ca777d6a 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -1,31 +1,13 @@
-%
-%
-%my $conf = new FS::Conf;
-%
-%my $curuser = $FS::CurrentUser::CurrentUser;
-%
-%die "No customer specified (bad URL)!" unless $cgi->keywords;
-%my($query) = $cgi->keywords; # needs parens with my, ->keywords returns array
-%$query =~ /^(\d+)$/;
-%my $custnum = $1;
-%my $cust_main = qsearchs('cust_main',{'custnum'=>$custnum});
-%die "Customer not found!" unless $cust_main;
-%
-%
-
-
<% include("/elements/header.html","Customer View: ". $cust_main->name ) %>
-% if ( $curuser->access_right('Edit customer') ) {
+% if ( $curuser->access_right('Edit customer') ) {
Edit this customer |
% }
-
-
-
-
-
-
+
+
+
+
-
% if ( $curuser->access_right('Cancel customer')
% && $cust_main->ncancelled_pkgs
% ) {
-%
- Cancel this customer |
+ <% cust_cancel_link($cust_main) %> |
+
% }
+
% if ( $conf->exists('deletecustomers')
% && $curuser->access_right('Delete customer')
% ) {
-%
-
Delete this customer |
% }
-% unless ( $conf->exists('disable_customer_referrals') ) {
- Refer a new customer |
- View this customer's referrals
+% unless ( $conf->exists('disable_customer_referrals') ) {
+ Refer a new customer |
+ View this customer's referrals
% }
+
+% if ( $curuser->access_right('Billing event reports')
+% || $curuser->access_right('View customer billing events')
+% ) {
+
+ View billing events for this customer
+
+
+% }
-
-%
%my $signupurl = $conf->config('signupurl');
%if ( $signupurl ) {
-%
-
This customer's signup URL: <% $signupurl %>?ref=<% $custnum %>
% }
@@ -136,6 +104,12 @@ Comments