summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-07-22 11:52:52 -0700
committerIvan Kohler <ivan@freeside.biz>2013-07-22 11:52:52 -0700
commitd11ec6a3bac962e4c49895ce08bc6c48d3df75bd (patch)
tree858b768836034f7f183f08c9b0bda689b9d7f900 /httemplate
parenta05fdda42a9924d48a3546a195feef9e821cac7b (diff)
nibblebill integrateion, RT#19587
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/tr-cust_svc.html11
-rw-r--r--httemplate/view/svc_phone.cgi3
2 files changed, 13 insertions, 1 deletions
diff --git a/httemplate/elements/tr-cust_svc.html b/httemplate/elements/tr-cust_svc.html
index 3710b27ff..cc5ec0f50 100644
--- a/httemplate/elements/tr-cust_svc.html
+++ b/httemplate/elements/tr-cust_svc.html
@@ -60,8 +60,17 @@ $cust_svc->overlimit )
</TR>
% }
<TR>
-% # first column: recharge link
+% # first column: (optional external balance and) recharge link
<TD ALIGN="right" VALIGN="top" STYLE="padding-bottom:5px; padding-top:0px">
+% if ( $part_svc->svcdb eq 'svc_phone'
+% && ! $opt{no_links}
+% )
+% {
+% my( $html, $hashref ) = $svc_x->export_getstatus;
+% if ( length($hashref->{'Balance'}) ) { #quelle hack
+ <FONT SIZE="-1">Balance:&nbsp;<b><% $hashref->{'Balance'} %></b>&nbsp;</FONT>
+% }
+% }
% if ( $curuser->access_right('Recharge customer service')
% && $part_svc->svcdb eq 'svc_acct'
% && ! $opt{no_links}
diff --git a/httemplate/view/svc_phone.cgi b/httemplate/view/svc_phone.cgi
index ccd9ae7c7..2a2ef243b 100644
--- a/httemplate/view/svc_phone.cgi
+++ b/httemplate/view/svc_phone.cgi
@@ -84,6 +84,8 @@ my $html_foot = sub {
'table' => 'phone_device',
);
+ my $status = include('/view/elements/svc_export_status.html', $svc_phone );
+
##
# CDR links
##
@@ -137,6 +139,7 @@ my $html_foot = sub {
$e911.
$devices.
+ $status.
join(' | ', @links ). '<BR>'.
join(' | ', @ilinks). '<BR>';