[freeside-commits] freeside/httemplate/view cust_bill-pdf.cgi, 1.10, 1.10.4.1 cust_bill.cgi, 1.44, 1.44.4.1 svc_external.cgi, 1.10, 1.10.2.1

Jeff Finucane,420,, jeff at wavetail.420.am
Mon Aug 2 12:49:28 PDT 2010


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

Modified Files:
      Tag: svc_elec_features
	cust_bill-pdf.cgi cust_bill.cgi svc_external.cgi 
Log Message:
add svc_elec_features merged from reference code RT#7643

Index: svc_external.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_external.cgi,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -w -d -r1.10 -r1.10.2.1
--- svc_external.cgi	2 Dec 2009 20:51:43 -0000	1.10
+++ svc_external.cgi	2 Aug 2010 19:49:26 -0000	1.10.2.1
@@ -23,6 +23,10 @@
 
 
 </TABLE></TD></TR></TABLE>
+<BR>
+% if ($conf->exists('svc_elec_features')) {
+<A HREF="<%$p%>edit/usage_elec_manual_input.cgi?<%$svcnum%>">Manually manipulate electric usage</A><BR>
+% }
 <BR><% joblisting({'svcnum'=>$svcnum}, 1) %>
 
 <% include('/elements/footer.html') %>

Index: cust_bill.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill.cgi,v
retrieving revision 1.44
retrieving revision 1.44.4.1
diff -u -w -d -r1.44 -r1.44.4.1
--- cust_bill.cgi	7 Oct 2009 23:44:26 -0000	1.44
+++ cust_bill.cgi	2 Aug 2010 19:49:26 -0000	1.44.4.1
@@ -78,6 +78,15 @@
 
   <A HREF="<% $p %>view/cust_bill-pdf.cgi?<% $link %>">View typeset invoice PDF</A>
   <BR><BR>
+% if ( $conf->exists('svc_elec_features') ) { 
+% my $reclink = "invnum=$invnum";
+% $reclink .= ';template='. uri_escape($template) if $template;
+  <A HREF="<% $p %>view/cust_bill-pdf.cgi?<% "$reclink;notice_name=Record" %>">View Record</A><BR>
+  <A HREF="<% $p %>view/cust_bill-pdf.cgi?<% "$reclink;notice_name=Record Ignoring DUE DATE" %>">View Record Ignoring DUE DATE</A>
+<BR><BR>
+
+%   } 
+
 % } 
 
 % my $br = 0;

Index: cust_bill-pdf.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill-pdf.cgi,v
retrieving revision 1.10
retrieving revision 1.10.4.1
diff -u -w -d -r1.10 -r1.10.4.1
--- cust_bill-pdf.cgi	7 Oct 2009 23:44:26 -0000	1.10
+++ cust_bill-pdf.cgi	2 Aug 2010 19:49:26 -0000	1.10.4.1
@@ -31,6 +31,12 @@
 });
 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' );



More information about the freeside-commits mailing list