X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fquotation.html;fp=httemplate%2Fview%2Fquotation.html;h=866ade2c27155fd150fedc6a99e030a02c560392;hp=2c2c6b7ca14edde1e248721703654ff3e6ef0719;hb=81978af92ecdaaefeff5156d9ab3b4f99586df1c;hpb=7abce2207dbee012fd442940dc42070f45ef8a16 diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html index 2c2c6b7ca..866ade2c2 100755 --- a/httemplate/view/quotation.html +++ b/httemplate/view/quotation.html @@ -22,21 +22,20 @@ XXX resending quotations % } -XXX view typset quotation + -% if ( $conf->exists('invoice_latex') ) { +% if ( $conf->exists('quotation_latex') ) { - <% mt('View typeset invoice PDF') |h %> + <% mt('View typeset quotation PDF') |h %>

% } -XXX actually show the quotation - -% if ( $conf->exists('invoice_html') ) { - <% join('', $cust_bill->print_html(\%opt) ) %> +% if ( $conf->exists('quotation_html') ) { + <% join('', $quotation->print_html() ) %> % } else { -
<% join('', $cust_bill->print_text(\%opt) ) %>
-% } +% die "quotation_html config missing"; +% } +% #plaintext quotations?
<% join('', $quotation->print_text() ) %>
@@ -56,7 +55,7 @@ if ( $query =~ /^(\d+)$/ ) { $quotationnum = $cgi->param('quotationnum'); } -#my $conf = new FS::Conf; +my $conf = new FS::Conf; my $quotation = qsearchs({ 'select' => 'quotation.*', @@ -67,6 +66,7 @@ my $quotation = qsearchs({ }); die "Quotation #$quotationnum not found!" unless $quotation; +my $menubar; if ( my $custnum = $quotation->custnum ) { my $display_custnum = $quotation->cust_main->display_custnum; $menubar = menubar( @@ -78,4 +78,9 @@ if ( my $custnum = $quotation->custnum ) { ); } +my $link = "quotationnum=$quotationnum"; +#$link .= ';template='. uri_escape($template) if $template; +#$link .= ';notice_name='. $notice_name if $notice_name; + +