summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vouchers.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vouchers.pl b/scripts/vouchers.pl
index 152e43e7..7084232b 100644
--- a/scripts/vouchers.pl
+++ b/scripts/vouchers.pl
@@ -22,7 +22,8 @@ sub create_batch {
];
my $batch = LedgerSMB::Batch->new({base => $request});
- $batch->get_search_results;
+ $batch->{class_id} = $batch->get_class_id($batch->{batch_type});
+ $batch->get_search_results();
my $template = LedgerSMB::Template->new(
user =>$request->{_user},