From 0a3b346806615bd893048d2a5c26f8d126a12f4b Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 2 Aug 2010 19:49:26 +0000 Subject: add svc_elec_features merged from reference code RT#7643 --- httemplate/view/cust_bill-pdf.cgi | 6 ++++++ httemplate/view/cust_bill.cgi | 9 +++++++++ httemplate/view/svc_external.cgi | 4 ++++ 3 files changed, 19 insertions(+) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_bill-pdf.cgi b/httemplate/view/cust_bill-pdf.cgi index 51e47e00d..c1639fd48 100755 --- a/httemplate/view/cust_bill-pdf.cgi +++ b/httemplate/view/cust_bill-pdf.cgi @@ -31,6 +31,12 @@ my $cust_bill = qsearchs({ }); die "Invoice #$invnum not found!" unless $cust_bill; +if ( $notice_name eq 'Record' ) { + $opt{base}='rec'; +} elsif ( $notice_name eq 'Record Ignoring DUE DATE' ) { + $opt{base}='rec'; + $opt{ignore_due_date}=1; +} my $pdf = $cust_bill->print_pdf(\%opt); http_header('Content-Type' => 'application/pdf' ); diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index ce8d96a95..4e97bb54c 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -78,6 +78,15 @@ View typeset invoice PDF

+% if ( $conf->exists('svc_elec_features') ) { +% my $reclink = "invnum=$invnum"; +% $reclink .= ';template='. uri_escape($template) if $template; + ">View Record
+ ">View Record Ignoring DUE DATE +

+ +% } + % } % my $br = 0; diff --git a/httemplate/view/svc_external.cgi b/httemplate/view/svc_external.cgi index 77679d81c..cee026266 100644 --- a/httemplate/view/svc_external.cgi +++ b/httemplate/view/svc_external.cgi @@ -23,6 +23,10 @@ +
+% if ($conf->exists('svc_elec_features')) { +Manually manipulate electric usage
+% }
<% joblisting({'svcnum'=>$svcnum}, 1) %> <% include('/elements/footer.html') %> -- cgit v1.2.1