X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fquotation.html;h=4abef9f78a5749e17291aac2d855f4b7cde63416;hb=ac0ecc2daa4e132d6a1fb3fb759cb757d376f84e;hp=81c7cdd7b92e0bd7964cf66cb0006994e08efee6;hpb=03c12b4dabfcaabc218f39ee13557edebc13931d;p=freeside.git
diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html
index 81c7cdd7b..4abef9f78 100755
--- a/httemplate/view/quotation.html
+++ b/httemplate/view/quotation.html
@@ -17,9 +17,15 @@ function areyousure(href, message) {
'actionlabel' => emt('Add package'),
map { $_ => $quotation->$_ } qw( quotationnum custnum prospectnum )
&>
-
% }
+% if ( $curuser->access_right('One-time charge') ) {
+ | <& /elements/one_time_charge_link.html,
+ map { $_ => $quotation->$_ } qw( quotationnum custnum prospectnum )
+ &>
+% }
+
+
% if ( 1 ) { #if ( $curuser->access_right('Send quotations') )
<& /elements/popup_link.html,
@@ -66,6 +72,9 @@ function areyousure(href, message) {
% }
+% if ( $error ) {
+<& /elements/error.html, $error &>
+% }
% if ( $conf->exists('quotation_html') ) {
<% join('', $quotation->print_html( preref_callback=>$preref_callback )) %>
@@ -101,6 +110,8 @@ my $quotation = qsearchs({
});
die "Quotation #$quotationnum not found!" unless $quotation;
+my $error = $quotation->estimate;
+
my $menubar = menubar( $quotation->cust_or_prospect_label_link($p) );
my $link = "quotationnum=$quotationnum";