diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-10-25 15:19:45 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-10-25 15:19:45 -0700 |
commit | 28e9ba1b3c8df377394d7f01e4c69a835a9b1b71 (patch) | |
tree | b5af648438b7ee50d8d3a4ad6ea82f0cac1604e9 /bin | |
parent | bec390c8334dc0d3dd8d13e95f0a04ed673f1319 (diff) |
Vitelity API: Use new getcdr command, RT#31037
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cdr-vitelity.import | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/cdr-vitelity.import b/bin/cdr-vitelity.import index a047c4aa3..39c03617c 100755 --- a/bin/cdr-vitelity.import +++ b/bin/cdr-vitelity.import @@ -64,14 +64,6 @@ foreach my $export (@part_exports) { $export->isa('FS::part_export::vitelity') or die "exportnum $exportnum is not a Vitelity export\n"; - if ( $opt{'r'} ) { - my $result = $export->vitelity_command('resetcdrlist'); - if ( $result ne 'ok' ) { - $dbh->rollback; - die "Failed to reset CDR list: $result\n"; - } - } - my $dir = $FS::UID::cache_dir . "/cache.". $FS::UID::datasrc; my $temp = new File::Temp ( TEMPLATE => 'download.XXXXXXXX', SUFFIX => '.csv', @@ -106,7 +98,7 @@ foreach my $export (@part_exports) { $count++; } close $temp; - print "Selected $count records in date range." if $opt{'v'} and ($s or $e); + print "Selected $count records in date range." if $opt{'v'}; my $format = 'vitelity'; my $batchname = "vitelity-$exportnum-".time2str('%Y/%m/%d-%T',time); |