summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-06-30 21:24:59 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-06-30 21:24:59 +0000
commit24708fad478ce6484e7a6987e17ffa58855b7d27 (patch)
treec2071fc7d37cff09e66dca5ecd6abdb114aaf8c7 /scripts
parent49174fdc16c696dcc0f8d4124cb0749f91b6bb4d (diff)
Adding batch_search_mini api
Addressing issue on create batch screen of searching through all batches Adding error message in LedgerSMB::call_procedure if procname is undefined. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2178 4979c152-3d1c-0410-bac9-87ea11338e46
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},