projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
possibly fix spurious error from cust_bill.pm related to barcode files when barcodes...
[freeside.git]
/
FS
/
FS
/
Record.pm
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
7b52f50
..
c7ad65a
100644
(file)
--- a/
FS/FS/Record.pm
+++ b/
FS/FS/Record.pm
@@
-1750,7
+1750,7
@@
sub batch_import {
eval "use Parse::FixedLength;";
die $@ if $@;
eval "use Parse::FixedLength;";
die $@ if $@;
- $parser =
new Parse::FixedLength $fixedlength_format
;
+ $parser =
Parse::FixedLength->new($fixedlength_format)
;
}
else {
}
else {
@@
-1855,6
+1855,9
@@
sub batch_import {
} elsif ( $type eq 'fixedlength' ) {
} elsif ( $type eq 'fixedlength' ) {
+ last unless scalar(@buffer);
+ $line = shift(@buffer);
+
@columns = $parser->parse($line);
} elsif ( $type eq 'xls' ) {
@columns = $parser->parse($line);
} elsif ( $type eq 'xls' ) {