X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fquotation.html;h=d4d79d72cf1a6dc5904e96416a9cfed028224bba;hb=f4209091a9f7120f1961ab2d2efd4d3a00b94268;hp=484bedd04f902ca33107092a6792c8f3d6e78035;hpb=8b70832328eb02dc9253dab7b436c6479b588162;p=freeside.git
diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html
index 484bedd04..d4d79d72c 100755
--- a/httemplate/view/quotation.html
+++ b/httemplate/view/quotation.html
@@ -1,5 +1,12 @@
+% if ( $quotation->custnum ) {
+<& /elements/header-cust_main.html, view=>'quotations', custnum=>$quotation->custnum &>
+
Quotation #<% $quotationnum %>
+% if ($quotation->quotation_description) {
+(<% $quotation->quotation_description |h %>)
+% }
+
+% } 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 +32,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 +76,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
% }
@@ -98,7 +113,7 @@ function areyousure(href, message) {
% }
% if (length($confidence)) {
-Confidence: | <% $confidence %> |
+Confidence: | <% $confidence %>% |
% }
% }
@@ -110,7 +125,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;