X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=7a6e425bee64f9ae9d75c768a65ade5a65468a02;hp=c6266ce34523484425e1c4966662c1a9531fb86d;hb=f7e13fe2f0a39fd277f2990e076b662f00c2b088;hpb=caaba136dc662ca8a5b4a221fac238b89945332a
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index c6266ce34..7a6e425be 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -40,6 +40,11 @@ function areyousure(href, message) {
}
+
+% ###
+% # Basics
+% ###
+
% if ( $view eq 'basics' || $view eq 'jumbo' ) {
% if ( $curuser->access_right('Edit customer') ) {
@@ -189,6 +194,11 @@ function areyousure(href, message) {
% }
+
+% ###
+% # Notes
+% ###
+
% if ( $view eq 'notes' || $view eq 'jumbo' ) {
<& cust_main/notes.html, 'cust_main' => $cust_main &>
@@ -201,6 +211,11 @@ function areyousure(href, message) {
+
+% ###
+% # Tickets
+% ###
+
% if ( $view eq 'tickets' || $view eq 'jumbo' ) {
% if ( $conf->config('ticket_system') ) {
@@ -210,6 +225,10 @@ function areyousure(href, message) {
% }
+% ###
+% # Appointments
+% ###
+
% if ( $view eq 'appointments' || $view eq 'jumbo' ) {
% if ( $conf->config('ticket_system')
@@ -220,6 +239,28 @@ function areyousure(href, message) {
% }
+
+% ###
+% # Quotations
+% ###
+
+% if ( $view eq 'jumbo' && $curuser->access_right('Generate quotation') ) {
+ <% mt('Quotations') |h %>
+% }
+
+% if ( $view eq 'quotations' || $view eq 'jumbo' ) {
+
+% if ( $curuser->access_right('Generate quotation') ) {
+ <& cust_main/quotations.html, $cust_main &>
+% }
+
+% }
+
+
+% ###
+% # Packages
+% ###
+
% if ( $view eq 'jumbo' ) { #XXX enable me && $curuser->access_right('View customer packages') {
<% mt('Packages') |h %>
@@ -233,6 +274,11 @@ function areyousure(href, message) {
% }
+
+% ###
+% # Payment History
+% ###
+
% if ( $view eq 'jumbo' ) {
<% mt('Payment History') |h %>
@@ -247,6 +293,11 @@ function areyousure(href, message) {
% }
+
+% ###
+% # Change History
+% ###
+
% if ( $view eq 'change_history' ) { # || $view eq 'jumbo'
<& cust_main/change_history.html, $cust_main &>
% }
@@ -305,6 +356,7 @@ if ( $conf->config('ticket_system') ) {
$views{emt('Appointments')} = 'appointments'
if $curuser->access_right('View appointments');
}
+$views{emt('Quotations')} = 'quotations';
$views{emt('Packages')} = 'packages';
$views{emt('Payment History')} = 'payment_history'
unless $conf->config('payby-default' eq 'HIDE');