X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fquotation.html;h=67609a1c6d0e0a973e9db4ee9a267cbea89758cd;hb=80879cb478cf28d90b3abb8a26bca29ad3a3f3b1;hp=81c7cdd7b92e0bd7964cf66cb0006994e08efee6;hpb=03c12b4dabfcaabc218f39ee13557edebc13931d;p=freeside.git diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html index 81c7cdd7b..67609a1c6 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 ) { +
<% emt('Error calculating quotation: [_1]', $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";