[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm, 1.104, 1.105
Mark Wells
mark at wavetail.420.am
Mon Oct 4 11:46:41 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv26258/FS/FS/part_pkg
Modified Files:
voip_cdr.pm
Log Message:
CDR matching by svcnum, RT#10044
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -w -d -r1.104 -r1.105
--- voip_cdr.pm 29 Sep 2010 23:41:34 -0000 1.104
+++ voip_cdr.pm 4 Oct 2010 18:46:39 -0000 1.105
@@ -22,6 +22,7 @@
tie my %cdr_svc_method, 'Tie::IxHash',
'svc_phone.phonenum' => 'Phone numbers (svc_phone.phonenum)',
'svc_pbx.title' => 'PBX name (svc_pbx.title)',
+ 'svc_pbx.svcnum' => 'Pre-matched to PBX (svc_pbx.svcnum)',
;
tie my %rating_method, 'Tie::IxHash',
@@ -369,13 +370,16 @@
) {
my $svc_x = $cust_svc->svc_x;
- foreach my $cdr (
- $svc_x->get_cdrs(
+ my %options = (
'disable_src' => $self->option('disable_src'),
'default_prefix' => $self->option('default_prefix'),
'status' => '',
'for_update' => 1,
- ) # $last_bill, $$sdate )
+ ); # $last_bill, $$sdate )
+ $options{'by_svcnum'} = 1 if $svc_field eq 'svcnum';
+
+ foreach my $cdr (
+ $svc_x->get_cdrs( %options )
) {
if ( $DEBUG > 1 ) {
warn "rating CDR $cdr\n".
More information about the freeside-commits
mailing list