From d11ec6a3bac962e4c49895ce08bc6c48d3df75bd Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 22 Jul 2013 11:52:52 -0700 Subject: nibblebill integrateion, RT#19587 --- httemplate/elements/tr-cust_svc.html | 11 ++++++++++- httemplate/view/svc_phone.cgi | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'httemplate') 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 ) % } -% # first column: recharge link +% # first column: (optional external balance and) recharge link +% if ( $part_svc->svcdb eq 'svc_phone' +% && ! $opt{no_links} +% ) +% { +% my( $html, $hashref ) = $svc_x->export_getstatus; +% if ( length($hashref->{'Balance'}) ) { #quelle hack + Balance: <% $hashref->{'Balance'} %>  +% } +% } % 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 ). '
'. join(' | ', @ilinks). '
'; -- cgit v1.2.1