summaryrefslogtreecommitdiff
path: root/FS/FS/svc_Radius_Mixin.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-08-17 15:37:12 -0700
committerIvan Kohler <ivan@freeside.biz>2014-08-17 15:37:12 -0700
commit9057d6f9b0b8f7ded8f666d0e483eb64973d1284 (patch)
tree793ef999d832d3eb7852c54bf2ba0b7ffd52488c /FS/FS/svc_Radius_Mixin.pm
parent6f8edbafb0401dd2224d3698397bcb16ffad1580 (diff)
show last Calling-Station-Id on RADIUS summary, RT#29154
Diffstat (limited to 'FS/FS/svc_Radius_Mixin.pm')
-rw-r--r--FS/FS/svc_Radius_Mixin.pm16
1 files changed, 13 insertions, 3 deletions
diff --git a/FS/FS/svc_Radius_Mixin.pm b/FS/FS/svc_Radius_Mixin.pm
index 8e53a15..6674162 100644
--- a/FS/FS/svc_Radius_Mixin.pm
+++ b/FS/FS/svc_Radius_Mixin.pm
@@ -185,9 +185,8 @@ sub seconds_since_sqlradacct {
=item attribute_since_sqlradacct TIMESTAMP_START TIMESTAMP_END ATTRIBUTE
-Returns the sum of the given attribute for all accounts (see L<FS::svc_acct>)
-in this package for sessions ending between TIMESTAMP_START (inclusive) and
-TIMESTAMP_END (exclusive).
+For this service, returns the sum of the given attribute for sessions ending
+between TIMESTAMP_START (inclusive) and TIMESTAMP_END (exclusive).
TIMESTAMP_START and TIMESTAMP_END are specified as UNIX timestamps; see
L<perlfunc/"time">. Also see L<Time::Local> and L<Date::Parse> for conversion
@@ -201,6 +200,17 @@ sub attribute_since_sqlradacct {
$self->cust_svc->attribute_since_sqlradacct(@_);
}
+=item attribute_last_sqlradacct ATTRIBUTE
+
+For this service, returns the most recent value of the given attribute.
+
+=cut
+
+#note: POD here, implementation in FS::cust_svc
+sub attribute_last_sqlradacct {
+ my $self = shift;
+ $self->cust_svc->attribute_last_sqlradacct(@_);
+}
=item get_session_history TIMESTAMP_START TIMESTAMP_END
Returns an array of hash references of this customers login history for the