From: Ivan Kohler Date: Wed, 28 Nov 2018 21:41:36 +0000 (-0800) Subject: Option to ignore old CDRs, RT#81480 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=1e47a33fdc2c79a1417c9359d338473c23723500 Option to ignore old CDRs, RT#81480 --- diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm index 1a052366b..342f27255 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -686,9 +686,9 @@ sub check_chargable { and length($cdr->max_callers) and $cdr->max_callers <= $self->option_cacheable('skip_max_callers'); - return "calldate < ". str2time($self->option_cacheable('skip_old')) + return "calldate < ". $self->option_cacheable('skip_old') if $self->option_cacheable('skip_old') - && $self->calldate_unix < str2time($self->option_cacheable('skip_old')); + && $cdr->calldate_unix < str2time($self->option_cacheable('skip_old')); #all right then, rate it '';