projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DSL status pulling, RT#13656
[freeside.git]
/
FS
/
FS
/
cdr.pm
diff --git
a/FS/FS/cdr.pm
b/FS/FS/cdr.pm
index
0107659
..
36721a8
100644
(file)
--- a/
FS/FS/cdr.pm
+++ b/
FS/FS/cdr.pm
@@
-911,7
+911,7
@@
my %import_options = (
},
#drop the || 'csv' to allow auto xls for csv types?
},
#drop the || 'csv' to allow auto xls for csv types?
- 'format_types' => { map { $_ =>
( lc($cdr_info{$_}->{'type'}) || 'csv'
); }
+ 'format_types' => { map { $_ =>
lc($cdr_info{$_}->{'type'} || 'csv'
); }
keys %cdr_info
},
keys %cdr_info
},
@@
-948,6
+948,14
@@
sub batch_import {
my $iopt = _import_options;
$opt->{$_} = $iopt->{$_} foreach keys %$iopt;
my $iopt = _import_options;
$opt->{$_} = $iopt->{$_} foreach keys %$iopt;
+ if ( defined $opt->{'cdrtypenum'} ) {
+ $opt->{'preinsert_callback'} = sub {
+ my($record,$param) = (shift,shift);
+ $record->cdrtypenum($opt->{'cdrtypenum'});
+ '';
+ };
+ }
+
FS::Record::batch_import( $opt );
}
FS::Record::batch_import( $opt );
}