summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorjeff <jeff>2010-08-02 19:49:26 +0000
committerjeff <jeff>2010-08-02 19:49:26 +0000
commit0a3b346806615bd893048d2a5c26f8d126a12f4b (patch)
tree6912cbc88774bfa513e95a58e05e7ce76fbc04c1 /httemplate/view
parent995a145c931164347683071c95c6754379d36604 (diff)
add svc_elec_features merged from reference code RT#7643svc_elec_features
Diffstat (limited to 'httemplate/view')
-rwxr-xr-xhttemplate/view/cust_bill-pdf.cgi6
-rwxr-xr-xhttemplate/view/cust_bill.cgi9
-rw-r--r--httemplate/view/svc_external.cgi4
3 files changed, 19 insertions, 0 deletions
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 @@
<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;
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 @@
</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') %>