X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fquotation.html;h=cabf30a17adb778c6397bb6c31ceee99eb7e3387;hp=5646fb973b1d3d1178c50793a471619bd000fb7a;hb=20ab81a33d94f3267d553cc875dd3fdb08d14f29;hpb=2ffdb485e5534df3d89bcc12d4d02d485e9b28f5 diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html index 5646fb973..cabf30a17 100755 --- a/httemplate/view/quotation.html +++ b/httemplate/view/quotation.html @@ -1,5 +1,8 @@ +% if ( $quotation->custnum ) { +<& /elements/header-cust_main.html, view=>'quotations', custnum=>$quotation->custnum &> +

Quotation #<% $quotationnum %>

+% } else { #eventually, header-prospect_main.html <& /elements/header.html, mt('Quotation View'), $menubar &> - <& /elements/init_overlib.html &> +% } + % unless ( $quotation->disabled eq 'Y' ) { % my $inrow = 0; @@ -23,9 +28,13 @@ function areyousure(href, message) { % if ( $curuser->access_right('One-time charge') ) { <% $inrow ? ' | ' : '' %> - <& /elements/one_time_charge_link.html, - map { $_ => $quotation->$_ } qw( quotationnum custnum prospectnum ) - &> +% my $query = 'quotationnum=' . $quotation->get('quotationnum'); +% if ($quotation->custnum) { +% $query .= ';custnum=' . $quotation->custnum; +% } else { +% $query .= ';prospectnum=' . $quotation->prospectnum; +% } + <% emt('One-time charge') %> % $inrow++; % } @@ -63,7 +72,9 @@ function areyousure(href, message) {

% if ( $curuser->access_right('New customer') && $quotation->quotation_pkg ) { +% # if we end up with more than one option, combine these links and add an interstitial screen Place order + | Order on hold

% } @@ -110,7 +121,11 @@ function areyousure(href, message) { % } % #plaintext quotations?
<% join('', $quotation->print_text() ) %>
-<& /elements/footer.html &> +% if ( $quotation->custnum ) { + <& /elements/footer-cust_main.html &> +% } else { + <& /elements/footer.html &> +% } <%init> my $curuser = $FS::CurrentUser::CurrentUser;