X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fquotation.html;h=a88acf82b5e3f7d2b1887aa5c14d633f049ea227;hb=b57377d091b08fe8874d362d885361cc8380ca69;hp=2c2c6b7ca14edde1e248721703654ff3e6ef0719;hpb=e5ab051ccdb7637d8dd2f0ed9b4fe9aaaf1d1100;p=freeside.git diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html index 2c2c6b7ca..a88acf82b 100755 --- a/httemplate/view/quotation.html +++ b/httemplate/view/quotation.html @@ -22,23 +22,27 @@ XXX resending quotations % } -XXX view typset quotation + -% if ( $conf->exists('invoice_latex') ) { +% if ( $curuser->access_right('Order customer package') ) { + <& /elements/order_pkg_link.html, + 'label' => emt('Add package'), + 'actionlabel' => emt('Add package'), + map { $_ => $quotation->$_ } qw( quotationnum custnum prospectnum ) + &> +% } - <% mt('View typeset invoice PDF') |h %> +% if ( $conf->exists('quotation_latex') ) { + | <% 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() ) %>
<& /elements/footer.html &> <%init> @@ -56,7 +60,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 +71,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 +83,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; + +