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=7221d53cd7d41a02d5c2bfd9c625e625d0c474cc;hp=5646fb973b1d3d1178c50793a471619bd000fb7a;hb=ca00b528d98dbf454bae7b497c8d83ca8851724c;hpb=499333276c687817c8c335ccca291a9786378a1e diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html index 5646fb973..7221d53cd 100755 --- a/httemplate/view/quotation.html +++ b/httemplate/view/quotation.html @@ -23,9 +23,13 @@ function areyousure(href, message) { % if ( $curuser->access_right('One-time charge') ) { <% $inrow ? ' | ' : '' %> - <& /elements/one_time_charge_link.html, - map { $_ => $quotation->$_ } qw( quotationnum custnum prospectnum ) - &> +% my $query = 'quotationnum=' . $quotation->get('quotationnum'); +% if ($quotation->custnum) { +% $query .= ';custnum=' . $quotation->custnum; +% } else { +% $query .= ';prospectnum=' . $quotation->prospectnum; +% } + <% emt('One-time charge') %> % $inrow++; % }