X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_acct.cgi;h=640dbe3e6dddbc2ed2173352df41438db3480aaa;hb=ff7970b67fd44c716d09c37902d68c47a56623b3;hp=7ca7a849830ecc29abc313438249810b82519439;hpb=d17fa8f5a57ec5e6a4985e24eaadfb9de37e9135;p=freeside.git diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 7ca7a8498..640dbe3e6 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -97,14 +97,14 @@ if ( $part_svc->part_export('sqlradius') ) { } if ( $cust_pkg ) { - print ' this billing cycle (since '. time2str("%C", $last_bill). ') - '. + print ' since last bill ('. time2str("%C", $last_bill). ') - '. $plandata{recur_included_hours}. ' total hours in plan
'; } else { print ' (no billing cycle available for unaudited account)
'; } - print 'Input: '. sprintf("%.3f", $input). ' megabytes
'; - print 'Output: '. sprintf("%.3f", $output). ' megabytes
'; + print 'Input: '. sprintf("%.3f", $input). ' megabytes
'; + print 'Output: '. sprintf("%.3f", $output). ' megabytes
'; print '
'; @@ -145,7 +145,9 @@ if ( $conf->exists('security_phrase') ) { $svc_acct->sec_phrase. ''; } -my $svc_acct_pop = qsearchs('svc_acct_pop',{'popnum'=>$svc_acct->popnum}); +my $svc_acct_pop = $svc_acct->popnum + ? qsearchs('svc_acct_pop',{'popnum'=>$svc_acct->popnum}) + : ''; print "Access number". "". $svc_acct_pop->text. '' if $svc_acct_pop;