X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_svc.pm;h=e98695376c5efc133e4997e8280251b4ba7e0b1b;hb=14783ddd1917b67292711ce6f7443f46f1af02e6;hp=9cb7a816379531e15994fb2297998fedaa184bd4;hpb=f7afca1829f8496509d10806439c37fcc1349135;p=freeside.git diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index 9cb7a8163..e98695376 100644 --- a/FS/FS/cust_svc.pm +++ b/FS/FS/cust_svc.pm @@ -19,7 +19,7 @@ use FS::part_export; @ISA = qw( FS::Record ); -$DEBUG = 1; +$DEBUG = 0; $ignore_quantity = 0; @@ -308,14 +308,15 @@ sub _svc_label { } elsif ( $svcdb eq 'svc_domain' ) { $tag = $svc_x->getfield('domain'); } elsif ( $svcdb eq 'svc_www' ) { - my $domain_record = $svc_x->domain_record; + my $domain_record = $svc_x->domain_record(@_); $tag = $domain_record->zone; } elsif ( $svcdb eq 'svc_broadband' ) { $tag = $svc_x->ip_addr; } elsif ( $svcdb eq 'svc_external' ) { my $conf = new FS::Conf; if ( $conf->config('svc_external-display_type') eq 'artera_turbo' ) { - $tag = sprintf('%010d', $svc_x->id). '-'. sprintf('%010d', $svc_x->title); + $tag = sprintf('%010d', $svc_x->id). '-'. + substr('0000000000'.uc($svc_x->title), -10); } else { $tag = $svc_x->id. ': '. $svc_x->title; } @@ -553,11 +554,11 @@ sub attribute_since_sqlradacct { } -=item get_session_history_sqlradacct TIMESTAMP_START TIMESTAMP_END +=item get_session_history TIMESTAMP_START TIMESTAMP_END -See L. Equivalent to -$cust_svc->svc_x->get_session_history_sqlradacct, but more efficient. -Meaningless for records where B is not "svc_acct". +See L. Equivalent to +$cust_svc->svc_x->get_session_history, but more efficient. Meaningless for +records where B is not "svc_acct". =cut @@ -577,10 +578,11 @@ sub get_session_history { my @sessions = (); foreach my $part_export ( @part_export ) { - push @sessions, $part_export->usage_sessions( $start, $end, $self->svc_x ); + push @sessions, + @{ $part_export->usage_sessions( $start, $end, $self->svc_x ) }; } - \@sessions; + @sessions; }