X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fsvc_pbx.pm;h=37ab174d2193603c9f941bc7c3ab7c7eb3a592e7;hp=093eacd5406da002da5cac0d6262e7caf6f55d09;hb=aed8ec35ccb9cdeb7ea0cb6ff2946f9d83d582f6;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 diff --git a/FS/FS/svc_pbx.pm b/FS/FS/svc_pbx.pm index 093eacd54..37ab174d2 100644 --- a/FS/FS/svc_pbx.pm +++ b/FS/FS/svc_pbx.pm @@ -283,6 +283,10 @@ with the chosen prefix. =item by_svcnum => 1: Select CDRs where the svcnum field matches, instead of title/charged_party. Normally this field is set after processing. +=item begin, end: Start and end of date range, as unix timestamp. + +=item cdrtypenum: Only return CDRs with this type number. + =back =cut @@ -295,7 +299,11 @@ sub get_cdrs { my @fields = ( 'charged_party' ); $hash{'freesidestatus'} = $options{'status'} if exists($options{'status'}); - + + if ($options{'cdrtypenum'}) { + $hash{'cdrtypenum'} = $options{'cdrtypenum'}; + } + my $for_update = $options{'for_update'} ? 'FOR UPDATE' : ''; if ( $options{'by_svcnum'} ) {