projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quotations, RT#16996
[freeside.git]
/
httemplate
/
view
/
quotation.html
diff --git
a/httemplate/view/quotation.html
b/httemplate/view/quotation.html
index
2c2c6b7
..
866ade2
100755
(executable)
--- a/
httemplate/view/quotation.html
+++ b/
httemplate/view/quotation.html
@@
-22,21
+22,20
@@
XXX resending quotations
% }
% }
-XXX view typset quotation
+</%doc>
-% if ( $conf->exists('
invoice
_latex') ) {
+% if ( $conf->exists('
quotation
_latex') ) {
- <A HREF="<% $p %>view/
cust_bill-pdf.cgi?<% $link %>"><% mt('View typeset invoice
PDF') |h %></A>
+ <A HREF="<% $p %>view/
quotation-pdf.cgi?<% $link %>"><% mt('View typeset quotation
PDF') |h %></A>
<BR><BR>
% }
<BR><BR>
% }
-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 {
% } else {
- <PRE><% join('', $cust_bill->print_text(\%opt) ) %></PRE>
-% }
+% die "quotation_html config missing";
+% }
+% #plaintext quotations? <PRE><% join('', $quotation->print_text() ) %></PRE>
</%doc>
</%doc>
@@
-56,7
+55,7
@@
if ( $query =~ /^(\d+)$/ ) {
$quotationnum = $cgi->param('quotationnum');
}
$quotationnum = $cgi->param('quotationnum');
}
-
#
my $conf = new FS::Conf;
+my $conf = new FS::Conf;
my $quotation = qsearchs({
'select' => 'quotation.*',
my $quotation = qsearchs({
'select' => 'quotation.*',
@@
-67,6
+66,7
@@
my $quotation = qsearchs({
});
die "Quotation #$quotationnum not found!" unless $quotation;
});
die "Quotation #$quotationnum not found!" unless $quotation;
+my $menubar;
if ( my $custnum = $quotation->custnum ) {
my $display_custnum = $quotation->cust_main->display_custnum;
$menubar = 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;
+
+
</%init>
</%init>