[freeside-commits] freeside/httemplate/view/cust_main/payment_history legacy_invoice.html, NONE, 1.1.2.2

Ivan,,, ivan at wavetail.420.am
Tue Oct 25 15:35:23 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history
In directory wavetail.420.am:/tmp/cvs-serv5216/httemplate/view/cust_main/payment_history

Added Files:
      Tag: FREESIDE_2_3_BRANCH
	legacy_invoice.html 
Log Message:
add legacy_cust_bill to hold legacy invoice content, RT#12981

--- NEW FILE: legacy_invoice.html ---
<% $link %><% $invoice %><% $link ? '</A>' : '' %>
<%init>

my( $legacy_cust_bill ) = @_; #, %opt )

my $invoice;
if ( length($legacy_cust_bill->legacyid) ) {
  $invoice = emt('Legacy Invoice #[_1]', $legacy_cust_bill->legacyid);
} else {
  $invoice = emt('Legacy Invoice');
}

my $legacyinvnum = $legacy_cust_bill->legacyinvnum;

my $link = '';
if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') ) {
  $link = length($legacy_cust_bill->content_html)
            ? qq!<A HREF="${p}view/legacy_cust_bill.html?$legacyinvnum">!
            : length($legacy_cust_bill->content_pdf)
              ? qq!<A HREF="${p}view/legacy_cust_bill-pdf.cgi?$legacyinvnum">!
              : '';

</%init>



More information about the freeside-commits mailing list