summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2018-11-28 13:41:33 -0800
committerIvan Kohler <ivan@freeside.biz>2018-11-28 13:41:33 -0800
commit5250ef0bd82f482817621330bda83b321912a705 (patch)
treec79fe2d32babdd65c8a489fcdbabbbf8e096d652 /FS/FS/part_pkg
parentd24ce48228902a99a9f8e77e70970ecc587c6ccf (diff)
Option to ignore old CDRs, RT#81480
Diffstat (limited to 'FS/FS/part_pkg')
-rw-r--r--FS/FS/part_pkg/voip_cdr.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm
index 522e4aa..49e43e9 100644
--- a/FS/FS/part_pkg/voip_cdr.pm
+++ b/FS/FS/part_pkg/voip_cdr.pm
@@ -674,9 +674,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
'';