X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fsvc_Radius_Mixin.pm;h=ef11ac6c3ee0ec08eb47e27410122fbc0c319a1c;hb=788275e860cfa8126fd6919c11fce8a46b1062a9;hp=969f7495216cb1a1665eb29a8bcc58fbb49ec579;hpb=7fe829b7d746d9be193d70e02090d8984347bc2a;p=freeside.git diff --git a/FS/FS/svc_Radius_Mixin.pm b/FS/FS/svc_Radius_Mixin.pm index 969f74952..ef11ac6c3 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) -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. Also see L and L 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