projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT#71525: welcome_msgnum / svc_acct_welcome_exclude deprecation [upgrade to export]
[freeside.git]
/
FS
/
bin
/
freeside-rbc-upload
diff --git
a/FS/bin/freeside-rbc-upload
b/FS/bin/freeside-rbc-upload
index
5250102
..
3fff32a
100755
(executable)
--- a/
FS/bin/freeside-rbc-upload
+++ b/
FS/bin/freeside-rbc-upload
@@
-70,6
+70,10
@@
foreach my $pay_batch (@batches) {
debug "Exporting batch $batchnum to $filename\n";
my $text = $pay_batch->export_batch(format => 'RBC');
debug "Exporting batch $batchnum to $filename\n";
my $text = $pay_batch->export_batch(format => 'RBC');
+ unless ($text) {
+ print STDERR "Batch is empty, resolving..." if $opt_v;
+ next;
+ }
write_file("$tmpdir/$filename", $text);
debug "Uploading $filename...";
write_file("$tmpdir/$filename", $text);
debug "Uploading $filename...";